From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/XCharacterCommonMenuBehaviour.cs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs new file mode 100644 index 00000000..f2ebd938 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs @@ -0,0 +1,48 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterCommonMenuBehaviour : DlgBehaviourBase + { + public XPlayerInfoChildView playerView; + + public XUIPool m_btntemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_bgTra; + + public Transform m_parentTra; + + public IXUISprite m_bgSpr; + + public IXUIButton btnSendFlower; + + public IXUIButton btnExchange; + + public IXUIButton btnClose; + + public IXUISprite m_sprFrame; + + public int TotalHeight = 0; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.playerView = new XPlayerInfoChildView(); + this.playerView.FindFrom(transform); + this.m_bgTra = transform; + this.m_parentTra = transform.Find("buttons"); + this.m_bgSpr = (transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.TotalHeight = this.m_bgSpr.spriteHeight; + this.m_sprFrame = (transform.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.btnSendFlower = (transform.Find("send").GetComponent("XUIButton") as IXUIButton); + this.btnExchange = (transform.Find("CardChange").GetComponent("XUIButton") as IXUIButton); + this.btnClose = (base.transform.Find("BgBlack").GetComponent("XUIButton") as IXUIButton); + this.m_btntemPool.SetupPool(transform.gameObject, transform.Find("BtnTpl").gameObject, 5u, true); + } + } +} -- cgit v1.1-26-g67d0