diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs new file mode 100644 index 00000000..f2e0843e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs @@ -0,0 +1,79 @@ +using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XFriendsBehaviour : DlgBehaviourBase
+ {
+ public XUIPool FriendTabPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUILabel lbButtonR;
+
+ public IXUILabel lbButtonL;
+
+ public IXUIButton btnClose;
+
+ public IXUIButton btnRight;
+
+ public IXUIButton btnLeft;
+
+ public IXUIButton btnHint;
+
+ public IXUILabel lbFriendsNum;
+
+ public IXUILabel lbFriendsNumLabel;
+
+ public IXUIWrapContent FriendListWrapContent;
+
+ public IXUIScrollView FriendListScrollView;
+
+ public IXUIPanel FriendListPanel;
+
+ public IXUIList TabList;
+
+ public GameObject goFriendListTitle;
+
+ public GameObject goFriendListZero;
+
+ public GameObject goFriendListBrockZero;
+
+ public Transform FriendTabTpl;
+
+ public Transform content;
+
+ public static readonly uint FUNCTION_NUM = 3u;
+
+ private void Awake()
+ {
+ Transform transform = base.transform.Find("Bg");
+ this.btnClose = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton);
+ this.btnRight = (transform.Find("ButtonR").GetComponent("XUIButton") as IXUIButton);
+ this.lbButtonR = (this.btnRight.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel);
+ this.btnLeft = (transform.Find("ButtonL").GetComponent("XUIButton") as IXUIButton);
+ this.lbButtonL = (this.btnLeft.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel);
+ this.btnHint = (transform.Find("Hint").GetComponent("XUIButton") as IXUIButton);
+ this.lbFriendsNum = (transform.Find("FriendNum").GetComponent("XUILabel") as IXUILabel);
+ this.lbFriendsNumLabel = (transform.Find("FriendNumLabel").GetComponent("XUILabel") as IXUILabel);
+ this.FriendListScrollView = (transform.Find("Content/FriendList").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.content = transform.Find("Content");
+ this.FriendListPanel = (this.FriendListScrollView.gameObject.transform.GetComponent("XUIPanel") as IXUIPanel);
+ this.FriendListWrapContent = (this.FriendListScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent);
+ this.goFriendListZero = transform.Find("NoFriend").gameObject;
+ this.goFriendListBrockZero = transform.Find("NoBlockFriend").gameObject;
+ this.goFriendListTitle = transform.Find("Content/Titles").gameObject;
+ this.goFriendListZero.SetActive(false);
+ this.goFriendListBrockZero.SetActive(false);
+ this.FriendTabTpl = transform.Find("Tabs/Tpl");
+ this.FriendTabPool.SetupPool(this.FriendTabTpl.parent.gameObject, this.FriendTabTpl.gameObject, (uint)XFriendsDocument.FriendsTabCount, false);
+ this.TabList = (this.FriendTabTpl.parent.GetComponent("XUIList") as IXUIList);
+ }
+
+ private void OnApplicationPause(bool pause)
+ {
+ XDragonGuildDocument.Doc.QueryWXGroup();
+ }
+ }
+}
|