void ShowLeave() { app.ResetMenu(); menu.AddItem(UI.ActivityIndicator("WAITING FOR RESPONSE")); menu.AddItem(UI.MenuItem("Leave", postGameState.Leave), true); menu.Show(); }
void ShowOpponentLeft() { app.ResetMenu(); menu.AddItem(UI.ActivityIndicator("Opponent Left")); menu.AddItem(UI.MenuItem("Leave", postGameState.Leave)); menu.Show(); }
public override void EnterFrom(AppState state) { openSoundtrackName = "Rematch"; base.EnterFrom(state); app.ResetMenu(); menu.AddItem(UI.ActivityIndicator("Opponent Requests a Rematch")); menu.AddItem(UI.MenuItem("Accept", AcceptRematch)); menu.AddItem(UI.MenuItem("Decline", postGameState.Leave)); menu.Show(); }
void ResetMenu() { app.ResetMenu(); //TODO describe the controller button. menu.AddItem(UI.ActivityIndicator(player.uiColor.ColoredTag(player.description) + "\n\nPress return or click continue to use keyboard and mouse.\n\nPress any button to use controller.")); //menu.AddItem(UI.ActivityIndicator(player.description + "\n\n" + "Press return or click continue to use keyboard and mouse.\n\nPress any button to use controller.")); continueButton = menu.AddNewButton().SetText("Continue").SetAction(Continue); menu.AddItem(UI.MenuItem("Cancel", Cancel), true); menu.Show(); }
public override void EnterFrom(AppState state) { base.EnterFrom(state); openSoundtrackName = "Waiting"; timer = app.timerCenter.NewTimer(); timer.action = ShowLeave; timer.timeout = 5; timer.Start(); app.ResetMenu(); menu.AddItem(UI.ActivityIndicator("WAITING FOR RESPONSE")); menu.Show(); }