def onShowInfo(self, itemCD): dataCompactId = int(itemCD) item = g_itemsCache.items.getItemByCD(dataCompactId) if item is None: return LOG_ERROR( 'There is error while attempting to show vehicle info window: ', str(dataCompactId)) else: if item.itemTypeID == GUI_ITEM_TYPE.VEHICLE: if item.isPreviewAllowed(): shared_events.showVehiclePreview(item.intCD, VIEW_ALIAS.LOBBY_STORE) else: shared_events.showVehicleInfo(item.intCD) else: self.fireEvent( events.LoadViewEvent( VIEW_ALIAS.MODULE_INFO_WINDOW, getViewName(VIEW_ALIAS.MODULE_INFO_WINDOW, item.intCD), { 'moduleCompactDescr': item.intCD, 'isAdditionalInfoShow': i18n.makeString(MENU.MODULEINFO_ADDITIONALINFO) }), EVENT_BUS_SCOPE.LOBBY) return
def onShowInfo(self, data): dataCompactId = int(data.id) item = g_itemsCache.items.getItemByCD(dataCompactId) if item is None: return LOG_ERROR('There is error while attempting to show vehicle info window: ', str(dataCompactId)) if item.itemTypeID == GUI_ITEM_TYPE.VEHICLE: shared_events.showVehicleInfo(item.intCD) else: self.fireEvent(events.LoadViewEvent(VIEW_ALIAS.MODULE_INFO_WINDOW, getViewName(VIEW_ALIAS.MODULE_INFO_WINDOW, item.intCD), {'moduleCompactDescr': str(item.intCD), 'isAdditionalInfoShow': i18n.makeString(MENU.MODULEINFO_ADDITIONALINFO)}))
def showAwardVehicleInfo(self, vehTypeCompDescr): shared_events.showVehicleInfo(int(vehTypeCompDescr))
def showItemInfo(self, itemId): shared_events.showVehicleInfo(itemId)
def showVehicleInfo(self): shared_events.showVehicleInfo(self.__vehCD)
def showVehicleInfo(self): vehicleCD = getValidVehicleCDForNationChange(self._vehicleCD) shared_events.showVehicleInfo(vehicleCD)
def showVehicleInfo(self): shared_events.showVehicleInfo(self.getVehCD())
def showInfo(self): shared_events.showVehicleInfo(self._id)
def showVehicleInfo(self): vehicle = g_itemsCache.items.getVehicle(self._itemId) if vehicle is not None: shared_events.showVehicleInfo(vehicle.intCD) else: LOG_WARNING('Truing to show unknown vehicle info window', self._itemId)
def showVehicleInfo(self): shared_events.showVehicleInfo(self._vehicleCD)