def onGoToPostProgressionClick(self): if self._backAlias == VIEW_ALIAS.VEH_POST_PROGRESSION and callable( self._previewBackCb): self._previewBackCb() else: showVehPostProgressionView(self._vehicleCD, exitEvent=self._getExitEvent())
def __onGoToPostProgression(self): def predicate(window): return window.content is not None and getattr( window.content, 'alias', None) == VIEW_ALIAS.LOBBY_RESEARCH window = first(self.__guiLoader.windowsManager.findWindows(predicate)) if window is not None: window.content.goToPostProgression(self.__vehicle.intCD) else: g_eventBus.handleEvent(events.DestroyViewEvent( VIEW_ALIAS.VEH_POST_PROGRESSION), scope=EVENT_BUS_SCOPE.LOBBY) showVehPostProgressionView(self.__vehicle.intCD) self.__markAsVisitedHintInResearch() return
def goToPostProgression(self): shared_events.showVehPostProgressionView(g_currentVehicle.item.intCD)
def showPostProgression(self): vehicle = self.itemsCache.items.getVehicle(self.getVehInvID()) shared_events.showVehPostProgressionView(vehicle.intCD)
def goToPostProgression(self, itemCD): vehicle = self._itemsCache.items.getItemByCD(int(itemCD)) showVehPostProgressionView(vehicle.intCD, self._createExitEvent())