From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Guild/XGuildSmallMonsterBehaviour.cs | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs new file mode 100644 index 00000000..b70f7552 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs @@ -0,0 +1,62 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSmallMonsterBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_DetailFrame; + + public Transform m_RankFrame; + + public XUIPool m_DropItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_CurrentLevel; + + public IXUIButton m_BeginGame; + + public IXUILabel m_RemainTime; + + public IXUILabel m_lblWin; + + public IXUILabel m_lblThisday; + + public IXUILabel m_lblNextday; + + public IXUIButton m_btnrwdRank; + + public IXUIButton m_btnHelp; + + public IXUILabel m_lblEmpt; + + public IXUILabel m_lblType; + + public XUIPool m_KillRankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_DetailFrame = base.transform.Find("Bg/DetailFrame"); + this.m_RankFrame = base.transform.Find("Bg/RankFrame"); + Transform transform = this.m_DetailFrame.Find("DropFrame/Item"); + this.m_DropItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_CurrentLevel = (this.m_DetailFrame.Find("CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_BeginGame = (this.m_DetailFrame.Find("BeginGame").GetComponent("XUIButton") as IXUIButton); + this.m_RemainTime = (this.m_DetailFrame.Find("Pic/RemainTime").GetComponent("XUILabel") as IXUILabel); + this.m_lblWin = (this.m_DetailFrame.Find("WinCondition").GetComponent("XUILabel") as IXUILabel); + this.m_lblThisday = (this.m_DetailFrame.Find("Pic/Name").GetComponent("XUILabel") as IXUILabel); + this.m_lblNextday = (this.m_DetailFrame.Find("Tomorrow").GetComponent("XUILabel") as IXUILabel); + this.m_btnrwdRank = (this.m_DetailFrame.Find("RwdRank").GetComponent("XUIButton") as IXUIButton); + this.m_btnHelp = (this.m_DetailFrame.Find("Help").GetComponent("XUIButton") as IXUIButton); + transform = this.m_RankFrame.Find("Bg/Panel/MemberTpl"); + this.m_KillRankPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, false); + this.m_lblEmpt = (this.m_RankFrame.Find("Bg/Empty").GetComponent("XUILabel") as IXUILabel); + this.m_lblType = (this.m_RankFrame.Find("Bg/title/title2").GetComponent("XUILabel") as IXUILabel); + } + } +} -- cgit v1.1-26-g67d0