
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,
}

