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; } }
public void SwitchSelectedPartyCommandTo(BattleExtraCommand selected) { for (int i = 0; i < partyCmdBtns.Count; i++) { SelectCmdExtraBtn(partyCmdBtns[i], partyCmdBtns[i].commandType == selected); } }
public void SwitchSelectedPartyCommandTo(BattleExtraCommand selected) { partyPanel.HighlightCommand(selected); }
private void CreateCmdExtraBtn(BattleExtraCommand commandType, BTLUI_ButtonCmdExtra btn) { btn.commandType = commandType; btn.txt.text = commandType.ToString(); }
public virtual void SwitchSelectedPartyCommandTo(BattleExtraCommand selected) { }