I tried this:
Code: Select all
data.raw["gui-style"].default["auto_research_sprite"] = {
type = "image_style",
width = 24,
height = 24,
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0
}
Code: Select all
data.raw["gui-style"].default["auto_research_sprite"] = {
type = "image_style",
width = 24,
height = 24,
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0
}
Quick response as I'm off for the night:aubergine18 wrote:There is a special 'sprite' GUI element and also a special 'sprite' prototype. I've not fully investigated yet, but here's some notes I jotted down:
* https://github.com/aubergine10/Style/issues/33
* https://github.com/aubergine10/Style/issues/34
The Foreman mod uses these sprites, I've no idea if they are scalable or not.
EDIT: I don't think I've seen an `image_style` used before - does that actually work? If so, how did you get it displayed in your GUI (regardless of scaling issues)?