From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XDragonNestBehaviour.cs | 159 +++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs new file mode 100644 index 00000000..92017714 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs @@ -0,0 +1,159 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonNestBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_NestName; + + public IXUILabel m_NormalCurPPT; + + public IXUILabel m_NormalSugPPT; + + public IXUILabel m_NormalSugAttr; + + public IXUILabel m_NormalSugLevel; + + public IXUILabel m_NormalSugMember; + + public IXUILabel m_EasySugAttr; + + public IXUILabel m_EasySugLevel; + + public IXUILabel m_EasySugMember; + + public Transform m_NormalDetail; + + public Transform m_EasyDetail; + + public Transform m_WeakPPTFrame; + + public IXUILabel m_WeakPPT; + + public IXUISprite m_WeakPPTHelp; + + public IXUICheckBox m_DiffEasyCheckBox; + + public IXUICheckBox m_DiffNormalCheckBox; + + public IXUICheckBox m_DiffHardCheckBox; + + public IXUISprite m_DiffHardLock; + + public IXUISprite m_quanMinSpr; + + public Transform m_NestFrameNormal; + + public XUIPool m_NestNormalTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITexture m_NestNormalBg; + + public Transform m_WeakTip; + + public IXUILabel m_WeakName; + + public IXUILabel m_WeakTip1; + + public IXUILabel m_WeakTip2; + + public IXUISprite m_WeakBlock; + + public IXUILabel m_WeakPercent; + + public Transform m_NestFrameHard; + + public IXUILabel m_NestHardName; + + public IXUITexture m_NestHardBossIcon; + + public IXUITexture m_NestHardBg; + + public XUIPool m_ItemTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_SweepButton; + + public GameObject m_SweepCostItem; + + public IXUILabel m_SweepCostItemNum; + + public IXUIButton m_EnterButton; + + public GameObject m_CostItem; + + public IXUILabel m_CostItemNum; + + public IXUILabel m_EnterText; + + public IXUILabel m_ResertTip; + + public IXUISprite m_Help; + + public Transform m_HelpFrame; + + public IXUILabel m_HelpTip; + + public IXUISprite m_HelpClose; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_quanMinSpr = (base.transform.Find("Bg/qmms").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/Tab/Panel/TabTpl"); + this.m_TabTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_DiffEasyCheckBox = (base.transform.Find("Bg/ToggleDiffEasy").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffNormalCheckBox = (base.transform.Find("Bg/ToggleDiffNormal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffHardCheckBox = (base.transform.Find("Bg/ToggleDiffHard").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffHardLock = (base.transform.Find("Bg/ToggleDiffHard/Lock").GetComponent("XUISprite") as IXUISprite); + this.m_NestName = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel); + this.m_NormalCurPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/CurPPT").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugPPT").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugAttr = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugAttr").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugLevel = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugLevel").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugMember = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugMember").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugAttr = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugAttr").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugLevel = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugLevel").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugMember = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugMember").GetComponent("XUILabel") as IXUILabel); + this.m_NormalDetail = base.transform.Find("Bg/DetailFrame/DiffNormal"); + this.m_EasyDetail = base.transform.Find("Bg/DetailFrame/DiffEasy"); + this.m_WeakPPTFrame = base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT"); + this.m_WeakPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_WeakPPTHelp = (base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT/Help").GetComponent("XUISprite") as IXUISprite); + this.m_NestFrameNormal = base.transform.Find("Bg/NestFrameNormal"); + transform = base.transform.Find("Bg/NestFrameNormal/NestTpl"); + this.m_NestNormalTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_NestNormalBg = (base.transform.Find("Bg/NestFrameNormal/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_WeakTip = base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips"); + this.m_WeakName = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Name").GetComponent("XUILabel") as IXUILabel); + this.m_WeakTip1 = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Tip1").GetComponent("XUILabel") as IXUILabel); + this.m_WeakTip2 = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_WeakBlock = (base.transform.Find("Bg/NestFrameNormal/Block").GetComponent("XUISprite") as IXUISprite); + this.m_WeakPercent = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NestFrameHard = base.transform.Find("Bg/NestFrameHard"); + this.m_NestHardName = (base.transform.Find("Bg/NestFrameHard/NestTpl/Name").GetComponent("XUILabel") as IXUILabel); + this.m_NestHardBossIcon = (base.transform.Find("Bg/NestFrameHard/NestTpl/Boss").GetComponent("XUITexture") as IXUITexture); + this.m_NestHardBg = (base.transform.Find("Bg/NestFrameHard/Bg").GetComponent("XUITexture") as IXUITexture); + transform = base.transform.Find("Bg/ItemList/ItemTpl"); + this.m_ItemTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + this.m_SweepButton = (base.transform.Find("Bg/SweepButton").GetComponent("XUIButton") as IXUIButton); + this.m_SweepCostItem = base.transform.Find("Bg/SweepButton/Item").gameObject; + this.m_SweepCostItemNum = (base.transform.Find("Bg/SweepButton/Item/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_EnterButton = (base.transform.Find("Bg/Enter").GetComponent("XUIButton") as IXUIButton); + this.m_CostItem = base.transform.Find("Bg/ItemTpl").gameObject; + this.m_CostItemNum = (base.transform.Find("Bg/ItemTpl/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_EnterText = (base.transform.Find("Bg/Enter/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ResertTip = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUISprite") as IXUISprite); + this.m_HelpFrame = base.transform.Find("Bg/HelpFrame"); + this.m_HelpTip = (base.transform.Find("Bg/HelpFrame/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_HelpClose = (base.transform.Find("Bg/HelpFrame/Block").GetComponent("XUISprite") as IXUISprite); + } + } +} -- cgit v1.1-26-g67d0