summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs
new file mode 100644
index 00000000..6a98c5b5
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+
+namespace XMainClient.UI
+{
+ internal class XGuildListBehaviour : DlgBehaviourBase
+ {
+ public IXUIButton m_Close = null;
+
+ public IXUIWrapContent m_WrapContent;
+
+ public IXUIScrollView m_ScrollView;
+
+ public IXUIButton m_Create;
+
+ public IXUIButton m_QuickJoin;
+
+ public IXUIButton m_Search;
+
+ public IXUIInput m_SearchText;
+
+ public GameObject m_CreatePanel;
+
+ public XTitleBar m_TitleBar;
+
+ public Dictionary<IXUIButton, string> m_helpList = new Dictionary<IXUIButton, string>();
+
+ private void Awake()
+ {
+ this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent);
+ this.m_Create = (base.transform.Find("Bg/Create").GetComponent("XUIButton") as IXUIButton);
+ this.m_QuickJoin = (base.transform.Find("Bg/QuickJoin").GetComponent("XUIButton") as IXUIButton);
+ this.m_Search = (base.transform.Find("Bg/Search").GetComponent("XUIButton") as IXUIButton);
+ this.m_SearchText = (base.transform.Find("Bg/SearchText").GetComponent("XUIInput") as IXUIInput);
+ this.m_CreatePanel = base.transform.Find("Bg/CreatePanel").gameObject;
+ Transform transform = base.transform.Find("Bg/HelpList");
+ int i = 0;
+ int childCount = transform.childCount;
+ while (i < childCount)
+ {
+ Transform child = transform.GetChild(i);
+ this.m_helpList.Add(child.GetComponent("XUIButton") as IXUIButton, child.name);
+ i++;
+ }
+ Transform transform2 = base.transform.Find("Bg/Titles");
+ DlgHandlerBase.EnsureCreate<XTitleBar>(ref this.m_TitleBar, transform2.gameObject, null, true);
+ }
+ }
+}