Proposed behavior:
If a LuaGuiElement's tooltip consists only of a rich tag string, i.e. "[entity=assembling-machine-1]", "[item=iron-plate]", display the tooltip as used when hovering over such a tag string in chat.
Current behavior:
Setting these special strings shows only the icon of the entity, item, or recipe, as if the tooltip were "[img = item/iron-plate]", etc.
Motivation:
Item and recipe browsing mods such as FNEI would strongly benefit from having a consistent tooltip experience with vanilla GUI elements.
Expose rendering of specialized tooltips
Expose rendering of specialized tooltips
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Re: Expose rendering of specialized tooltips
Yes I always wanted this too, but for now you can fake it by building the tooltips yourself I guess (Example). But that is not as nice and not consistent with the base game tooltip, so there should be a way to get the normal tooltip.
Re: Expose rendering of specialized tooltips
+1 I've been looking for a way to do this for my mod (https://mods.factorio.com/mod/qsMenu) it just doesn't feel right without that little tooltip on rollover
Re: Expose rendering of specialized tooltips
You just want to use the elem-button type and it will have the correct tooltip automatically.
If you want to get ahold of me I'm almost always on Discord.
Re: Expose rendering of specialized tooltips
Oh yeah I guess that is a solution.Rseding91 wrote: Fri Mar 15, 2019 6:49 pm You just want to use the elem-button type and it will have the correct tooltip automatically.