summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs96
1 files changed, 96 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs
new file mode 100644
index 00000000..3adfafc8
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs
@@ -0,0 +1,96 @@
+using System;
+using UILib;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XPandoraSDKPopView : DlgBase<XPandoraSDKPopView, XPandoraSDKPopViewBehaviour>
+ {
+ public override string fileName
+ {
+ get
+ {
+ return "Hall/PandoraSDKPopDlg";
+ }
+ }
+
+ public override int group
+ {
+ get
+ {
+ return 1;
+ }
+ }
+
+ public override bool autoload
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public override bool pushstack
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public override bool isHideTutorial
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public override bool isPopup
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override void OnShow()
+ {
+ base.OnShow();
+ }
+
+ public override void StackRefresh()
+ {
+ base.StackRefresh();
+ bool flag = XSingleton<XScene>.singleton.GameCamera != null && XSingleton<XScene>.singleton.GameCamera.UnityCamera != null && !XSingleton<XScene>.singleton.GameCamera.UnityCamera.enabled;
+ if (flag)
+ {
+ XSingleton<XScene>.singleton.GameCamera.UnityCamera.enabled = true;
+ }
+ }
+
+ public override void RegisterEvent()
+ {
+ base.RegisterEvent();
+ base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked));
+ }
+
+ protected override void OnHide()
+ {
+ base.OnHide();
+ }
+
+ protected override void OnUnload()
+ {
+ XSingleton<XDebug>.singleton.AddLog("XPandoraSDKPopView OnUnload", null, null, null, null, null, XDebugColor.XDebug_None);
+ base.OnUnload();
+ }
+
+ private void OnCloseClicked(IXUISprite btn)
+ {
+ XSingleton<XDebug>.singleton.AddLog("XPandoraSDKPopView OnCloseClicked", null, null, null, null, null, XDebugColor.XDebug_None);
+ this.SetVisible(false, true);
+ }
+ }
+}