def __handleUiUpdated(self, _):
     self._stopUIListening()
     yield lambda callback: callback(True)
     from gui.battle_control import g_sessionProvider
     if g_sessionProvider.getCtx().wasInBattle:
         return
     graphicsStatus = graphics.getStatus()
     if not self.__graphicsResetShown and graphicsStatus.isReset():
         isOk = yield self.__showI18nDialog('resetGraphics')
         self.__graphicsResetShown = True
         if isOk:
             event_dispatcher.showSettingsWindow(redefinedKeyMode=False, tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.GRAPHICS)
     elif graphicsStatus.isShowWarning():
         event_dispatcher.showSettingsWindow(redefinedKeyMode=False, tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.GRAPHICS)
         isOk = yield self.__showI18nDialog('changeGraphics')
         if isOk:
             self.__updatePresetSetting()
     elif self.__isNeedToShowPresetChangingDialog():
         event_dispatcher.showSettingsWindow(redefinedKeyMode=False, tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.GRAPHICS)
         isOk = yield self.__showI18nDialog('lowFpsWarning')
         if isOk:
             BigWorld.callback(0.001, lambda : self.__downgradePresetIndex())
         else:
             self.__updateLowFpsDialogVersion()
     graphicsStatus.markProcessed()
     self.__clearCurrentFpsInfo()
예제 #2
0
 def clickSettingWindow(self):
     self.destroy()
     event_dispatcher.showSettingsWindow(redefinedKeyMode=True, tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.CONTROL)
예제 #3
0
 def settingsClick(self):
     shared_event_dispatcher.showSettingsWindow(redefinedKeyMode=True)
예제 #4
0
 def settingsClick(self):
     shared_event_dispatcher.showSettingsWindow(redefinedKeyMode=True)
예제 #5
0
 def settingsClick(self):
     event_dispatcher.showSettingsWindow(redefinedKeyMode=False)
예제 #6
0
 def settingsClick(self):
     event_dispatcher.showSettingsWindow(redefinedKeyMode=False)
 def clickSettingWindow(self):
     self.destroy()
     event_dispatcher.showSettingsWindow(
         redefinedKeyMode=True,
         tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.CONTROL,
         isBattleSettings=True)