def __init__(self, isEnabled = False, path = ''): super(TutorialManager, self).__init__() self._isEnabled = isEnabled self._aliases = {} self._components = set() if isEnabled: self._config = gui_config.readConfig(path) else: self._config = None
def __init__(self, isEnabled=False, path=''): super(TutorialManager, self).__init__() self._isEnabled = isEnabled self._aliases = {} self._components = set() if isEnabled: self._config = gui_config.readConfig(path) else: self._config = None
def __init__(self, app, isEnabled=False, path=""): super(TutorialManager, self).__init__() self._isEnabled = isEnabled self._aliases = {} self._components = set() self.seEnvironment(app) if isEnabled: self._config = gui_config.readConfig(path) else: self._config = None return
def setup(self, isEnabled=False, path=''): _logger.debug('setup: %r %r', isEnabled, path) self._isEnabled = isEnabled if isEnabled: self.__addImplsListeners() self._config = gui_config.readConfig(path) for componentID, item in self._config.getItems(): cmpDescr = _getComponentDescr(componentID, item) self.__descriptions.append(cmpDescr) self._componentViewBindings[ componentID] = _ComponentViewBinding(cmpDescr.viewId) else: self.__removeImplsListeners() self._config = None self.__tryToSetupGui() return
def __init__(self, app, isEnabled=False, path=''): super(TutorialManager, self).__init__() self._isEnabled = isEnabled self._componentViewBindings = {} self._components = set() self._componentProps = {} self._pendingComponentAnimations = {} self.setEnvironment(app) if isEnabled: self._config = gui_config.readConfig(path) else: self._config = None self.__hangarMenuButtonsOverride = None self.__headerMenuButtonsOverride = None self.__hangarHeaderEnabled = True self.__battleSelectorHintOverride = None return
def reloadConfig(self, filePath): self.__config = gui_config.readConfig(filePath, forced=True)
def loadConfig(self, filePath): self.__config = gui_config.readConfig(filePath)
def reloadConfig(self, filePath): self.config = gui_config.readConfig(filePath, forced=True)
def loadConfig(self, filePath): self.config = gui_config.readConfig(filePath)
def reloadConfig(self, filePath): """ Clear file cache and reads specified config by given GUI API. :param filePath: relative file path to GUI config. """ self.__config = gui_config.readConfig(filePath, forced=True)
def loadConfig(self, filePath): """ Reads specified config by given GUI API. :param filePath: relative file path to GUI config. """ self.__config = gui_config.readConfig(filePath)