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

Bugs which we just recently fixed in our development version and will reach you in the next release.
HermanyAI
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Dec 16, 2016 11:35 pm
Contact:

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

Post 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 389 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
Attachments
gui-testbed_0.0.2.zip
(874 Bytes) Downloaded 19 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15693
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved for the next release”