Similar issue when using a value that has neither comparator nor quality set (which means a filter for "any quality"), this doesn't show anything at all on the button, making it look like a normal quality value.
Example of what the base game UI shows in a constant combinator section when having signals that have a comparator or "any quality" set:
But when trying to do the same with choose-elem-button, it's bugged:
The object assigned to the left button's elem_value is:
Code: Select all
{
comparator = ">",
name = "iron-chest",
quality = "uncommon",
type = "item"
}
Code: Select all
{
name = "wooden-chest",
type = "item"
}
- Open the player inventory.
- Add a trash filter for "iron chest with higher than uncommon quality"
- Add a trash filter for "wooden chest of any quality"
- Give the section a group so it can be added to a constant combinator
- Construct a constant combinator
- Set the section in it to use the group defined earlier
- Observe how the buttons display properly
- Try to set the same filters on custom choose-elem-buttons (or just set the above described elem_value objects directly)
- Observe how the buttons do not show the information, misleading the player into thinking they have values they do not