update
This commit is contained in:
1 parent
f7bcbc53ef
commit
65b26786a0
39 files changed
+4710
-3044
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import Toybox.WatchUi;
|
||||
import Toybox.Lang;
|
||||
|
||||
class menuGoalsDelegate extends WatchUi.Menu2InputDelegate {
|
||||
private var _player as Number?;
|
||||
private var _team as enTeam?;
|
||||
private var _goal as enGoal?;
|
||||
|
||||
function initialize(team as enTeam, player as Number) {
|
||||
_player = player;
|
||||
_team = team;
|
||||
Menu2InputDelegate.initialize();
|
||||
}
|
||||
|
||||
function onSelect(item as WatchUi.MenuItem) as Void {
|
||||
_goal = item.getId() as enGoal;
|
||||
$.gMatch.recordGoal(_team, _goal, _player);
|
||||
|
||||
WatchUi.popView(WatchUi.SLIDE_DOWN);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user