From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/ProfessionChangeBehaviour.cs | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs new file mode 100644 index 00000000..fc77da41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs @@ -0,0 +1,70 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ProfessionChangeBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_ProfName; + + public IXUISprite m_ProfIcon; + + public IXUITexture m_Texture; + + public IXUILabel m_Desc; + + public IXUIButton m_TryProfBtn; + + public IXUIButton m_ChangeProfBtn; + + public GameObject m_TipsWindow; + + public IXUIButton m_TipsClose; + + public IXUILabel m_TipsType; + + public IXUILabel m_TipsDesc; + + public IXUIScrollView m_TextScrollView; + + public IXUILabel m_TipsUse; + + public IXUISprite m_GetPathBtn; + + public IXUIButton m_OKBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tabs/Tpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/Right/Star/Tpl"); + this.m_StarPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/Right"); + this.m_ProfName = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_ProfIcon = (transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_Texture = (transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); + this.m_Desc = (transform.Find("Desc").GetComponent("XUILabel") as IXUILabel); + this.m_TryProfBtn = (transform.Find("TryProfBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ChangeProfBtn = (transform.Find("ChangeProfBtn").GetComponent("XUIButton") as IXUIButton); + transform = base.transform.Find("Bg/TipsWindow"); + this.m_TipsWindow = transform.gameObject; + this.m_TipsClose = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_TipsType = (transform.Find("TypeTips").GetComponent("XUILabel") as IXUILabel); + this.m_TipsDesc = (transform.Find("Text/Desc/T").GetComponent("XUILabel") as IXUILabel); + this.m_TextScrollView = (transform.Find("Text/Desc").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TipsUse = (transform.Find("Use/T").GetComponent("XUILabel") as IXUILabel); + this.m_GetPathBtn = (transform.Find("GetPath").GetComponent("XUISprite") as IXUISprite); + this.m_OKBtn = (transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + } + } +} -- cgit v1.1-26-g67d0