[0.14] Icon_size reducing in prototypes

Things that already exist in the current mod API
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 339
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[0.14] Icon_size reducing in prototypes

Post 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
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [0.14] Icon_size reducing in prototypes

Post by ssilk »

Sorry, I don't understand. It was a long day. :)
Can you explain that a bit more? Why do you want that?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 339
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: [0.14] Icon_size reducing in prototypes

Post 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.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [0.14] Icon_size reducing in prototypes

Post 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?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Already exists”