コード例 #1
0
ファイル: storestorecomponent.py プロジェクト: Difrex/wotsdk
 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
コード例 #2
0
ファイル: __init__.py プロジェクト: kblw/wot_client
 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)}))
コード例 #3
0
 def showAwardVehicleInfo(self, vehTypeCompDescr):
     shared_events.showVehicleInfo(int(vehTypeCompDescr))
コード例 #4
0
 def showItemInfo(self, itemId):
     shared_events.showVehicleInfo(itemId)
コード例 #5
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.__vehCD)
コード例 #6
0
 def showVehicleInfo(self):
     vehicleCD = getValidVehicleCDForNationChange(self._vehicleCD)
     shared_events.showVehicleInfo(vehicleCD)
コード例 #7
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.getVehCD())
コード例 #8
0
 def showInfo(self):
     shared_events.showVehicleInfo(self._id)
コード例 #9
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self.getVehCD())
コード例 #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)
コード例 #11
0
 def showAwardVehicleInfo(self, vehTypeCompDescr):
     shared_events.showVehicleInfo(int(vehTypeCompDescr))
コード例 #12
0
 def showVehicleInfo(self):
     shared_events.showVehicleInfo(self._vehicleCD)