From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/XTeamBattleConfirmBehaviour.cs | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs new file mode 100644 index 00000000..641084cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs @@ -0,0 +1,55 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamBattleConfirmBehaviour : DlgBehaviourBase + { + public IXUIButton m_OK = null; + + public IXUIButton m_Cancel = null; + + public IXUILabel m_DungeonName; + + public IXUIProgress m_Progress; + + public XUIPool m_Pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_GoldGroup; + + public IXUILabel m_statLab; + + public GameObject m_tipsGo; + + public IXUILabel m_CommonTip; + + public GameObject m_RiftPanel; + + public static int RiftBuffCount = 5; + + public GameObject[] m_RiftBuffs; + + private void Awake() + { + this.m_OK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Cancel = (base.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_DungeonName = (base.transform.Find("Bg/DungeonName").GetComponent("XUILabel") as IXUILabel); + this.m_Progress = (base.transform.Find("Bg/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_GoldGroup = base.transform.Find("Bg/RewardHunt").gameObject; + Transform transform = base.transform.Find("Bg/Members/Tpl"); + this.m_Pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_statLab = (base.transform.Find("Bg/Start").GetComponent("XUILabel") as IXUILabel); + this.m_tipsGo = base.transform.Find("LetsMakeFriends").gameObject; + this.m_CommonTip = (base.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_RiftPanel = base.transform.Find("Bg/RiftBuff").gameObject; + this.m_RiftBuffs = new GameObject[XTeamBattleConfirmBehaviour.RiftBuffCount]; + for (int i = 0; i < XTeamBattleConfirmBehaviour.RiftBuffCount; i++) + { + this.m_RiftBuffs[i] = this.m_RiftPanel.transform.Find("BossBuff" + i).gameObject; + } + } + } +} -- cgit v1.1-26-g67d0