as the topic states, I would like to know what are the path strings to graphics which I can access in control.lua.
For example one I have found is:
Code: Select all
myGuiElement.sprite = "item/"..itemProto.name
All information and help is appreciated, thanks in advance!
EDIT:
I made the problem more complicated than needed. Turns out I could throw label as a child of sprite-button and then disable it, so it wont interrupt mouse actions. Also I confirmed the sprite path syntax:
- Sprite identifier can either point to custom definition from the data, or have form "<type>/<id>", type can be (item, entity, recipe and technology), for example button.sprite = "item/iron-plate"