[2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

This subforum contains all the issues which we already resolved.
jagoly
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Dec 23, 2024 11:48 am
Contact:

[2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by jagoly »

As title. The selector visually appears to be disabled, however it may still be clicked, and choosing an icon will modify the text. I believe the button should simply be non-functional if the widget is disabled. The popup should also be force closed if it was already opened when the widget became disabled.
Last edited by jagoly on Thu May 15, 2025 3:49 pm, edited 1 time in total.
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by Muche »

Could you please post a picture of what you are referring to?
The closest fit seems to be Display panel, but I don't think there is a way to disable it.

If the panel is not connected to a circuit network, one can choose an icon and enter a text, no checkboxes to enable/disable anything.
If the panel is connected to a circuit network, the listed condition does not enable/disable the panel, it determines whether the icon/text will be shown by the display panel. If the first condition is not true, further conditions are checked until one it true, or none of them are (in which case the panel shows nothing).
jagoly
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Dec 23, 2024 11:48 am
Contact:

Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by jagoly »

This bug is still present, sorry for not responding earlier. I was referring to LuaGuiElement.enabled.
05-15-2025, 23-41-29.png
05-15-2025, 23-41-29.png (3.13 KiB) Viewed 196 times
The widget is disabled, and you cannot focus it for typing, but the rich text button can still be clicked and will modify the text. It should be disabled along with the rest of the widget.
Loewchen
Global Moderator
Global Moderator
Posts: 10071
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by Loewchen »

Post a save and mod that lets you reproduce this and add the latest version you can reproduce it to the title please, see 3638.
jagoly
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Dec 23, 2024 11:48 am
Contact:

Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by jagoly »

The issue is very easy to reproduce, just click on the rich text button in the bottom right after opening the save.

Note that the issue is being worked around in my mod here: https://github.com/jagoly/SourceSinkPus ... er.lua#L65

EDIT: reuploaded save with latest released version of my mod, my non-dev version was out of date
Attachments
rich text button bug.zip
(2.17 MiB) Downloaded 10 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15582
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector

Post by Rseding91 »

Thanks for the report and the save file showing the issue. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”