def __init__(self, submitterParams, key): self.__submitter = self._getSubmitterType()(submitterParams) self.onInvalidate = Event.Event() self.onCloseDialog = Event.Event() self.colorManager = ColorSchemeManager() super(_ExchangeDialogMeta, self).__init__(key, scope=ScopeTemplates.LOBBY_SUB_SCOPE) self.wallet.onWalletStatusChanged += self._onStatsChanged
def __init__(self, typeCompactDescr, key): self.__typeCompactDescr = typeCompactDescr self.onInvalidate = Event.Event() self.onCloseDialog = Event.Event() self.colorManager = ColorSchemeManager() super(_ExchangeDialogMeta, self).__init__(key, scope=ScopeTemplates.LOBBY_SUB_SCOPE) self.wallet.onWalletStatusChanged += self._onStatsChanged
def __init__(self, key, typeCompactDescr): self.__typeCompactDescr = typeCompactDescr self.onInvalidate = Event.Event() self.onCloseDialog = Event.Event() self._items = g_itemsCache.items self.colorManager = ColorSchemeManager() super(_ExchangeDialogMeta, self).__init__(key, scope=ScopeTemplates.LOBBY_SUB_SCOPE) game_control.g_instance.wallet.onWalletStatusChanged += self._onStatsChanged
def _createManagers(self): super(LobbyEntry, self)._createManagers() self._varsMgr = GlobalVarsManager() self._soundMgr = SoundManager() self._colorSchemeMgr = ColorSchemeManager() self._eventLogMgr = EventLogManager() self._contextMgr = ContextMenuManager(self.proxy) self._popoverManager = PopoverManager(EVENT_BUS_SCOPE.LOBBY) self._guiItemsMgr = GuiItemsManager() self._voiceChatMgr = VoiceChatManager(self.proxy) self._utilsMgr = UtilsManager() self._tweenMgr = TweenManager() self._gameInputMgr = GameInputMgr() self._cacheMgr = CacheManager() self._tutorialMgr = TutorialManager(True, 'gui/tutorial-lobby-gui.xml')
def _createColorSchemeManager(self): return ColorSchemeManager()