Page 1 of 1

[0.14] Icon_size reducing in prototypes

Posted: Wed Sep 14, 2016 7:57 pm
by LuziferSenpai
Hey,

it will be cool if you can say that the icon size is reduced by 75 or 50%, so like this:

Code: Select all

icons = { { icon = pipe.icon, tint = { r = 1, g = 1, b = 1, a = 1 } }, { icon = MODNAME.."/graphics/"..sides..".png", tint = { r = 1, g = 1, b = 1, a = 0.85 }, icon_size = -25 } },
This will be add the Icon in the Front a bit smaller so that it looks much better.

Nice use will be adding easy new Virtual Signals by making the background a color virtual signal and in front of that a entity or item icon with a 25% reduced size.

Greetz,

Senpai

Re: [0.14] Icon_size reducing in prototypes

Posted: Wed Sep 14, 2016 8:26 pm
by ssilk
Sorry, I don't understand. It was a long day. :)
Can you explain that a bit more? Why do you want that?

Re: [0.14] Icon_size reducing in prototypes

Posted: Wed Sep 14, 2016 8:44 pm
by LuziferSenpai
ssilk wrote:Sorry, I don't understand. It was a long day. :)
Can you explain that a bit more? Why do you want that?
Because it will be a nice small feature of mods like my Straight Pipes or the Rail Tanker MOD. You can make the size of an icon smaller so it perfectly fits on that in the background. Like in the Virtual Signals.

Re: [0.14] Icon_size reducing in prototypes

Posted: Wed Sep 14, 2016 9:06 pm
by aubergine18
There is a `scale` property for raw, monolith and I think even composite image prototype tables.

1 = normal size
0.5 = half size, etc

I've not tested it personally, but imagine it will do what you're looking for. Also, don't icons shrink to the bounding box size?