def start(self): self.__loadHintsData() if self._data.hintsCount == 0: return False self._gui = HintsProxy() self._gui.init() self._gui.loadConfig(self._data.getGuiFilePath()) self._gui.onHintClicked += self.__onGUIInput self._gui.onHintItemFound += self.__onItemFound self._gui.onHintItemLost += self.__onItemLost return True
def start(self): self.__loadHintsData() if self._data.getHintsCount() == 0: return False else: self.__hintsWithClientTriggers = None self._gui = HintsProxy() self._gui.onGUILoaded += self.__onGUILoaded self._gui.onHintClicked += self.__onGUIInput self._gui.onHintItemFound += self.__onItemFound self._gui.onHintItemLost += self.__onItemLost self._gui.onVisibleChanged += self.__onItemVisibleChanged self._gui.onEnabledChanged += self.__onItemEnabledChanged self.__startSettingsListening() self._gui.loadConfig(self._data.getGuiFilePath()) self._gui.init() return True