RimWorld

RimWorld

1,335 ratings
Gradient Hair
8
2
2
3
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
5.889 MB
Mar 18, 2019 @ 2:05pm
Jun 16 @ 4:19am
20 Change Notes ( view )

Subscribe to download
Gradient Hair

Description
ABOUT
Adds gradient hair to the game. Mod hairs are supported. On pictures are hairs from SS Lovely Hair Style 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:


KNOWN INCOMPATIBILITIES
  • Facial stuff - you won't get any gradients, but hair color will change.

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:
https://github.com/AUTOMATIC1111/HairDye/blob/master/Source/GradientHairApi.cs
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: 1[github.com]2[github.com])

SOURCE CODE
https://github.com/AUTOMATIC1111/GradientHair

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 Androids and Crystalloid (Rewrite)
Popular Discussions View All (2)
8
Jul 24 @ 7:13pm
Getting spammed with this errors
Rassmond
0
Aug 1 @ 2:25am
An Error Occurred
Okran365
281 Comments
UltraEmailMan Jul 27 @ 7:07pm 
Can confirm. Color selection for the gradient color is cut off. Tested with only this mod and all DLC enabled.
Runzu Jul 26 @ 5:26am 
I'm having the same issue as @gh0stashes when it comes to choosing available gradient colors. They are cut-off, even at 1080p full screen resolution. Unless the colonist rolls with one that's off screen, you can't select it yourself.
Hawk Tuah Jul 19 @ 2:41am 
This is conflicting with EdB Prepare Carefully:
Gradient Hair tries to patch a method in EdB Prepare Carefully.
It expects a parameter named customPawn, but the actual method uses customizedPawn.
Harmony (the patching library) throws an exception due to this mismatch.
gh0stashes Jul 5 @ 10:14pm 
The dye/styling menu for Gradients is broken, only displaying about half the available colours and making it impossible for pawns to dye their hair most colours without Character Editor. https://i.imgur.com/FDw6CeO.png
Aku Jun 27 @ 1:30pm 
Kinda wish there was a gene for gradient hair...
moo Jun 26 @ 9:00pm 
I wanted to highlight that the 1.6 version has a discussion open for a confirmed error with GH, but you might not have been notified.
gh0stashes Jun 19 @ 7:04pm 
Weird bug where pawns with gradient hair have a strange box around them, usually while hauling something. May be an interaction with SimpleCameraSettings? https://i.imgur.com/pS7LjdW.png
Readon ♥ May 19 @ 7:21pm 
not work with EdB Prepare Carefully