Page 1 of 1

Tint everything

Posted: Fri Aug 04, 2017 10:29 pm
by darkfrei
Hi all!

The Vanilla have not so much tinted items, entities and icons of it.

In this mod (link) I've tried to use a lot of tinting (two).

For example, I've take only one inserter [and deep copy of blue inserter in data.lua], set it in grayscale and recolor with tint:

Code: Select all

local inserter = deepcopy(data.raw.inserter["fast-inserter"])
inserter.name = "linear-inserter-in"
inserter.pickup_position = {0, -1.8}
inserter.insert_position = {0, -1.2}

inserter.hand_base_picture.filename = "__LinearInserters__/graphics/entity/inserter-hand-base.png"
inserter.hand_base_picture.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.hand_base_picture.hr_version.filename = "__LinearInserters__/graphics/entity/hr-inserter-hand-base.png"
inserter.hand_base_picture.hr_version.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.hand_closed_picture.filename = "__LinearInserters__/graphics/entity/inserter-hand-closed.png"
inserter.hand_closed_picture.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.hand_closed_picture.hr_version.filename = "__LinearInserters__/graphics/entity/hr-inserter-hand-closed.png"
inserter.hand_closed_picture.hr_version.tint = {r = 0.8, g = 0.8, b = 1, a = 1}

inserter.hand_open_picture.filename = "__LinearInserters__/graphics/entity/inserter-hand-open.png"
inserter.hand_open_picture.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.hand_open_picture.hr_version.filename = "__LinearInserters__/graphics/entity/hr-inserter-hand-open.png"
inserter.hand_open_picture.hr_version.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.platform_picture.sheet.filename = "__LinearInserters__/graphics/entity/inserter-platform.png"
inserter.platform_picture.sheet.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
inserter.platform_picture.sheet.hr_version.filename = "__LinearInserters__/graphics/entity/hr-inserter-platform.png"
inserter.platform_picture.sheet.hr_version.tint = {r = 0.8, g = 0.8, b = 1, a = 1}
Then in can be copied with deepcopy lua again and just recolor with new color for new one inserter.

Also you can recolor icons of items (and add one to another) just with

Code: Select all

icons = {
				{icon = "__LinearInserters__/graphics/icons/inserter.png", tint = {r = 0.8, g = 0.8, b = 1, a = 1}},
				{icon = "__LinearInserters__/graphics/icons/arrow-l.png", tint = {r = 1, g = 0.8, b = 1, a = 1}}
			},
Example: I was

Code: Select all

data.raw["rail-planner"].rail.icon = "__base__/graphics/icons/rail.png"
and new code is

Code: Select all

data.raw["rail-planner"].rail.icons = {
				{icon = "__NewRailsMod__/graphics/icons/rails-layer-1.png", tint = {r = 0.8, g = 0.8, b = 1, a = 1}},
				{icon = "__NewRailsMod__/graphics/icons/rails-layer-2.png", tint = {r = 1, g = 0.8, b = 1, a = 1}}
			}

Re: Tint everything

Posted: Sat Aug 05, 2017 12:11 am
by d3x0r
Any ideas for like 'nuclear glow everything'?

Kinda wanted to add that to nuclear powered trains at least... but didn't try very hard and failed.

Re: Tint everything

Posted: Sat Aug 05, 2017 11:49 am
by darkfrei
d3x0r wrote:Any ideas for like 'nuclear glow everything'?

Kinda wanted to add that to nuclear powered trains at least... but didn't try very hard and failed.
It's not possible in 0.15.32.