update
This commit is contained in:
1 parent
f7bcbc53ef
commit
65b26786a0
39 files changed
+4710
-3044
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import Toybox.WatchUi;
|
||||
import Toybox.Lang;
|
||||
|
||||
class menuActionsDelegate extends WatchUi.Menu2InputDelegate {
|
||||
private var _action as enAction?;
|
||||
|
||||
function initialize() {
|
||||
Menu2InputDelegate.initialize();
|
||||
}
|
||||
|
||||
function onSelect(item as WatchUi.MenuItem) as Void {
|
||||
_action = item.getId() as enAction;
|
||||
switch (_action){
|
||||
case QUIT:
|
||||
closeApp();
|
||||
break;
|
||||
|
||||
default:
|
||||
WatchUi.popView(WatchUi.SLIDE_DOWN);
|
||||
WatchUi.pushView($.gMenuTeams, new menuTeamsDelegate(_action), WatchUi.SLIDE_UP);
|
||||
}
|
||||
}
|
||||
|
||||
function onCancel() as Boolean {
|
||||
WatchUi.popView(WatchUi.SLIDE_DOWN);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user