From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Guild/XGuildWeeklyBountyBehavior.cs | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs (limited to 'Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs') diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs new file mode 100644 index 00000000..c0d1d61d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs @@ -0,0 +1,108 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildWeeklyBountyBehavior : DlgBehaviourBase + { + public XUIPool BountyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform BountyListTrans; + + public IXUILabel TaskDecLabel; + + public IXUILabel GetLabel; + + public Transform RewardsParentTrans; + + public IXUIButton CloseBtn; + + public IXUIButton RefreshBtn; + + public IXUIButton HelpBtn; + + public IXUIButton CommitBtn; + + public IXUIButton GetBtn; + + public Transform ChestX; + + public IXUILabel ChestXExpLabel; + + public IXUILabel DragonCoinCostLabel; + + public IXUILabel WeeklyAskLabel; + + public IXUILabel CommitLabel; + + public IXUILabel HelpBtnLabel; + + public IXUILabel LeftTimeLabel; + + public IXUILabel CurrentValueLabel; + + public IXUILabel SingleTaskBountyLabel; + + public IXUILabel ProgressLabel; + + public IXUIScrollView BountyListScrollView; + + public IXUIButton AboutBtn; + + public GameObject FreeLabelObj; + + public Transform MailRoot; + + public Transform effectRoot; + + public IXUISprite MailCloseSprite; + + public IXUIWrapContent MailWrapContent; + + public IXUIScrollView MailScrollView; + + public IXUIButton SendGrateFulBtn; + + public GameObject CommitBtnRedpoint; + + public GameObject RightItem; + + private void Awake() + { + this.AboutBtn = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.BountyListTrans = base.transform.Find("BountyList"); + this.BountyItemPool.SetupPool(this.BountyListTrans.gameObject, this.BountyListTrans.Find("BountyItem").gameObject, 12u, false); + this.TaskDecLabel = (base.transform.Find("Text/TaskDec").GetComponent("XUILabel") as IXUILabel); + this.GetLabel = (base.transform.transform.Find("GetBtn/GetLabel").GetComponent("XUILabel") as IXUILabel); + this.RewardsParentTrans = base.transform.Find("TaskRewards"); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.RefreshBtn = (base.transform.Find("RefreshBtn").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("ReqHelp").GetComponent("XUIButton") as IXUIButton); + this.CommitBtn = (base.transform.Find("CommitBtn").GetComponent("XUIButton") as IXUIButton); + this.CommitBtnRedpoint = base.transform.Find("CommitBtn/RedPoint").gameObject; + this.GetBtn = (base.transform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton); + this.ChestX = base.transform.transform.Find("ChestX"); + this.ChestXExpLabel = (this.ChestX.Find("Exp").GetComponent("XUILabel") as IXUILabel); + this.FreeLabelObj = base.transform.Find("RefreshBtn/FreeLabel").gameObject; + this.DragonCoinCostLabel = (base.transform.Find("RefreshBtn/godLabel").GetComponent("XUILabel") as IXUILabel); + this.WeeklyAskLabel = (base.transform.Find("AskTimesLabel").GetComponent("XUILabel") as IXUILabel); + this.CommitLabel = (base.transform.Find("CommitBtn/T").GetComponent("XUILabel") as IXUILabel); + this.HelpBtnLabel = (base.transform.Find("ReqHelp/GetLabel").GetComponent("XUILabel") as IXUILabel); + this.LeftTimeLabel = (base.transform.Find("LeftTimeLabel").GetComponent("XUILabel") as IXUILabel); + this.CurrentValueLabel = (base.transform.Find("CurrentOwnedNum").GetComponent("XUILabel") as IXUILabel); + this.SingleTaskBountyLabel = (base.transform.Find("SingleTaskBountyValue").GetComponent("XUILabel") as IXUILabel); + this.ProgressLabel = (base.transform.Find("SingleTaskBountyValue/t").GetComponent("XUILabel") as IXUILabel); + this.MailRoot = base.transform.Find("mail"); + this.MailCloseSprite = (this.MailRoot.Find("Bg/Black").GetComponent("XUISprite") as IXUISprite); + this.MailWrapContent = (this.MailRoot.Find("MailDlg/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.MailScrollView = (this.MailRoot.Find("MailDlg").GetComponent("XUIScrollView") as IXUIScrollView); + this.SendGrateFulBtn = (this.MailRoot.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.BountyListScrollView = (this.BountyListTrans.GetComponent("XUIScrollView") as IXUIScrollView); + this.RightItem = base.transform.Find("RightItem").gameObject; + this.effectRoot = base.transform.Find("EffectPanel/Effect"); + } + } +} -- cgit v1.1-26-g67d0