Page 1 of 1

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

Posted: Wed May 14, 2025 7:09 pm
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

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

Posted: Wed May 14, 2025 7:18 pm
by Rseding91
You've linked to the "latest" docs and are running 2.0.47. The quality option was added in 2.0.48.

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

Posted: Wed May 14, 2025 8:23 pm
by Zomis
Oh damn, sorry. I didn't consider the possibility that it was added so recently.