CustomTooltipField sections

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 420
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

CustomTooltipField sections

Post by protocol_1903 »

I would like to use the fancy built-in sections when developing custom tooltips for compound entities. I know that I can attach the color and icons, the thing I'm specifically requesting is the ability to have sections with a header and dividers so that they are visually distinct from the rest of the entity tooltip. Perhaps this could be implemented as CustomTooltipSection, and each custom tooltip can specify which section it should be a part of if any.

The specific use case for this is compound entities where the actual power consumption section is hidden, but I still want the player to know what kind of power is being consumed and how much. I know I can't show the current power consumption because I can't write tooltips at runtime, but it would be nice to show an expected usage.
what i would like to do
what i would like to do
12-21-2025, 09-35-56.png (158.98 KiB) Viewed 114 times
what i can currently do
what i can currently do
12-21-2025, 09-39-32.png (107.45 KiB) Viewed 114 times
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 212
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: CustomTooltipField sections

Post by Osmo »

+1
Post Reply

Return to “Modding interface requests”