private void OnSignalButtonClicked(CUIEvent uiEvent) { if (!Singleton <CBattleGuideManager> .instance.bPauseGame && this.m_useSignalButton) { int tag = uiEvent.m_eventParams.tag; CSignalButton singleButton = this.GetSingleButton(tag); if ((singleButton != null) && !singleButton.IsInCooldown()) { if (singleButton.m_signalInfo.bSignalType == 0) { if (this.m_selectedSignalID != tag) { if (this.m_selectedSignalID >= 0) { CSignalButton button2 = this.GetSingleButton(this.m_selectedSignalID); if (button2 != null) { button2.SetHighLight(false); } } this.m_selectedSignalID = tag; singleButton.SetHighLight(true); } } else { this.SendFrameCommand(tag, 0, 0, 0, 0, 0, 0, 0); } } } }
private void OnSignalButtonClicked(CUIEvent uiEvent) { if (Singleton <CBattleGuideManager> .instance.bPauseGame) { return; } if (!this.m_useSignalButton) { return; } int tag = uiEvent.m_eventParams.tag; if (tag == 2) { CPlayerBehaviorStat.Plus(CPlayerBehaviorStat.BehaviorType.Battle_Signal_2); } else if (tag == 3) { CPlayerBehaviorStat.Plus(CPlayerBehaviorStat.BehaviorType.Battle_Signal_3); } else if (tag == 4) { CPlayerBehaviorStat.Plus(CPlayerBehaviorStat.BehaviorType.Battle_Signal_4); } CSignalButton singleButton = this.GetSingleButton(tag); if (singleButton != null && !singleButton.IsInCooldown()) { if (singleButton.m_signalInfo.bSignalType == 0) { if (this.m_selectedSignalID != tag) { if (this.m_selectedSignalID >= 0) { CSignalButton singleButton2 = this.GetSingleButton(this.m_selectedSignalID); if (singleButton2 != null) { singleButton2.SetHighLight(false); } } this.m_selectedSignalID = tag; singleButton.SetHighLight(true); } } else { this.SendCommand_SignalBtn_Position((byte)tag, VInt3.zero); } } }