[0.14.7] gui button not showing up

Bugs that are actually features.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

[0.14.7] gui button not showing up

Post by Adil »

For some reason variants of the following command don't cause the button to appear on screen for me

Code: Select all

/c game.player.gui.center.add{type='button',name='asd',label='sda'}
The button seems to be created as repeating the command returns the error.
log
Attachments
button_bug.zip
This is the save in which I've invoked the command a couple of times
(83.61 KiB) Downloaded 73 times
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15912
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.7] gui button not showing up

Post by Rseding91 »

"label" is not the correct property. It's "caption".
If you want to get ahold of me I'm almost always on Discord.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [0.14.7] gui button not showing up

Post by Adil »

Whoops.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Not a bug”