def attachCursor(self, appNS): if appNS not in self.__apps: return LOG_DEBUG('Attach cursor', appNS) app = self.__apps[appNS] if app and app.cursorMgr: app.cursorMgr.attachCursor(True) else: Cursor.setAutoShow(True)
def onAccountShowGUI(self, ctx = None): if ctx is None: ctx = {} cursorMgr = self.window.cursorMgr if cursorMgr is not None: cursorMgr.attachCursor(True) else: Cursor.setAutoShow(True) if connectionManager.isConnected(): self.window.fireEvent(LoadViewEvent(VIEW_ALIAS.LOBBY, ctx=ctx)) else: LOG_WARNING('onAccountShowGUI: show lobby has been skipped, because client is not connected to server.') return
def onAccountShowGUI(self, ctx=None): if ctx is None: ctx = {} if self.__currentLanguage is None: from helpers import getClientLanguage self.__currentLanguage = getClientLanguage() BigWorld.player().setLanguage(self.__currentLanguage) cursorMgr = self.window.cursorMgr if cursorMgr is not None: cursorMgr.attachCursor(True) else: Cursor.setAutoShow(True) self.window.fireEvent(ShowViewEvent(ShowViewEvent.SHOW_LOBBY, ctx)) return
def onAccountShowGUI(self, ctx = None): if ctx is None: ctx = {} if self.__currentLanguage is None: from helpers import getClientLanguage self.__currentLanguage = getClientLanguage() BigWorld.player().setLanguage(self.__currentLanguage) cursorMgr = self.window.cursorMgr if cursorMgr is not None: cursorMgr.attachCursor(True) else: Cursor.setAutoShow(True) self.window.fireEvent(ShowViewEvent(ShowViewEvent.SHOW_LOBBY, ctx)) return