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