Esempio n. 1
0
 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
Esempio n. 2
0
 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)
Esempio n. 5
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.__vehCD)
Esempio n. 6
0
 def showVehicleInfo(self):
     vehicleCD = getValidVehicleCDForNationChange(self._vehicleCD)
     shared_events.showVehicleInfo(vehicleCD)
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.getVehCD())
Esempio n. 8
0
 def showInfo(self):
     shared_events.showVehicleInfo(self._id)
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.getVehCD())
Esempio n. 10
0
 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)
Esempio n. 11
0
 def showAwardVehicleInfo(self, vehTypeCompDescr):
     shared_events.showVehicleInfo(int(vehTypeCompDescr))
Esempio n. 12
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self._vehicleCD)