Ejemplo n.º 1
0
        public override void UnInit()
        {
            base.UnInit();
            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Lobby_OpenLobbyForm, new CUIEventManager.OnUIEventHandler(this.onOpenLobby));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Lobby_OpenSysEntryForm, new CUIEventManager.OnUIEventHandler(this.onOpenSysEntry));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.WEB_OpenURL, new CUIEventManager.OnUIEventHandler(this.onOpenWeb));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Common_WifiCheckTimer, new CUIEventManager.OnUIEventHandler(this.onCommon_WifiCheckTimer));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Common_ShowOrHideWifiInfo, new CUIEventManager.OnUIEventHandler(this.onCommon_ShowOrHideWifiInfo));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Lobby_LobbyFormShow, new CUIEventManager.OnUIEventHandler(this.Lobby_LobbyFormShow));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Lobby_LobbyFormHide, new CUIEventManager.OnUIEventHandler(this.Lobby_LobbyFormHide));

            Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Lobby_ConfirmErrExit, new CUIEventManager.OnUIEventHandler(this.onErrorExit));

            Singleton <EventRouter> .instance.RemoveEventHandler("MasterAttributesChanged", new Action(this, (IntPtr)this.UpdatePlayerData));

            this.m_LobbyForm.unInit();
            this.m_SysEntryForm.unInit();
            this.m_LobbyForm    = null;
            this.m_SysEntryForm = null;
        }
Ejemplo n.º 2
0
        public static void OnReceiveNewbitSyn(CSPkg msg)
        {
            Singleton <CUIManager> .GetInstance().CloseSendMsgAlert();

            SCPKG_NTF_NEWIEBITSYN stNewieBitSyn = msg.stPkgData.stNewieBitSyn;

            Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().SetGuidedStateSet((int)stNewieBitSyn.dwBitType, true);

            if (((stNewieBitSyn.dwBitType == 0x16) || (stNewieBitSyn.dwBitType == 0x17)) || ((stNewieBitSyn.dwBitType == 0x18) || (stNewieBitSyn.dwBitType == 0x19)))
            {
                LobbyForm.RefreshDianQuanPayButton(true);
                Singleton <CPaySystem> .GetInstance().AutoOpenRewardPanel(true);
            }
        }