Changing the default transparency of train colour selection

Place to get help with not working mods / modding interface.
Gords
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Sep 29, 2016 4:56 pm
Contact:

Changing the default transparency of train colour selection

Post by Gords »

Hi there,
I was wondering if anyone could help me with finding what controls the transparency of the locomotive masks for the train menu colour tab and if it is possible to change this setting on a per entity basis.

I know how to change the default colour of a train to include a set transparency but i would like to keep that transparency setting when using the colour tab to change the colour of trains in game.

An example of my problem can be demonstrated with FARL. The FARL mod uses a train colour of {r = 1, g = 0.80, b = 0, a = 0.8} which corresponds to r=255, g=204, b=0 in the colour selection tab and a mask transparency of 0.8,
however as soon as you change the colour of FARL the transparency returns to the default of 0.5 and the only way to return to 0.8 is either my picking it up and replacing it or shift copying the setting from any other locomotive in which you have not made any adjustments to its colour.

I would like it if i could change the colour of the train without affecting the mask's transparency.
I cant even find what is controlling the train colour selection in the Factorio Base files either.

Any help is appreciated.
Post Reply

Return to “Modding help”