// Token: 0x06001B82 RID: 7042 RVA: 0x0030CB00 File Offset: 0x0030AD00 public void SetupConfirmBtn(UIFormationSelect.ECoordConfirmBtnStatus status) { if (status == UIFormationSelect.ECoordConfirmBtnStatus.Setup) { this.ConfirmBtnImage.sprite = this.AGS_ConformBtn_SA.GetSprite(0); this.ConfirmBtnText.text = DataManager.Instance.mStringTable.GetStringByID(924u); this.ConfirmBtnText.color = new Color32(byte.MaxValue, 247, 153, byte.MaxValue); this.ConfirmBtn.interactable = true; this.ConfirmBtn.m_BtnID2 = (int)status; this.ConfirmBtnImage.color = this.NormalColor; } if (status == UIFormationSelect.ECoordConfirmBtnStatus.GoToCollege) { this.ConfirmBtnImage.sprite = this.AGS_ConformBtn_SA.GetSprite(1); this.ConfirmBtnText.text = DataManager.Instance.mStringTable.GetStringByID(3776u); this.ConfirmBtnText.color = Color.white; this.ConfirmBtn.interactable = true; this.ConfirmBtn.m_BtnID2 = (int)status; this.ConfirmBtnImage.color = this.NormalColor; } if (status == UIFormationSelect.ECoordConfirmBtnStatus.Used) { this.ConfirmBtnImage.sprite = this.AGS_ConformBtn_SA.GetSprite(1); this.ConfirmBtnText.text = DataManager.Instance.mStringTable.GetStringByID(7444u); this.ConfirmBtnText.color = new Color(0.898f, 0f, 0.31f); this.ConfirmBtn.interactable = false; this.ConfirmBtn.m_BtnID2 = (int)status; this.ConfirmBtnImage.color = this.DisableColor; } }
// Token: 0x06001B83 RID: 7043 RVA: 0x0030CCA8 File Offset: 0x0030AEA8 public void ExeConfirmButtonEvent(UIFormationSelect.ECoordConfirmBtnStatus status) { if (status == UIFormationSelect.ECoordConfirmBtnStatus.Setup) { MessagePacket messagePacket = new MessagePacket(1024); messagePacket.AddSeqId(); messagePacket.Protocol = Protocol._MSG_REQUEST_COORD_CHANGE; messagePacket.Add(UIFormationSelect.NowArmyCoordIndex); messagePacket.Send(false); } else if (status == UIFormationSelect.ECoordConfirmBtnStatus.GoToCollege) { GUIManager.Instance.OpenTechTree(this.CoordTechID[(int)UIFormationSelect.NowArmyCoordIndex], true); } }