[2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
[2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
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.
Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
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).
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).
Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
This bug is still present, sorry for not responding earlier. I was referring to LuaGuiElement.enabled.
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.Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
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.
Re: Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
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
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
Re: [2.0.49] Setting enabled to false on a textbox widget with an icon selector doesn't disable the selector
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.