support "number" and "show_percent_for_small_numbers" on sprite as well
support "number" and "show_percent_for_small_numbers" on sprite as well
The "number" and "show_percent_for_small_numbers" attributes could not also be supported on the regular (non-button) "sprite" variant. Currently, when using sprite-button for read-only elements that show signals and number, clicking on the fields creates a sound and highlights the sprite.
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
Why not just make the button uninteractable?
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
It would still look like a button which might not be desirable?
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
That's what the styles are for.
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
I guess you can fake it with styles, but still. Semantically still being a button when you just want a sprite feels very wrong.
(But then there's no doing UI in Factorio without having to apply a bunch of hacks already so that point might be moot.)
(But then there's no doing UI in Factorio without having to apply a bunch of hacks already so that point might be moot.)
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
If everyone was concerned with semantics and doing things only the intended way, the mod portal would be a whole lot emptier.
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
Of course, but a feature request to be able to have a better solution *in the future* would still be relevant.
Re: support "number" and "show_percent_for_small_numbers" on sprite as well
The devs are notorious for not touching GUI. I won't count on it.