summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs104
1 files changed, 104 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs
new file mode 100644
index 00000000..923ea5f6
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs
@@ -0,0 +1,104 @@
+using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+
+namespace XMainClient.UI
+{
+ internal class ActivityRiftBehaviour : DlgBehaviourBase
+ {
+ public IXUIButton m_Help;
+
+ public IXUIButton mMainClose;
+
+ public IXUIButton m_btnFight;
+
+ public IXUILabel m_lblFight;
+
+ public const int max_rwd = 4;
+
+ public const int max_buff = 5;
+
+ public const int max_tab = 3;
+
+ public GameObject[] m_goRwd = new GameObject[4];
+
+ public GameObject[] m_goBuff = new GameObject[5];
+
+ public IXUILabel m_lbltip;
+
+ public IXUILabel m_lbldesc;
+
+ public IXUILabel m_lbltime;
+
+ public GameObject m_weekRwd;
+
+ public IXUILabel m_lblMFloor;
+
+ public IXUILabel m_lblMName;
+
+ public IXUILabel m_lbblMTime;
+
+ public IXUIButton m_btnShop;
+
+ public IXUIButton m_btnIntro;
+
+ public IXUIButton m_btnMember;
+
+ public IXUIButton m_btnRwd;
+
+ public IXUISprite m_sprRwdRed;
+
+ public GameObject m_guildInfoPanel;
+
+ public GameObject m_frameRankRwd;
+
+ public GameObject m_frameWelfare;
+
+ public GameObject m_frameWeek;
+
+ public Transform m_tab;
+
+ public IXUICheckBox[] m_tabs = new IXUICheckBox[3];
+
+ public IXUISprite[] m_reds = new IXUISprite[3];
+
+ private void Awake()
+ {
+ this.m_Help = (base.transform.Find("Bg/Stage/Help").GetComponent("XUIButton") as IXUIButton);
+ this.mMainClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_btnFight = (base.transform.Find("Bg/Stage/GoBattle").GetComponent("XUIButton") as IXUIButton);
+ this.m_lblFight = (base.transform.Find("Bg/Stage/fp").GetComponent("XUILabel") as IXUILabel);
+ for (int i = 0; i < 4; i++)
+ {
+ this.m_goRwd[i] = base.transform.Find("Bg/Stage/Reward/Item" + i).gameObject;
+ }
+ for (int j = 0; j < 5; j++)
+ {
+ this.m_goBuff[j] = base.transform.Find("Bg/Stage/Buff/BossBuff" + j).gameObject;
+ }
+ this.m_tab = base.transform.Find("Bg/Rewd/TabsFrame");
+ for (int k = 0; k < 3; k++)
+ {
+ this.m_tabs[k] = (this.m_tab.Find("item" + k + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox);
+ this.m_reds[k] = (this.m_tabs[k].gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite);
+ }
+ this.m_lbltime = (base.transform.Find("Bg/Top/name").GetComponent("XUILabel") as IXUILabel);
+ this.m_weekRwd = base.transform.Find("Bg/WeekReward").gameObject;
+ this.m_lbblMTime = (base.transform.Find("Bg/Main/Time").GetComponent("XUILabel") as IXUILabel);
+ this.m_lblMFloor = (base.transform.Find("Bg/Main/Floor").GetComponent("XUILabel") as IXUILabel);
+ this.m_lblMName = (base.transform.Find("Bg/Main/Name").GetComponent("XUILabel") as IXUILabel);
+ this.m_lbltip = (base.transform.Find("Bg/Stage/Buff/Tip").GetComponent("XUILabel") as IXUILabel);
+ this.m_lbldesc = (base.transform.Find("Bg/Top/Text/T").GetComponent("XUILabel") as IXUILabel);
+ this.m_btnShop = (base.transform.Find("Bg/btns/BtnShop").GetComponent("XUIButton") as IXUIButton);
+ this.m_btnIntro = (base.transform.Find("Bg/btns/BtnIntroduce").GetComponent("XUIButton") as IXUIButton);
+ this.m_btnMember = (base.transform.Find("Bg/btns/BtnMemberRank").GetComponent("XUIButton") as IXUIButton);
+ this.m_btnRwd = (base.transform.Find("Bg/btns/BtnRwd").GetComponent("XUIButton") as IXUIButton);
+ this.m_sprRwdRed = (this.m_btnRwd.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite);
+ this.m_guildInfoPanel = base.transform.Find("Bg/GuildRank").gameObject;
+ this.m_frameRankRwd = base.transform.Find("Bg/Rewd/frames/RankRewardFrame").gameObject;
+ this.m_frameWelfare = base.transform.Find("Bg/Rewd/frames/WelfareRewardFrame").gameObject;
+ this.m_frameWeek = base.transform.Find("Bg/Rewd/frames/weekRewardFrame").gameObject;
+ }
+ }
+}