Beispiel #1
0
 def startListenCsisUpdate(self, startListenCsis):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if startListenCsis:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
             self._updateServersList()
Beispiel #2
0
 def fini(self):
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryStart -= self.__onServerUpdate
     g_preDefinedHosts.onPingPerformed -= self.__onServerUpdate
     g_preDefinedHosts.onCsisQueryComplete -= self.__onServerUpdate
     self._serverList = None
     return
Beispiel #3
0
 def startListenCsisUpdate(self, startListenCsis):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if startListenCsis:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
             self._updateServersList()
Beispiel #4
0
 def fini(self):
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryStart -= self.__onServerUpdate
     g_preDefinedHosts.onPingPerformed -= self.__onServerUpdate
     g_preDefinedHosts.onCsisQueryComplete -= self.__onServerUpdate
     self._serverList = None
     return
Beispiel #5
0
 def startListenCsisQuery(self, startListen):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if startListen:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
     if startListen:
         g_preDefinedHosts.requestPing(True)
Beispiel #6
0
 def _dispose(self):
     self.__clearServersList()
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self._updateRoamingCtrl, scope=EVENT_BUS_SCOPE.LOBBY)
     game_control.g_instance.serverStats.onStatsReceived -= self.__onStatsReceived
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryComplete -= self.__onCsisUpdate
     g_preDefinedHosts.onCsisQueryStart -= self.__onCsisUpdate
     super(ServerStats, self)._dispose()
Beispiel #7
0
 def startListenCsisQuery(self, startListen):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if startListen:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
     if startListen:
         g_preDefinedHosts.requestPing(True)
 def onDropDownOpened(self, opened):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if opened:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
             self._updateServersList()
     if opened:
         g_preDefinedHosts.requestPing(True)
 def _dispose(self):
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self._serversDP.fini()
     self._serversDP = None
     super(SwitchPeripheryWindow, self)._dispose()
     return
 def _dispose(self):
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self._serversDP.fini()
     self._serversDP = None
     super(SwitchPeripheryWindow, self)._dispose()
     return
Beispiel #11
0
 def _dispose(self):
     self.__clearServersList()
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE,
                         self._updateRoamingCtrl,
                         scope=EVENT_BUS_SCOPE.LOBBY)
     game_control.g_instance.serverStats.onStatsReceived -= self.__onStatsReceived
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryComplete -= self.__onCsisUpdate
     g_preDefinedHosts.onCsisQueryStart -= self.__onCsisUpdate
     super(ServerStats, self)._dispose()
Beispiel #12
0
 def _dispose(self):
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self._updateRoamingCtrl, scope=EVENT_BUS_SCOPE.LOBBY)
     game_control.g_instance.serverStats.onStatsReceived -= self.__onStatsReceived
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self._serversDP.fini()
     self._serversDP = None
     super(ServerStats, self)._dispose()
     return
Beispiel #13
0
 def _dispose(self):
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self._updateRoamingCtrl, scope=EVENT_BUS_SCOPE.LOBBY)
     game_control.g_instance.serverStats.onStatsReceived -= self.__onStatsReceived
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self._serversDP.fini()
     self._serversDP = None
     super(ServerStats, self)._dispose()
     return
 def onDropDownOpened(self, opened):
     r"""
     Invokes by DAAPI when user open\close dropdown menu
     :param opened: true - list has been opened, false - list has been closed
     """
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if opened:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
             self._updateServersList()
     if opened:
         g_preDefinedHosts.requestPing(True)
 def onDropDownOpened(self, opened):
     r"""
     Invokes by DAAPI when user open\close dropdown menu
     :param opened: true - list has been opened, false - list has been closed
     """
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if opened:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
             self._updateServersList()
     if opened:
         g_preDefinedHosts.requestPing(True)
Beispiel #16
0
 def _dispose(self):
     self.clearNotification()
     self._getController().onUpdated -= self.__onControllerUpdated
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self.__serversDP.fini()
     self.__serversDP = None
     self._allServers = {}
     super(PrimeTimeViewBase, self)._dispose()
     return
 def _dispose(self):
     self.stopNotification()
     self.clearNotification()
     self.rankedController.onUpdated -= self.__onRankedUpdated
     if not constants.IS_CHINA:
         g_preDefinedHosts.stopCSISUpdate()
         g_preDefinedHosts.onCsisQueryStart -= self.__onServersUpdate
         g_preDefinedHosts.onCsisQueryComplete -= self.__onServersUpdate
         g_preDefinedHosts.onPingPerformed -= self.__onServersUpdate
     self.__serversDP.fini()
     self.__serversDP = None
     self.__serversList = None
     super(RankedBattlesPrimeTimeView, self)._dispose()
     return
Beispiel #18
0
 def _dispose(self):
     super(LoginDispatcher, self)._dispose()
     connectionManager.connectionStatusCallbacks -= self.__handleConnectionStatus
     connectionManager.searchServersCallbacks -= self.__serversFind
     connectionManager.onConnected -= self.__onConnected
     connectionManager.stopSearchServers()
     g_playerEvents.onLoginQueueNumberReceived -= self.handleQueue
     g_playerEvents.onAccountBecomePlayer -= self.__pe_onAccountBecomePlayer
     g_playerEvents.onKickWhileLoginReceived -= self.handleKickWhileLogin
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryStart -= self.__onCsisUpdate
     g_preDefinedHosts.onCsisQueryComplete -= self.__onCsisUpdate
     self.__loginDataLoader.onConfigLoaded -= self.onConfigLoaded
     self.__loginDataLoader = None
     self.__foundedServers = None
     self.__onLoggingTryingEndHdlr = None
Beispiel #19
0
 def _dispose(self):
     super(LoginDispatcher, self)._dispose()
     connectionManager.connectionStatusCallbacks -= self.__handleConnectionStatus
     connectionManager.searchServersCallbacks -= self.__serversFind
     connectionManager.onConnected -= self.__onConnected
     connectionManager.stopSearchServers()
     g_playerEvents.onLoginQueueNumberReceived -= self.handleQueue
     g_playerEvents.onAccountBecomePlayer -= self.__pe_onAccountBecomePlayer
     g_playerEvents.onKickWhileLoginReceived -= self.handleKickWhileLogin
     g_preDefinedHosts.stopCSISUpdate()
     g_preDefinedHosts.onCsisQueryStart -= self.__onCsisUpdate
     g_preDefinedHosts.onCsisQueryComplete -= self.__onCsisUpdate
     self.__loginDataLoader.onConfigLoaded -= self.onConfigLoaded
     self.__loginDataLoader = None
     self.__foundedServers = None
     self.__onLoggingTryingEndHdlr = None
Beispiel #20
0
 def startListenCsisQuery(self, value):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if value:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()
Beispiel #21
0
 def startListenCsisQuery(self, value):
     if GUI_SETTINGS.csisRequestRate == REQUEST_RATE.ON_REQUEST:
         if value:
             g_preDefinedHosts.startCSISUpdate()
         else:
             g_preDefinedHosts.stopCSISUpdate()