コード例 #1
0
ファイル: Party.cs プロジェクト: moto2002/pbs-unity
        public void HighlightCommand(BattleExtraCommand commandType)
        {
            UnselectAllCommandButtons();
            switch (commandType)
            {
                case BattleExtraCommand.Summary:
                    summaryBtn.SelectSelf();
                    promptText.text = "View this Pokémon's stats.";
                    break;

                case BattleExtraCommand.Switch:
                    switchBtn.SelectSelf();
                    promptText.text = "Switch into this Pokémon.";
                    break;

                case BattleExtraCommand.Moves:
                    movesBtn.SelectSelf();
                    promptText.text = "View this Pokémon's moves.";
                    break;

                case BattleExtraCommand.Cancel:
                    cancelBtn.SelectSelf();
                    promptText.text = "Go back to party.";
                    break;

                default:
                    break;
            }
        }
コード例 #2
0
 public void SwitchSelectedPartyCommandTo(BattleExtraCommand selected)
 {
     for (int i = 0; i < partyCmdBtns.Count; i++)
     {
         SelectCmdExtraBtn(partyCmdBtns[i], partyCmdBtns[i].commandType == selected);
     }
 }
コード例 #3
0
 public void SwitchSelectedPartyCommandTo(BattleExtraCommand selected)
 {
     partyPanel.HighlightCommand(selected);
 }
コード例 #4
0
 private void CreateCmdExtraBtn(BattleExtraCommand commandType, BTLUI_ButtonCmdExtra btn)
 {
     btn.commandType = commandType;
     btn.txt.text    = commandType.ToString();
 }
コード例 #5
0
ファイル: BTLUI_Base.cs プロジェクト: moto2002/pbs-unity
 public virtual void SwitchSelectedPartyCommandTo(BattleExtraCommand selected)
 {
 }