summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs
new file mode 100644
index 00000000..0f4a0cda
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs
@@ -0,0 +1,37 @@
+using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class AnicentTaskBhaviour : DlgBehaviourBase
+ {
+ public GameObject boxTpl;
+
+ public GameObject itemTpl;
+
+ public IXUILabel m_time;
+
+ public IXUILabel m_content;
+
+ public XUIPool m_tabpool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public XUIPool m_rwdpool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUIButton m_btnClose;
+
+ private void Awake()
+ {
+ this.boxTpl = base.transform.Find("Bg/TaskTitle/option1").gameObject;
+ this.m_content = (base.transform.Find("Bg/condition/condition1").GetComponent("XUILabel") as IXUILabel);
+ this.m_time = (base.transform.Find("Bg/condition/Time").GetComponent("XUILabel") as IXUILabel);
+ this.itemTpl = base.transform.Find("Bg/condition/ItemList/ItemTpl").gameObject;
+ this.itemTpl.SetActive(false);
+ this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_tabpool.SetupPool(this.boxTpl.transform.parent.gameObject, this.boxTpl, 2u, false);
+ this.m_rwdpool.SetupPool(this.itemTpl.transform.parent.gameObject, this.itemTpl, 2u, false);
+ }
+ }
+}