Page 1 of 1

[2.0.76] elem_tooltip with type "signal" only shows if signal_type is "virtual"

Posted: Mon Apr 06, 2026 2:16 am
by Shemp
Very minor issue, it may even be intended behaviour, but I didn't find an existing thread so here it is.

To reproduce, open a Factorio world and run these commands:

Code: Select all

/c x = game.player.gui.center.add{type="frame"}
/c x.style.width = 200
/c x.style.height = 200
/c x.elem_tooltip = {type = "signal", name = "uranium-processing", signal_type = "recipe"}
This creates a LuaGuiElement, enlarges it, and assigns an elem_tooltip with type "signal". I expect this to show a tooltip, but it does not.

According to the ElemID documentation, the signal_type field is required.

SignalIDType can be one of eight possible strings, but only "virtual" signal_type with an accompanying virtual signal as "name" will show a tooltip, like so:

Code: Select all

/c x.elem_tooltip = {type = "signal", name = "up-arrow", signal_type = "virtual"}
The same thing happens when you pass the elem_tooltip field to LuaGuiElement::add directly.

Re: [2.0.76] elem_tooltip with type "signal" only shows if signal_type is "virtual"

Posted: Mon Apr 06, 2026 1:17 pm
by Rseding91
Thanks for the report. This is now fixed for 2.1.