def __getModuleInfo(self, intCD, icon, index): module = self.__getModuleItem(intCD) return {'header': getTreeModuleHeader(module), 'parameters': getShortListParameters(module, self.__getProgressionVehicle(), self.__getInstalledOnVehicleAnalogByIntCD(intCD)), 'hotKeys': getHotKeyListByIndex(index), 'module': {'icon': icon, 'intCD': intCD, 'available': True}}
def __getModuleInfo(self, moduleItem, index): moduleInfo = {'header': getTreeModuleHeader(moduleItem), 'parameters': getShortListParameters(moduleItem, self._getVehicle()), 'module': {'icon': getTreeModuleIcon(moduleItem), 'intCD': moduleItem.intCD, 'available': True}} if not self.__textInited: moduleInfo['hotKeys'] = br_helpers.getHotKeyListByIndex(index) return moduleInfo
def __getModuleInfoPanel(self, intCD): itemTypeID, _, _ = parseIntCompactDescr(intCD) if itemTypeID != GUI_ITEM_TYPE.VEHICLE: module = self.__getModuleItem(intCD) if module is not None: return {'header': getTreeModuleHeader(module), 'parameters': getShortListParameters(module, self.__getProgressionVehicle(), self.__getInstalledOnVehicleAnalogByIntCD(intCD)), 'module': {'icon': getTreeModuleIcon(module), 'available': True}} return