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/XNPCFavorBehaviour.cs | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs new file mode 100644 index 00000000..e984a64a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs @@ -0,0 +1,56 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XNPCFavorBehaviour : DlgBehaviourBase + { + public Transform m_effect; + + public IXUIButton m_Help; + + public IXUIButton m_Close; + + public Transform m_handlersTra; + + public IXUILabel m_SendTimesLabel; + + public IXUIButton m_AddBtn; + + public IXUISprite m_PrivilegeSpr; + + public IXUISprite m_SendTimesBtn; + + public IXUICheckBox m_Tab0; + + public IXUICheckBox m_Tab1; + + public IXUICheckBox m_Tab2; + + public GameObject m_Tab0_Redpoint; + + public GameObject m_Tab1_Redpoint; + + public GameObject m_Tab2_Redpoint; + + private void Awake() + { + this.m_effect = base.transform.Find("Effect"); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_handlersTra = base.transform.Find("Handler"); + this.m_SendTimesLabel = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_AddBtn = (base.transform.Find("Time/Add").GetComponent("XUIButton") as IXUIButton); + this.m_SendTimesBtn = (base.transform.Find("Time/tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeSpr = (base.transform.Find("Time/tq").GetComponent("XUISprite") as IXUISprite); + this.m_Tab0 = (base.transform.Find("Tabs/TabTpl0/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab1 = (base.transform.Find("Tabs/TabTpl1/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab2 = (base.transform.Find("Tabs/TabTpl2/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab0_Redpoint = base.transform.Find("Tabs/TabTpl0/Bg/RedPoint").gameObject; + this.m_Tab1_Redpoint = base.transform.Find("Tabs/TabTpl1/Bg/RedPoint").gameObject; + this.m_Tab2_Redpoint = base.transform.Find("Tabs/TabTpl2/Bg/RedPoint").gameObject; + } + } +} -- cgit v1.1-26-g67d0