support "number" and "show_percent_for_small_numbers" on sprite as well

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
hgschmie
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Tue Feb 06, 2024 5:18 am
Contact:

support "number" and "show_percent_for_small_numbers" on sprite as well

Post by hgschmie »

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.
curiosity
Filter Inserter
Filter Inserter
Posts: 587
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by curiosity »

Why not just make the button uninteractable?
User avatar
Sharparam
Inserter
Inserter
Posts: 27
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by Sharparam »

It would still look like a button which might not be desirable?
curiosity
Filter Inserter
Filter Inserter
Posts: 587
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by curiosity »

That's what the styles are for.
User avatar
Sharparam
Inserter
Inserter
Posts: 27
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by Sharparam »

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.)
curiosity
Filter Inserter
Filter Inserter
Posts: 587
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by curiosity »

If everyone was concerned with semantics and doing things only the intended way, the mod portal would be a whole lot emptier.
User avatar
Sharparam
Inserter
Inserter
Posts: 27
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by Sharparam »

Of course, but a feature request to be able to have a better solution *in the future* would still be relevant.
curiosity
Filter Inserter
Filter Inserter
Posts: 587
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: support "number" and "show_percent_for_small_numbers" on sprite as well

Post by curiosity »

The devs are notorious for not touching GUI. I won't count on it.
Post Reply

Return to “Modding interface requests”