From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/GuildMinePVPBeginView.cs | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs (limited to 'Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs') diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs new file mode 100644 index 00000000..9924190d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs @@ -0,0 +1,83 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMinePVPBeginView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMine/GuildMinePVPBegin"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private uint _TimerID = 0u; + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + base.OnHide(); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + base.OnUnload(); + } + + private void AutoClose(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ENTER_TIME_OUT"), "fece00"); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } +} -- cgit v1.1-26-g67d0