From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/TitleDlgBehaviour.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs new file mode 100644 index 00000000..35b888ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs @@ -0,0 +1,45 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class TitleDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Promote; + + public IXUIScrollView m_ScrollView; + + public GameObject m_ItemTpl; + + public GameObject m_point; + + public GameObject m_MaxTitle; + + public IXUISprite m_redPoint; + + public TitleDisplay m_CurrentTitle = new TitleDisplay(); + + public TitleDisplay m_NextTitle = new TitleDisplay(); + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Promote = (base.transform.Find("Bg/Promote").GetComponent("XUIButton") as IXUIButton); + this.m_redPoint = (base.transform.Find("Bg/Promote/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_ScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ItemTpl = base.transform.Find("Bg/ScrollView/ItemTpl").gameObject; + this.m_point = base.transform.Find("Bg/Point").gameObject; + this.m_ItemTpl.gameObject.SetActive(false); + this.m_MaxTitle = base.transform.Find("Bg/MaxTitle").gameObject; + this.m_CurrentTitle.Init(base.transform.Find("Bg/Current")); + this.m_NextTitle.Init(base.transform.Find("Bg/Next")); + } + } +} -- cgit v1.1-26-g67d0