Pipe sprite definition as Filenames

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

Pipe sprite definition as Filenames

Post by LuziferSenpai »

Hey,

I wanted to ask if its possible to add the ability to entitys like pipes that we can add a Overlay like a Letter or something.

Like in Icons:

Code: Select all

pipe.icons = { { icon = q.icon, tint = { r = 1, g = 1, b = 1, a = 1 } }, { icon = MODNAME .. "/graphics/void.png", tint = { r = 1, g = 1, b = 1, a = 0.85 } } }
but for filename like this:

Code: Select all

pipe.straight_vertical_single.filenames = { { filename = q.pipe.straight_vertical_single.filename, tint = { r = 1, g = 1, b = 1, a = 1 } }, { filename = MODNAME .. "/graphics/void.png", tint = { r = 1, g = 1, b = 1, a = 0.85 } } }
Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Rseding91
Factorio Staff
Factorio Staff
Posts: 13173
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Pipe sprite definition as Filenames

Post by Rseding91 »

That already works. You just define the sprite(s) using the layers syntax.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Already exists”