[2.0.47] LuaGuiElement sprite-button does not use quality as documented

Bugs that are actually features.
Zomis
Inserter
Inserter
Posts: 40
Joined: Fri Apr 21, 2017 7:01 pm
Contact:

[2.0.47] LuaGuiElement sprite-button does not use quality as documented

Post by Zomis »

The docs state that the 'sprite-button' GuiElement can take 'quality' parameter.

However, this does not work at all.

Try the command:

Code: Select all

/c game.player.gui.screen.add({ type = "sprite-button", sprite = "item/iron-ore", quality = "legendary" })
Expected result: A legendary sprite-button
Actual result: A normal sprite-button
Rseding91
Factorio Staff
Factorio Staff
Posts: 15704
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.47] LuaGuiElement sprite-button does not use quality as documented

Post by Rseding91 »

You've linked to the "latest" docs and are running 2.0.47. The quality option was added in 2.0.48.
If you want to get ahold of me I'm almost always on Discord.
Zomis
Inserter
Inserter
Posts: 40
Joined: Fri Apr 21, 2017 7:01 pm
Contact:

Re: [2.0.47] LuaGuiElement sprite-button does not use quality as documented

Post by Zomis »

Oh damn, sorry. I didn't consider the possibility that it was added so recently.
Post Reply

Return to “Not a bug”