コード例 #1
0
ファイル: app_factory.py プロジェクト: webiumsk/WOT-0.9.12
 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)
コード例 #2
0
 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)
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
 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