summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs83
1 files changed, 83 insertions, 0 deletions
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<GuildMinePVPBeginView, GuildMinePVPBeginBehaviour>
+ {
+ 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<XTimerMgr>.singleton.KillTimer(this._TimerID);
+ this._TimerID = XSingleton<XTimerMgr>.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null);
+ }
+
+ protected override void OnHide()
+ {
+ XSingleton<XTimerMgr>.singleton.KillTimer(this._TimerID);
+ this._TimerID = 0u;
+ base.OnHide();
+ }
+
+ protected override void OnUnload()
+ {
+ XSingleton<XTimerMgr>.singleton.KillTimer(this._TimerID);
+ this._TimerID = 0u;
+ base.OnUnload();
+ }
+
+ private void AutoClose(object param)
+ {
+ bool flag = base.IsVisible();
+ if (flag)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(XSingleton<XStringTable>.singleton.GetString("ENTER_TIME_OUT"), "fece00");
+ DlgBase<GuildMinePVPBeginView, GuildMinePVPBeginBehaviour>.singleton.SetVisibleWithAnimation(false, null);
+ }
+ }
+ }
+}