diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs new file mode 100644 index 00000000..fc5acdd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs @@ -0,0 +1,45 @@ +using System;
+using UILib;
+using UnityEngine;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XQualifyingPointRewardWindow
+ {
+ public bool IsVisible
+ {
+ get
+ {
+ return this.m_Go.activeSelf;
+ }
+ }
+
+ public GameObject m_Go;
+
+ public XUIPool m_RewardPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public XUIPool m_ItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUIButton m_Close;
+
+ public IXUIScrollView m_ScrollView;
+
+ public IXUILabel m_CurrentPoint;
+
+ public XQualifyingPointRewardWindow(GameObject go)
+ {
+ this.m_Go = go;
+ this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_RewardPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RewardTpl").gameObject, 20u, false);
+ this.m_ItemPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/Item").gameObject, 50u, false);
+ this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.m_CurrentPoint = (go.transform.Find("Bg/CurrentPoint/Text").GetComponent("XUILabel") as IXUILabel);
+ }
+
+ public void SetVisible(bool v)
+ {
+ this.m_Go.SetActive(v);
+ }
+ }
+}
|