From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Guild/XGuildDailyTaskBehavior.cs | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs (limited to 'Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs') diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs new file mode 100644 index 00000000..f2f4a4e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyTaskBehavior : DlgBehaviourBase + { + public IXUIButton CompleteTaskBtn = null; + + public Transform CurrentRewardsGrid = null; + + public Transform AdditionalRewardsGrid = null; + + public IXUIButton SubmmitBtn = null; + + public IXUIButton CloseBtn = null; + + public XUIPool RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel timeLabel; + + public IXUILabel taskTimeLabel; + + public IXUILabel taskNumLabel; + + public IXUIWrapContent TaskContent; + + public IXUIButton RefreshTaskBtn; + + public Transform RefreshRecordRoot; + + public IXUISprite TaskLevelSprite; + + public IXUIButton RefreshLogBtn; + + public IXUIWrapContent RefreshLogWrapContent; + + public IXUIScrollView RefreshLogScrollView; + + public IXUIButton RefreshCloseBtn; + + public IXUILabel TalkLabel; + + public IXUIButton TipButton; + + private void Awake() + { + this.SubmmitBtn = (base.transform.Find("Submmit").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.CurrentRewardsGrid = base.transform.Find("Rewards/BaseRewards"); + this.AdditionalRewardsGrid = base.transform.Find("Rewards/AllRewards"); + this.RewardPool.SetupPool(null, base.transform.Find("Rewards/Tpl").gameObject, 2u, false); + this.timeLabel = (base.transform.Find("TimesDec2/Times").GetComponent("XUILabel") as IXUILabel); + this.taskTimeLabel = (base.transform.Find("TimesDec/Times").GetComponent("XUILabel") as IXUILabel); + this.taskNumLabel = (base.transform.Find("BaseInfo/Num").GetComponent("XUILabel") as IXUILabel); + this.TalkLabel = (base.transform.Find("Talk").GetComponent("XUILabel") as IXUILabel); + this.TaskContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.RefreshTaskBtn = (base.transform.Find("Refresh").GetComponent("XUIButton") as IXUIButton); + this.RefreshRecordRoot = base.transform.Find("LogPanel"); + this.TaskLevelSprite = (base.transform.Find("TaskLevel").GetComponent("XUISprite") as IXUISprite); + this.RefreshLogBtn = (base.transform.Find("RefreshLogBtn").GetComponent("XUIButton") as IXUIButton); + this.RefreshLogWrapContent = (this.RefreshRecordRoot.Find("LogMenu/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.RefreshLogScrollView = (this.RefreshRecordRoot.Find("LogMenu/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.RefreshCloseBtn = (this.RefreshRecordRoot.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.TipButton = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + } + } +} -- cgit v1.1-26-g67d0