[0.16.18] Caption for sprite button
Posted: Fri Feb 16, 2018 8:24 pm
I want to create a sprite button with the text on it, but after attaching the value of the sprite, the text was under the sprite. It seems to me that the text should be on top of the sprite.
Code: Select all
gui.add({
type = "sprite-button",
name = "my_sprite_button",
style = "slot_button",
sprite = "hand_icon",
caption = "123"
})
--hand_sprite
{
type = "sprite",
name = "hand_icon",
filename = "__core__/graphics/hand.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
scale = 1,
}