summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs
new file mode 100644
index 00000000..5c8beb9d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs
@@ -0,0 +1,54 @@
+using System;
+using KKSG;
+using UILib;
+using XUtliPoolLib;
+
+namespace XMainClient.UI
+{
+ internal class CrossGVGDuelHandler : GVGDuelHandlerBase
+ {
+ protected override string FileName
+ {
+ get
+ {
+ return "Guild/CrossGVG/CrossGVGDuelFrame";
+ }
+ }
+
+ private XCrossGVGDocument _doc;
+
+ protected override void Init()
+ {
+ base.Init();
+ this._doc = XDocuments.GetSpecificDocument<XCrossGVGDocument>(XCrossGVGDocument.uuID);
+ this.m_DuelHelp.SetText(XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("CrossGVG_duel_message")));
+ }
+
+ protected override void OnShow()
+ {
+ base.OnShow();
+ this.RefreshData();
+ }
+
+ protected override int GetDuelInfoSize()
+ {
+ return this._doc.GVGDuels.Count;
+ }
+
+ public override void RefreshData()
+ {
+ base.RefreshData();
+ base.ShowOrHide(!this._doc.HasDuelCombat);
+ }
+
+ protected override GVGDuelCombatInfo GetDuelInfo(int index)
+ {
+ return this._doc.GVGDuels[index];
+ }
+
+ protected override void OnEnterScene(IXUISprite sprite)
+ {
+ this._doc.SendCrossGVGOper(CrossGvgOperType.CGOT_EnterPointRace, 0UL);
+ }
+ }
+}