コード例 #1
0
 void ShowLeave()
 {
     app.ResetMenu();
     menu.AddItem(UI.ActivityIndicator("WAITING FOR RESPONSE"));
     menu.AddItem(UI.MenuItem("Leave", postGameState.Leave), true);
     menu.Show();
 }
コード例 #2
0
 void ShowOpponentLeft()
 {
     app.ResetMenu();
     menu.AddItem(UI.ActivityIndicator("Opponent Left"));
     menu.AddItem(UI.MenuItem("Leave", postGameState.Leave));
     menu.Show();
 }
コード例 #3
0
    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();
    }
コード例 #4
0
    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();
    }
コード例 #5
0
    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();
    }