From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XPandoraSDKPopView.cs | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs (limited to 'Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs') 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 + { + 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.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null && !XSingleton.singleton.GameCamera.UnityCamera.enabled; + if (flag) + { + XSingleton.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.singleton.AddLog("XPandoraSDKPopView OnUnload", null, null, null, null, null, XDebugColor.XDebug_None); + base.OnUnload(); + } + + private void OnCloseClicked(IXUISprite btn) + { + XSingleton.singleton.AddLog("XPandoraSDKPopView OnCloseClicked", null, null, null, null, null, XDebugColor.XDebug_None); + this.SetVisible(false, true); + } + } +} -- cgit v1.1-26-g67d0