summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs45
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);
+ }
+ }
+}