diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs | 44 |
1 files changed, 44 insertions, 0 deletions
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<XGameUI>.singleton.m_uiTool);
+
+ public IXUIScrollView m_ScrollView = null;
+
+ public XUIPool m_DropPool = new XUIPool(XSingleton<XGameUI>.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<BoxCollider>();
+ 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");
+ }
+ }
+}
|