Page 1 of 1

[2.0.54] hidden elem_filter in choose-elem-button doesn't actually show hidden entries

Posted: Sat May 31, 2025 6:56 pm
by HermanyAI
LuaGuiElement#elem_filters in examples mentions the hidden filter:

Code: Select all

-- Then, there are some types of filters that work on a specific kind of attribute. The following will configure a
--   choose-elem-button of type "entity" to only show entities that have their "hidden" flags set.
button.elem_filters = {{filter = "hidden"}}
To me it implies that any hidden entry would explicitly be shown. When actually used, they don't:
factorio_odPon0PGJF.gif
factorio_odPon0PGJF.gif (3.72 MiB) Viewed 460 times
Attached mod displays this GUI.

Sending as bug report because I assume it's unexpected behavior. If this happens to be a documentation issue, I'll make an appropriate interface request for something similar, because I'd like to show the player all the different item recycling recipes

Re: [2.0.54] hidden elem_filter in choose-elem-button doesn't actually show hidden entries

Posted: Tue Jun 03, 2025 3:21 pm
by Rseding91
Thanks for the report. I'm looking into this and I'm unsure how mods are wanting this to work. The base game applies several types of filters to select-buttons like this to auto hide stuff like hidden things, parameters, and other "probably don't want this to show" values.

Should these choose buttons in the modded case simply show *everything* always unless a mod filters them out? Right now they inherit the base games desire for how/what things show.