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()
def clickSettingWindow(self): self.destroy() event_dispatcher.showSettingsWindow(redefinedKeyMode=True, tabIndex=event_dispatcher.SETTINGS_TAB_INDEX.CONTROL)
def settingsClick(self): shared_event_dispatcher.showSettingsWindow(redefinedKeyMode=True)
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)