Tint everything

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Tint everything

Post 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}}
			}
Last edited by darkfrei on Tue Aug 15, 2017 8:35 pm, edited 3 times in total.

d3x0r
Filter Inserter
Filter Inserter
Posts: 316
Joined: Sun Jun 04, 2017 8:56 am
Contact:

Re: Tint everything

Post 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Tint everything

Post 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.

Post Reply

Return to “Modding discussion”