[2.0.23] choose-elem-button doesn't show comparator or "any quality"
Posted: Thu Dec 12, 2024 4:07 pm
When setting the elem_value on a choose-elem-button to something that has the comparator field set, it won't show the comparator symbol (e.g. ">") on the button.
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:
and to the right button's elem_value:
The scenario can be reproduced by:
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