[0.16.2] GUI sprite-button not showing any sprites
Posted: Thu Dec 14, 2017 2:07 pm
Hello,
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:
this code resulted in a functional button, but without a sprite (or just an empty one):
Am I just doiing it wrong?
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
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