Page 1 of 1

Items color mask

Posted: Tue Feb 07, 2017 11:50 am
by darkfrei
Now is very easy to change the color and style of entities. You can set new entities by data-script, change color, change some sprites in graphics or don't load someone.

But not items graphics! If you make the same, but another color, you must copy and recolor it. There is impossible to add one digit at new layer for next mark, it's a pity.

Re: Items color mask

Posted: Tue Feb 07, 2017 12:20 pm
by Klonan
You can already tint icons

Re: Items color mask

Posted: Tue Feb 07, 2017 12:49 pm
by posila
Yeah, as Klonan said. That is already possible in 0.14

instead of this

Code: Select all

icon = "__base__/graphics/icons/underground-belt.png",
You can do this (notice "icons" instead of "icon")

Code: Select all

icons = 
{
  {
    icon = "__base__/graphics/icons/underground-belt.png",
  },
  {
    icon = "__base__/graphics/icons/splitter.png",
    tint = {r= 1, g = 0, b = 1, a = 1},
  }
},
In 0.15 it will be also possible to use "scale" and "shift"

Re: Items color mask

Posted: Tue Feb 07, 2017 3:40 pm
by darkfrei
posila wrote:Yeah, as Klonan said. That is already possible in 0.14
...
In 0.15 it will be also possible to use "scale" and "shift"
And add some text? Like in by some technologies? Just a digit from 1 to 99.

Re: Items color mask

Posted: Tue Feb 07, 2017 3:51 pm
by Nexela
darkfrei wrote:
posila wrote:Yeah, as Klonan said. That is already possible in 0.14
...
In 0.15 it will be also possible to use "scale" and "shift"
And add some text? Like in by some technologies? Just a digit from 1 to 99.

To get the numbers to show up on tech it needs to be named like this. As far as I know this also only works for technologies.

name = tech-1

...

name = tech-3


To only have one show up at a time each definition also needs
upgrade = true

And finally your locale entry would be

[technology-name]
tech = "Name for them all"