Ejemplo n.º 1
0
 def show(self, reason, isBan=None, expiryTime=None):
     BigWorld.disconnect()
     Cursor.forceShowCursor(True)
     message = ''
     if isBan:
         if reason.upper().startswith('#'):
             if len(reason) == 0:
                 reason = 'connection_lost'
             reason = makeString(reason.upper())
             if not isinstance(reason, unicode):
                 convert(reason)
         if expiryTime:
             strExpireTime = getFormattedTime(expiryTime)
             message = localizeMenu('LOGIN/STATUS/LOGIN_REJECTED_BAN')
             message = message % {'time': strExpireTime, 'reason': reason}
         else:
             message = localizeMenu(
                 'LOGIN/STATUS/LOGIN_REJECTED_BAN_UNLIMITED')
             message = message % {'reason': reason}
     else:
         message = localizeMessages('DISCONNECT/' + reason)
     self.call_1('setMessage', message,
                 localizeMessages('DISCONNECT_TITLE'),
                 localizeMessages('DISCONNECT_ENTER_BUTTON'))
     self.active(True)
     BigWorld.worldDrawEnabled(False)
Ejemplo n.º 2
0
 def checkMouseState(self):
     Cursor.forceShowCursor(self._cursorVisibility())
     if self._stateId == BATTLE_DEFAULT and not self._interManager.isActive:
         self._playerAvatar.setFlyMouseInputAllowed(True)
     else:
         self._playerAvatar.setFlyMouseInputAllowed(False)
Ejemplo n.º 3
0
 def hideCursor(self):
     Cursor.forceShowCursor(False)
     entity = BigWorld.player()
     entity.setFlyMouseInputAllowed(True)