Example #1
0
 private void RefreshUIByType(GuildWarInfoUI.GuildWarInfoBtnState type)
 {
     FXSpineManager.Instance.DeleteSpine(this.m_fxID, true);
     if (type == GuildWarInfoUI.GuildWarInfoBtnState.GuildWarBattleInfo)
     {
         int num = GuildWarManager.Instance.LastBattleNo;
         if (GuildWarManager.Instance.LastBattleNo <= 0 || GuildWarManager.Instance.LastBattleNo > 5)
         {
             num = 3;
         }
         this.OnClickResourceBtn(this.resourceTransList.get_Item(num - 1).FindChild("ResourceButton").get_gameObject());
         if (!this.guildWarBattleInfoPanel.get_activeSelf())
         {
             this.guildWarBattleInfoPanel.SetActive(true);
         }
         if (this.myGuildMemberInfoPanel.get_activeSelf())
         {
             this.myGuildMemberInfoPanel.SetActive(false);
         }
     }
     else if (type == GuildWarInfoUI.GuildWarInfoBtnState.MyGuildWarInfoBtn)
     {
         this.RefreshMyGuildMemberPanel();
         if (this.guildWarBattleInfoPanel.get_activeSelf())
         {
             this.guildWarBattleInfoPanel.SetActive(false);
         }
         if (!this.myGuildMemberInfoPanel.get_activeSelf())
         {
             this.myGuildMemberInfoPanel.SetActive(true);
         }
     }
 }
Example #2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     FXSpineManager.Instance.DeleteSpine(this.m_fxID, true);
     this.warInfoItemsListPool.Clear();
     this.currentBtnState = GuildWarInfoUI.GuildWarInfoBtnState.GuildWarBattleInfo;
     this.RefreshUI();
     this.UpdateAllMineLiveData();
 }
Example #3
0
 private void OnClickTabBtn(GameObject go)
 {
     if (go == this.myGuildInfoBtn.get_gameObject())
     {
         this.currentBtnState = GuildWarInfoUI.GuildWarInfoBtnState.MyGuildWarInfoBtn;
     }
     else if (go == this.battleInfoBtn.get_gameObject())
     {
         this.currentBtnState = GuildWarInfoUI.GuildWarInfoBtnState.GuildWarBattleInfo;
     }
     this.RefreshUI();
 }
Example #4
0
 private void RefreshBtnByType(GuildWarInfoUI.GuildWarInfoBtnState type)
 {
     if (type == GuildWarInfoUI.GuildWarInfoBtnState.GuildWarBattleInfo)
     {
         this.SetBtnLightAndDim(this.myGuildInfoBtn.get_gameObject(), "y_fenye4", false);
         this.SetBtnLightAndDim(this.battleInfoBtn.get_gameObject(), "y_fenye3", true);
     }
     else if (type == GuildWarInfoUI.GuildWarInfoBtnState.MyGuildWarInfoBtn)
     {
         this.SetBtnLightAndDim(this.myGuildInfoBtn.get_gameObject(), "y_fenye3", true);
         this.SetBtnLightAndDim(this.battleInfoBtn.get_gameObject(), "y_fenye4", false);
     }
 }