From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Guild/XGuildGrowthDonateView.cs | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs (limited to 'Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs') diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs new file mode 100644 index 00000000..210107a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs @@ -0,0 +1,109 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildGrowthDonateView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthDonate"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.RecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickedRecordBtn)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnInitWrapContent)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateWrapContent)); + base.uiBehaviour.RecordWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateRecordWrapContent)); + } + + private void OnUpdateRecordWrapContent(Transform itemTransform, int index) + { + } + + private bool OnClickedRecordBtn(IXUIButton button) + { + return true; + } + + private void OnUpdateWrapContent(Transform itemTransform, int index) + { + } + + private void OnInitWrapContent(Transform itemTransform, int index) + { + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} -- cgit v1.1-26-g67d0