This commit is contained in:
kejaro committed 2026-10-05 20:55:29 +01:00
1 parent f7bcbc53ef
commit 65b26786a0
39 files changed
+4710 -3044

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import Toybox.WatchUi;
import Toybox.Lang;
class menuTeamsDelegate extends WatchUi.Menu2InputDelegate {
private var _action as enAction;
private var _team as enTeam?;
function initialize(action as enAction) {
Menu2InputDelegate.initialize();
_action = action;
}
function onSelect(item as WatchUi.MenuItem) as Void {
_team = item.getId() as enTeam;
WatchUi.popView(WatchUi.SLIDE_DOWN);
WatchUi.pushView(new playerPicker(), new menuPlayerDelegate(_action, _team), WatchUi.SLIDE_UP);
}
function onCancel() as Boolean {
WatchUi.popView(WatchUi.SLIDE_DOWN);
return true;
}
}