Page 1 of 1
					
				support "number" and "show_percent_for_small_numbers" on sprite as well
				Posted: Fri Dec 06, 2024 3:01 am
				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.
			 
			
					
				Re: support "number" and "show_percent_for_small_numbers" on sprite as well
				Posted: Fri Dec 06, 2024 12:27 pm
				by curiosity
				Why not just make the button uninteractable?
			 
			
					
				Re: support "number" and "show_percent_for_small_numbers" on sprite as well
				Posted: Fri Dec 06, 2024 5:44 pm
				by Sharparam
				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
				Posted: Fri Dec 06, 2024 5:48 pm
				by curiosity
				That's what the styles are for.
			 
			
					
				Re: support "number" and "show_percent_for_small_numbers" on sprite as well
				Posted: Fri Dec 06, 2024 5:55 pm
				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.)
			 
			
					
				Re: support "number" and "show_percent_for_small_numbers" on sprite as well
				Posted: Fri Dec 06, 2024 8:13 pm
				by curiosity
				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
				Posted: Fri Dec 06, 2024 8:22 pm
				by Sharparam
				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
				Posted: Sat Dec 07, 2024 3:05 am
				by curiosity
				The devs are notorious for not touching GUI. I won't count on it.