Hide the electricity tooltip when buffer size is zero

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

half a cat
Inserter
Inserter
Posts: 41
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

Hide the electricity tooltip when buffer size is zero

Post by half a cat »

Some modded items do not use electricity, but still have an energy buffer because the game engine requires it. To make the UI look nicer, please hide the tooltip for ElectricEnergySource when buffer_capacity and drain are 0.
What?
In this example, I would like the game to hide the part of the tooltip that shows Energy, Max input, Max output. This equipment, although it is defined with BatteryEquipmentPrototype, isn't intended to function as a battery.
Battery-tooltip.png
Battery-tooltip.png (57.13 KiB) Viewed 147 times
Why?
For mods to provide special equipment types. The game's equipment prototypes all implement specific gameplay functions (solar power, inventory bonus, etc.). Mods have to use one of these prototypes for special equipment. When the original gameplay function is not relevant to the mod, the tooltip information is distracting. This particular ElectricEnergySource setting is useless, so it would be natural to hide it, and it would also be helpful to mods.
Post Reply

Return to “Ideas and Suggestions”