summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs
new file mode 100644
index 00000000..14fb4780
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs
@@ -0,0 +1,40 @@
+using System;
+using UILib;
+
+namespace XMainClient.UI.CustomBattle
+{
+ internal class CustomBattleMatchingHandler : DlgHandlerBase
+ {
+ protected override string FileName
+ {
+ get
+ {
+ return "GameSystem/CustomBattle/MatchingFrame";
+ }
+ }
+
+ private XCustomBattleDocument _doc = null;
+
+ private IXUIButton _cancel;
+
+ protected override void Init()
+ {
+ base.Init();
+ this._doc = XDocuments.GetSpecificDocument<XCustomBattleDocument>(XCustomBattleDocument.uuID);
+ this._cancel = (base.transform.Find("Cancel").GetComponent("XUIButton") as IXUIButton);
+ }
+
+ public override void RegisterEvent()
+ {
+ base.RegisterEvent();
+ this._cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelButtonClicked));
+ }
+
+ private bool OnCancelButtonClicked(IXUIButton button)
+ {
+ this._doc.SendCustomBattleUnMatch();
+ base.SetVisible(false);
+ return true;
+ }
+ }
+}