示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
    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)
示例#8
0
 def reloadConfig(self, filePath):
     self.config = gui_config.readConfig(filePath, forced=True)
示例#9
0
 def loadConfig(self, filePath):
     self.config = gui_config.readConfig(filePath)
示例#10
0
 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)
示例#11
0
 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)
示例#12
0
 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)
示例#13
0
 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)