def __addAdditionalBlocks(self, playersCount, legionariesCount): if playersCount > 0: self._list.insert(0, {'headerText': text_styles.standard(i18n.makeString(CYBERSPORT.WINDOW_UNIT_CANDIDATES_TEAM))}) if playersCount > 0 and legionariesCount > 0: self._list.append({'emptyRender': True}) if legionariesCount > 0: self._list.append({'headerText': '%s%s' % (UtilsManager.getHtmlIconText(ImageUrlProperties(RES_ICONS.MAPS_ICONS_LIBRARY_FORTIFICATION_LEGIONNAIRE, 16, 16, -4, 0)), text_styles.standard(i18n.makeString(CYBERSPORT.WINDOW_UNIT_CANDIDATES_LEGIONARIES))), 'headerToolTip': TOOLTIPS.CYBERSPORT_STATICFORMATION_WAITLIST_LEGIONNAIRES})
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 _createUtilsManager(self): return UtilsManager()