def showGUI(self, ctx): ctx = cPickle.loads(ctx) LOG_MX('showGUI', ctx) self.databaseID = ctx['databaseID'] if 'prebattleID' in ctx: self.prebattle = ClientPrebattle.ClientPrebattle(ctx['prebattleID']) self.isInRandomQueue = ctx.get('isInRandomQueue', False) self.isInTutorialQueue = ctx.get('isInTutorialQueue', False) self.isInTutorialQueue = ctx.get('isInUnitAssembler', False) if 'serverUTC' in ctx: import helpers.time_utils as tm tm.setTimeCorrection(ctx['serverUTC']) if 'isLongDisconnectedFromCenter' in ctx: isLongDisconnectedFromCenter = ctx['isLongDisconnectedFromCenter'] if self.isLongDisconnectedFromCenter != isLongDisconnectedFromCenter: self.isLongDisconnectedFromCenter = isLongDisconnectedFromCenter events.onCenterIsLongDisconnected(isLongDisconnectedFromCenter) events.isPlayerEntityChanging = False events.onAccountShowGUI(ctx) BigWorld.Screener.setUserId(self.databaseID)
def onCenterIsLongDisconnected(self, isLongDisconnected): LOG_DEBUG('onCenterIsLongDisconnected', isLongDisconnected) self.isLongDisconnectedFromCenter = isLongDisconnected events.onCenterIsLongDisconnected(isLongDisconnected)