def onCounterTargetVisited(self, tabName, subTabName, controlId): """Notify that user visited tab """ isSettingsChanged = invalidateSettings(tabName, subTabName, controlId) if isSettingsChanged: newSettings = getNewSettings() self.as_setCountersDataS(newSettings)
def _update(self): self.as_setDataS(self.__getSettings()) newSettings = getNewSettings() if len(newSettings): self.as_setCountersDataS(newSettings) self.as_updateVideoSettingsS(self.__currentSettings) self.as_openTabS(_getLastTabIndex())
def _update(self): self.as_setDataS(self.__getSettings()) newSettings = getNewSettings() if newSettings: self.as_setCountersDataS(newSettings) self.as_updateVideoSettingsS(self.params.getMonitorSettings()) self.as_openTabS(_getLastTabIndex()) self.__setColorGradingTechnique()
def __updateNewSettingsCount(self): userLogin = getattr(BigWorld.player(), 'name', '') if userLogin == '': return newSettingsCnt = len(getNewSettings()) if newSettingsCnt > 0: self.as_setSettingsBtnCounterS(str(newSettingsCnt)) else: self.as_removeSettingsBtnCounterS()
def onCounterTargetVisited(self, tabName, subTabName, controlsIDs): isSettingsChanged = invalidateSettings(tabName, subTabName, controlsIDs) if isSettingsChanged: newSettings = getNewSettings() self.as_setCountersDataS(newSettings)
def __updateNewSettingsCount(self): newSettingsCount = len(getNewSettings()) if newSettingsCount > 0: self.as_setSettingsBtnCounterS(str(newSettingsCount))
def __updateNewSettingsCount(self): newSettingsCount = len(getNewSettings()) if newSettingsCount > 0: self.as_setSettingsBtnCounterS(str(newSettingsCount))