diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs new file mode 100644 index 00000000..b5ed22b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs @@ -0,0 +1,78 @@ +using System;
+using UnityEngine;
+using XUtliPoolLib;
+
+namespace XMainClient.UI
+{
+ internal class MobaActivityDlg : TabDlgBase<MobaActivityDlg>
+ {
+ public override string fileName
+ {
+ get
+ {
+ return "GameSystem/DailyActivity/MobaActivityDlg";
+ }
+ }
+
+ public override int group
+ {
+ get
+ {
+ return 1;
+ }
+ }
+
+ protected override bool bHorizontal
+ {
+ get
+ {
+ return false;
+ }
+ }
+
+ public PVPActivityDlg _PVPActivityView;
+
+ private Transform parent;
+
+ protected override void Init()
+ {
+ base.Init();
+ base.RegisterSubSysRedPointMgr(XSysDefine.XSys_MobaAcitivity);
+ }
+
+ protected override void OnLoad()
+ {
+ base.OnLoad();
+ this.parent = base.uiBehaviour.transform.Find("Bg");
+ }
+
+ protected override void OnUnload()
+ {
+ base.OnUnload();
+ DlgHandlerBase.EnsureUnload<PVPActivityDlg>(ref this._PVPActivityView);
+ }
+
+ public override void SetupHandlers(XSysDefine sys)
+ {
+ XSysDefine xsysDefine = sys;
+ if (xsysDefine != XSysDefine.XSys_PVPAcitivity)
+ {
+ XSingleton<XDebug>.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null);
+ }
+ else
+ {
+ base._AddActiveHandler(DlgHandlerBase.EnsureCreate<PVPActivityDlg>(ref this._PVPActivityView, this.parent, true, this));
+ }
+ }
+
+ public void ShowSubSystem(XSysDefine sys)
+ {
+ bool flag = !base.IsLoaded();
+ if (flag)
+ {
+ base.Load();
+ }
+ base.ShowSubGamsSystem(sys);
+ }
+ }
+}
|