Page 1 of 1

Pipe sprite definition as Filenames

Posted: Fri Jan 26, 2018 1:59 pm
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

Re: Pipe sprite definition as Filenames

Posted: Thu Feb 08, 2018 4:47 am
by Rseding91
That already works. You just define the sprite(s) using the layers syntax.