[0.17.33] [modded gui] Sprite-buttons don't show numbers

This subforum contains all the issues which we already resolved.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

[0.17.33] [modded gui] Sprite-buttons don't show numbers

Post by eduran »

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:

Code: Select all

/c game.player.gui.center.add{type="sprite-button", sprite = "item/iron-ore", number = 10}
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", name = "iambuggy", number = 10} -- no number
/c game.player.gui.center.iambuggy.number = 10 -- now the button shows a number
Rseding91
Factorio Staff
Factorio Staff
Posts: 16086
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.33] [modded gui] Sprite-buttons don't show numbers

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: [0.17.33] [modded gui] Sprite-buttons don't show numbers

Post by eduran »

Thanks for the quick fix. Any chance this fix could be responsible for 70012? As far as I can tell from the changelog, this is the only change that touches LTN Tracker.
Post Reply

Return to “Resolved Problems and Bugs”