def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): value = godmaService.GetTypeAttribute2( typeID, dogmaconst.attributeMaxTractorVelocity) maxTractorVelocity = GetFormattedAttributeAndValue( dogmaconst.attributeMaxTractorVelocity, value) attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/AutoTractorBeam/InfoAttributesHeader' )), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/AutoTractorBeam/MaxRangeLabel' ), FmtDist(attributes.maxRange), iconID=RANGE_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/AutoTractorBeam/CycleTimeSecondsLabel' ), FmtTimeInterval(attributes.cycleTimeSeconds * SEC, breakAt='sec'), iconID=CYCLE_TIME_ICON), DogmaEntryData('LabelTextSides', maxTractorVelocity) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): cargoCapacity = GetFormattedAttributeAndValue( attributeCapacity, types.GetCapacity(typeID)) attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/CargoBay/InfoAttributesHeader' )), DogmaEntryData('LabelTextSides', cargoCapacity), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/CargoBay/AccessRangeLabel'), FmtDist(attributes.accessRange), iconID=RANGE_ICON), EntryData('LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/CargoBay/AllowUserAdd'), FmtYesNo(attributes.allowUserAdd), iconID=0), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/CargoBay/AllowFreeForAll'), FmtYesNo(attributes.allowFreeForAll), iconID=0) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Reinforce/InfoAttributesHeader' )), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Reinforce/DurationLabel'), FmtTimeInterval(long(attributes.durationSeconds * SEC), breakAt='sec'), iconID=TIMER_ICON) ] if instance: attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Reinforce/ReinforcedLabel' ), FmtYesNo(instance.isReinforced))) if instance.isReinforced and instance.reinforceTimestamp > instance.GetWallclockTime( ): attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Reinforce/ExitReinforcementLabel' ), FmtDate(instance.reinforceTimestamp, 'ss'), iconID=TIMER_ICON)) return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Decay/InfoAttributesHeader')), EntryData('LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Decay/DurationLabel'), localization.GetByLabel( 'UI/Inflight/SpaceComponents/Decay/DurationValue', duration=long(attributes.durationSeconds * SEC)), iconID=TIMER_ICON) ] if instance and instance.decayTimestamp: attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Decay/TimestampLabel'), localization.GetByLabel( 'UI/Journal/JournalWindow/Contracts/TimeRemaining', time=instance.decayTimestamp - instance.GetSimTime()), iconID=TIMER_ICON)) return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): headerLabel = localization.GetByLabel( 'UI/Inflight/SpaceComponents/EntosisCaptureTarget/InfoAttributesHeader' ) attributeEntries = [ EntryData('Header', headerLabel), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/EntosisCaptureTarget/BaseCaptureTimeLabel' ), localization.GetByLabel( 'UI/Inflight/SpaceComponents/EntosisCaptureTarget/BaseCaptureTimeValue', duration=long(attributes.captureTimeSeconds * SEC)), iconID=TIMER_ICON) ] if attributes.defensiveRegenRate: regenTimeSeconds = attributes.captureTimeSeconds / attributes.defensiveRegenRate attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/EntosisCaptureTarget/DefensiveRegenTimeLabel' ), localization.GetByLabel( 'UI/Inflight/SpaceComponents/EntosisCaptureTarget/DefensiveRegenTimeValue', duration=long(regenTimeSeconds * SEC)), iconID=TIMER_ICON)) return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Fitting/InfoAttributesHeader') ), EntryData('LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Fitting/DistanceLabel'), FmtDist(attributes.range), iconID=RANGE_ICON) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Scoop/InfoAttributesHeader')), EntryData('LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Scoop/RangeLabel'), FmtDist( getattr(attributes, 'range', maxCargoContainerTransferDistance)), iconID=RANGE_ICON) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Siphon/SiphoningMaterials')) ] materialNames = [] for materialID in attributes.materials: materialNames.append((types.GetName(materialID), materialID)) for material in sorted(materialNames): attributeEntries.append( EntryData('LabelTextSides', material[0], '', types.GetIconID(material[1]), material[1])) return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/InfoAttributesHeader' )), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/AccessRangeLabel' ), FmtDist(attributes.accessRange), iconID=RANGE_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/DurationLabel'), localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/DurationValue', duration=long(attributes.unlockDelay * SEC)), iconID=TIMER_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/TakePercentageLabel' ), localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/TakePercentageValue', takePercentage=long(attributes.takePercentage)), iconID=CYCLE_TIME_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/LoyaltyPointsLabel' ), localization.GetByLabel( 'UI/Inflight/SpaceComponents/BountyEscrow/LoyaltyPointsValue', lpBase=float(attributes.lpBase * 100.0)), iconID=CYCLE_TIME_ICON) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): maxMassData = GetFormattedAttributeAndValue(attributeMass, attributes.maxShipMass) maxMassData.displayName = localization.GetByLabel( 'UI/Inflight/SpaceComponents/MicroJumpDriver/MaxShipMass') durationData = GetFormattedAttributeAndValue( attributeDuration, attributes.spoolUpDurationMillisec) attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/MicroJumpDriver/InfoAttributesHeader' )), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/MicroJumpDriver/InteractionRange' ), FmtDist(attributes.interactionRange), iconID=RANGE_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/MicroJumpDriver/JumpDistance' ), FmtDist(microJumpDriveDistance), iconID=RANGE_ICON), DogmaEntryData('LabelTextSides', durationData), DogmaEntryData( 'LabelTextSides', GetDogmaAttributeAndValue( godmaService, typeID, attributeSignatureRadiusBonusPercent)), DogmaEntryData('LabelTextSides', maxMassData) ] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [EntryData('Header', localization.GetByLabel('UI/Inflight/SpaceComponents/AutoLooter/InfoAttributesHeader')), EntryData('LabelTextSides', localization.GetByLabel('UI/Inflight/SpaceComponents/AutoLooter/RangeLabel'), FmtDist(getattr(attributes, 'range', maxCargoContainerTransferDistance)), iconID=RANGE_ICON), EntryData('LabelTextSides', localization.GetByLabel('UI/Inflight/SpaceComponents/AutoLooter/CycleTimeSecondsLabel'), FmtTimeInterval(long(attributes.cycleTimeSeconds * SEC), breakAt='sec'), iconID=CYCLE_TIME_ICON)] return attributeEntries
def GetAttributeInfo(godmaService, typeID, attributes, instance, localization): attributeEntries = [ EntryData( 'Header', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/InfoAttributesHeader') ), EntryData('LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/DeployAtRange'), FmtDist(attributes.deployAtRange), iconID=RANGE_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/MinDistanceFromOwnGroup', groupName=evetypes.GetGroupName(typeID)), FmtDist(attributes.minDistanceFromOwnGroup), iconID=RANGE_ICON), EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/MinDistanceFromControlTower', groupName=evetypes.GetGroupNameByGroup(groupControlTower)), FmtDist(attributes.minDistanceFromControlTower), iconID=RANGE_ICON) ] if hasattr(attributes, 'maxDistanceFromControlTower'): attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/MaxDistanceFromControlTower', groupName=evetypes.GetGroupNameByGroup( groupControlTower)), FmtDist(attributes.maxDistanceFromControlTower), iconID=RANGE_ICON)) if hasattr(attributes, 'minDistanceFromStargatesAndStations'): attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/MinDistanceFromStargatesAndStations', stargateGroupName=evetypes.GetGroupNameByGroup( groupStargate), stationGroupName=evetypes.GetGroupNameByGroup( groupStation)), FmtDist(attributes.minDistanceFromStargatesAndStations), iconID=RANGE_ICON)) if hasattr(attributes, 'minDistanceFromWormhole'): attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/MinDistanceFromWormhole', wormholeGroupName=evetypes.GetGroupNameByGroup( groupWormhole)), FmtDist(attributes.minDistanceFromStargatesAndStations), iconID=RANGE_ICON)) if getattr(attributes, 'disallowInWormholeSpace', True): attributeEntries.append( EntryData( 'LabelTextSides', localization.GetByLabel( 'UI/Inflight/SpaceComponents/Deploy/DisallowedFromWormholeSpace' ), '', iconID=BANNED_ICON)) return attributeEntries