Page 1 of 1

Make "sprite-button-with-numbers" available to mod guis.

Posted: Thu Mar 16, 2017 8:19 am
by eradicator
In an attempt to make a gui that looks vanilla-like i noticed that the type of sprite-button that also shows numbers is not available to mods. It's the button type that's used for the inventory/production/power statistics that shows a sprite and some numbers/strings. Would be awesome if that was made available, either with built-in number conversion (i.e. "100000" becomes "100k") or preferbly with the ability to set arbitrary strings.

Re: Make "sprite-button-with-numbers" available to mod guis.

Posted: Tue Nov 07, 2017 1:54 pm
by eradicator
Any news on this?

I've since managed to somewhat mimic the slot-buttons, but i can't get the numeric label to correctly align with the bottom right corner. As soon as the player changes UI scale in the game options it disaligns because i'm using absolute width/height numbers to push the number to the bottom corner:
modded_slot_button.png
modded_slot_button.png (7.19 KiB) Viewed 1329 times
So any answers/help would be greatly appreciated. Especially if i'm just missing something/doing it wrong.