From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XFriendsSearchBehaviour.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs new file mode 100644 index 00000000..a5526d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsSearchBehaviour : DlgBehaviourBase + { + public IXUIScrollView m_ScrollView; + + public IXUIButton m_Close; + + public IXUIButton m_Refresh; + + public IXUIButton m_AddFriend; + + public IXUIInput m_SearchName; + + public IXUILabel m_CountdownText; + + public static readonly uint FUNCTION_NUM = 3u; + + public XUIPool m_FriendRandomListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/List"); + Transform transform2 = transform.Find("tpl"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Refresh = (base.transform.Find("Bg/change").GetComponent("XUIButton") as IXUIButton); + this.m_AddFriend = (base.transform.Find("Bg/add").GetComponent("XUIButton") as IXUIButton); + this.m_SearchName = (base.transform.Find("Bg/textinput").GetComponent("XUIInput") as IXUIInput); + this.m_CountdownText = (base.transform.Find("Bg/changeLabel").GetComponent("XUILabel") as IXUILabel); + this.m_FriendRandomListPool.SetupPool(transform.gameObject, transform2.gameObject, 4u, false); + } + } +} -- cgit v1.1-26-g67d0