While updating my GUIs I came across this issue and no one in the discord server could find a solution, I even went as far as just implementing the example..
In the code below I add a sprite button to a frame to the top gui. As sprite path I just took the example as stated in the api of SpritePath:
Code: Select all
local buttonDeaths = buttons.add{
type = "sprite-button",
name = "BZ_gui_buttonDeaths",
sprite = "item/iron-plate"
}
EDIT: as 54758 states, it needs the style parameter, which is in conflict with the api of the LuaGuiElement saying it's optional. RSeding thinks its just broken, that it's not falling back to a default, so I left the bugreport in place...
Kind regards,
lovely_santa