From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/XGuildListBehaviour.cs | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs') 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 m_helpList = new Dictionary(); + + 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(ref this.m_TitleBar, transform2.gameObject, null, true); + } + } +} -- cgit v1.1-26-g67d0