コード例 #1
0
        private void OptionSelected(string option, int index)
        {
            _message = DEFAULT_MESSAGE;
            switch (option)
            {
            case "WITHDRAW":
                WithdrawPokemon();
                break;

            case "DEPOSIT":
                DepositPokemon();
                break;

            case "MOVE":
                StartMovePokemon();
                break;

            case "STATS":
                ShowStats();
                break;

            case "RELEASE":
                ReleasePokemon();
                break;

            case "CANCEL":
                _optionsBox.Close();
                break;
            }
        }
コード例 #2
0
        private void OptionSelected(string option, int index)
        {
            switch (index)
            {
            case 0:     // switch
                Controller.ActivePlayer.ActiveBoxIndex = _index + _scrollIndex;
                _optionsBox.Close();
                break;

            case 1:     // name
            {
                var namingScreen = new BoxNamingScreen(this);
                namingScreen.LoadContent();
                namingScreen.SetIcon(Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/boxIcon.png"));
                namingScreen.NameSelected += ConfirmBoxName;
                GetComponent <ScreenManager>().SetScreen(namingScreen);
            }
            break;

            case 2:
                _optionsBox.Close();
                break;
            }
        }