[0.16.18] Caption for sprite button

This subforum contains all the issues which we already resolved.
Post Reply
_npo6ka_
Fast Inserter
Fast Inserter
Posts: 102
Joined: Mon Sep 26, 2016 10:29 pm
Contact:

[0.16.18] Caption for sprite button

Post by _npo6ka_ » 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.

Image

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

kovarex
Factorio Staff
Factorio Staff
Posts: 7287
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.16.18] Caption for sprite button

Post by kovarex » Fri Mar 02, 2018 5:48 pm

Thanks for the notice, fixed for the next version.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users