ABOUT
Adds gradient hair to the game. Mod hairs are supported. On pictures are hairs from [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1498706339]SS Lovely Hair Style[/url] mod.
All new pawns (as well as existing when you enable mod for the first time) have a chance to get gradient hair, which is by default 25% for women and 2% for men. Those numbers can be edited in mod settings.
This mod is safe to add and remove from save games.
MOD SUPPORT
The following mods add an option to change gradient hair color:
[list]
[*] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1689278325]Hair Dye[/url] (my mod)
[*] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=735106432]EdB Prepare Carefully[/url]
[*] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1385697110]Change Dresser[/url] (thenks, Kiame Vivacity!)
[/list]
KNOWN INCOMPATIBILITIES
[list]
[*] [b]Facial stuff[/b] - you won't get any gradients, but hair color will change.
[/list]
MOD API
If you wish to set pawn's gradient hair color from another mod, you can use its public API.
For reference, see how Hair Dye implements it:
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FAUTOMATIC1111%2FHairDye%2Fblob%2Fmaster%2FSource%2FGradientHairApi.cs]https://github.com/AUTOMATIC1111/HairDye/blob/master/Source/GradientHairApi.cs[/url]
I recommend that you use the API the way it's used in Hair Dye, via reflection. Copying GradientHairApi.cs into your project is an easy way to do that.
The alternative is to link to GradientHair.dll at runtime, and this makes the game misbehave when I update my mod - you'd have to recompile yours every time I update mine.
(note that after setting hair color you'd still have to remake pawn's graphics yourself, see those two lines: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FAUTOMATIC1111%2FHairDye%2Fblob%2Fbaaf8e59fc5d57744171892468a8f47e75591385%2FSource%2FJobDriver_ChangeHairColor.cs%23L68]1[/url][github.com][url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FAUTOMATIC1111%2FHairDye%2Fblob%2Fbaaf8e59fc5d57744171892468a8f47e75591385%2FSource%2FJobDriver_ChangeHairColor.cs%23L69]2[/url][github.com])
SOURCE CODE
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FAUTOMATIC1111%2FGradientHair]https://github.com/AUTOMATIC1111/GradientHair[/url]
UPDATES
13-Aug-2021
- Fixed gradient hair not working with HAR
12-Aug-2021
- Added support for styling station from Ideology
- Added more hair masks
16-Jul-2021
- 1.3
29-Feb-20:
- fixed dev mode error related to edb integration
24-Feb-20:
- 1.1 support
21-Mar-19:
- added support for alien races; this mod now works with the likes of [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1541064015]Androids[/url] and [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1571323744]Crystalloid (Rewrite)[/url]