[0.17.33] [modded gui] Sprite-buttons don't show numbers
Posted: Thu Apr 25, 2019 6:00 pm
Sprite-buttons no longer show numbers under any circumstances if the number is set within the parent.add{...} command. Can be easily verified with the code below:
Edit: My initial report is not quite correct. Adding numbers after creation still works:
Code: Select all
/c game.player.gui.center.add{type="sprite-button", sprite = "item/iron-ore", number = 10}
Code: Select all
/c game.player.gui.center.add{type="sprite-button", sprite = "item/iron-ore", name = "iambuggy", number = 10} -- no number
/c game.player.gui.center.iambuggy.number = 10 -- now the button shows a number