From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/NextLevelSealBehaviour.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs new file mode 100644 index 00000000..55551ede --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NextLevelSealBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_NextSealLabel; + + public IXUITexture m_NextSealTexL; + + public IXUITexture m_NextSealTexR; + + public IXUITexture m_NextSealTexM; + + public Transform m_NewFunction; + + public IXUISprite m_NewFunctionBg; + + public int m_NewFunctionBgWidth; + + public XUIPool m_NewFunctionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_NextSealLabel = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel); + this.m_NextSealTexL = (base.transform.Find("Bg/TexL").GetComponent("XUITexture") as IXUITexture); + this.m_NextSealTexR = (base.transform.Find("Bg/TexR").GetComponent("XUITexture") as IXUITexture); + this.m_NextSealTexM = (base.transform.Find("Bg/TexM").GetComponent("XUITexture") as IXUITexture); + this.m_NewFunction = base.transform.Find("Bg/NewFunction"); + this.m_NewFunctionBg = (base.transform.Find("Bg/NewFunction/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_NewFunctionBgWidth = this.m_NewFunctionBg.spriteWidth; + Transform transform = base.transform.Find("Bg/NewFunction/NewFunction/FunctionTpl"); + this.m_NewFunctionPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + } + } +} -- cgit v1.1-26-g67d0