Logo Platform
logo amplifiers simplified

Incorrect tooltip effect

Reply
Copied to clipboard!
4 years ago
Sep 9, 2020, 10:17:29 PM

Hello all,


I built StarSystemImprovments that reduce inflation with the following SimulatorDescriptor


<SimulationDescriptor Name="InflationReductor_1_effect" Type="StarSystemImprovement">
<Modifier TargetProperty="DustInflation" Operation="Percent" Value="-0.20" Path="../ClassEmpire" />

</SimulationDescriptor>


As property "DustInflation" already has an ExtendedGuiTooltip in base game files,

<ExtendedGuiElement Name="DustInflation">
<Title>%DustInflationTitle</Title>
<Description>%DustInflationDescription</Description>
<Icons>
<Icon Size="Small" Path="Bitmaps/Atlased/GameVariables/FIDSIDust"/>
</Icons>
<SymbolString>[dust]</SymbolString>
<Color Red="230" Green="195" Blue="97" Alpha="255" />
</ExtendedGuiElement>

i would expect tooltip effect to be like this

-20% for Dust Inflation on Empire


Instead i get


which can be tricky as it suggest -20% of current dust reserve rather than an inflation reduction.

I can, of course, override tooltip by adding TooltipOverride attribute to SimulatorDescriptor but i'd like to understand why i don't get expected effect tooltip


If you have an idea, it would be greatly appreciated


Thanks

Updated 4 years ago.
0Send private message
4 years ago
Sep 10, 2020, 4:39:46 PM

<SimulationDescriptor Name="InflationReductor_1_effect" Type="StarSystemImprovement">
<Modifier TargetProperty="DustInflation" Operation="Percent" Value="-0.20" Path="../ClassEmpire"  TooltipOverride="%LocalizationPairName"/>

</SimulationDescriptor>


Make a localization pair that has the exact tooltip you want, then put the name of the localization pair into the TooltipOverride

0Send private message
?

Click here to login

Reply
Comment