Пример #1
0
 def __closeLoginRetryDialog(self, event=None):
     connectionManager.stopRetryConnection()
     self.fireEvent(LoginEvent(LoginEventEx.CANCEL_LGN_QUEUE, View.alias))
     self.removeListener(LoginEventEx.ON_LOGIN_QUEUE_CLOSED,
                         self.__closeLoginRetryDialog,
                         EVENT_BUS_SCOPE.LOBBY)
     self.__loginRetryDialogShown = False
Пример #2
0
 def cancelQueue(self, showWaiting=True, logged=False):
     if self.__onLoginQueue:
         if showWaiting:
             Waiting.show('enter')
         self.__setLoginQueue(False)
     self.fireEvent(LoginEvent(LoginEvent.CANCEL_LGN_QUEUE, View.alias))
     self.as_cancelLoginQueueS()
Пример #3
0
 def onAfterAutoLoginTimerClearing(self, host, clearInFlash):
     urls = g_preDefinedHosts.urlIterator(host)
     if urls is not None:
         urls.resume()
     self.__minOrderInQueue = 18446744073709551615L
     if clearInFlash:
         self.fireEvent(LoginEvent(LoginEvent.CANCEL_LGN_QUEUE, View.alias))
Пример #4
0
 def __closeLoginQueueDialog(self):
     self.fireEvent(LoginEvent(LoginEvent.CANCEL_LGN_QUEUE, View.alias))
     g_preDefinedHosts.resetQueryResult()
     self.removeListener(LoginEventEx.ON_LOGIN_QUEUE_CLOSED,
                         self._onLoginQueueClosed, EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(LoginEventEx.SWITCH_LOGIN_QUEUE_TO_AUTO,
                         self._onLoginQueueSwitched, EVENT_BUS_SCOPE.LOBBY)
     self.__loginQueueDialogShown = False
Пример #5
0
 def __createAnAccountResponse(self, success, errorMsg):
     self.fireEvent(
         LoginEvent(LoginEvent.CLOSE_CREATE_AN_ACCOUNT, View.alias, success,
                    errorMsg))