Example #1
0
 def onKickedFromServer(self, checkoutPeripheryID):
     LOG_MX('onKickedFromServer', checkoutPeripheryID)
     from gui.Scaleform.Disconnect import Disconnect
     if checkoutPeripheryID == 0:
         Disconnect.show('#system_messages:checkout_error', False, 0)
     else:
         Disconnect.show('#system_messages:another_periphery', False, 0)
Example #2
0
 def logOff():
     from gui.Scaleform.Disconnect import Disconnect
     Disconnect.hide()
     BigWorld.disconnect()
     BigWorld.clearEntitiesAndSpaces()
     from gui.WindowsManager import g_windowsManager
     g_windowsManager.showLobby()
Example #3
0
 def logOff():
     from gui.Scaleform.Disconnect import Disconnect
     Disconnect.hide()
     BigWorld.disconnect()
     BigWorld.clearEntitiesAndSpaces()
     from gui.WindowsManager import g_windowsManager
     g_windowsManager.showLobby()
Example #4
0
def showDisconnect(reason=None, isBan=False, expiryTime=None):
    global __ifDisconnectDialogShown
    if __ifDisconnectDialogShown:
        return
    if g_battleContext.isInBattle:
        from gui.Scaleform.Disconnect import Disconnect
        Disconnect.showKick(reason, isBan, expiryTime)
    else:
        Waiting.close()

        def callback(res):
            global __ifDisconnectDialogShown
            __ifDisconnectDialogShown = False

        __ifDisconnectDialogShown = True
        showDialog(DisconnectMeta(reason, isBan, expiryTime), callback)
Example #5
0
def showDisconnect(reason = None, isBan = False, expiryTime = None):
    global __ifDisconnectDialogShown
    if __ifDisconnectDialogShown:
        return
    if g_sessionProvider.isBattleUILoaded():
        from gui.Scaleform.Disconnect import Disconnect
        Disconnect.showKick(reason, isBan, expiryTime)
    else:
        Waiting.close()

        def callback(res):
            global __ifDisconnectDialogShown
            __ifDisconnectDialogShown = False

        __ifDisconnectDialogShown = True
        showDialog(DisconnectMeta(reason, isBan, expiryTime), callback)