From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XSweepBehaviour.cs | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs new file mode 100644 index 00000000..88bd0400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs @@ -0,0 +1,44 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSweepBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIProgress m_Exp = null; + + public IXUILabel m_ExpText = null; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView = null; + + public XUIPool m_DropPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_SweepTip; + + public Transform m_SealTip; + + public BoxCollider m_dragBox; + + private void Awake() + { + this.m_dragBox = base.transform.Find("Bg/DragBox").GetComponent(); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Exp = (base.transform.Find("Bg/ExpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_ExpText = (base.transform.Find("Bg/ExpBar/ExpLabel").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/RewardDisplay/RewardTpl/Parent/ItemTpl"); + this.m_DropPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 8u, false); + transform = base.transform.Find("Bg/RewardDisplay/RewardTpl"); + this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_ScrollView = (base.transform.Find("Bg/RewardDisplay").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SweepTip = (base.transform.Find("Bg/RewardDisplay/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_SealTip = base.transform.Find("Bg/SealTip"); + } + } +} -- cgit v1.1-26-g67d0