RimWorld

RimWorld

1,347 ratings
Gradient Hair
2
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)
12
Aug 12 @ 1:06pm
Getting spammed with this errors
Rassmond
0
Aug 1 @ 2:25am
An Error Occurred
Okran365
288 Comments
Alma_S Aug 23 @ 9:36pm 
i found a bug. it seems like babies could sometime be born with gradient hair, even though they should be born bald
SanguinarcAQL Aug 18 @ 10:11am 
Hey @torsina ! If you are gathering ideas for a fork, I beg you to add a search bar for hair, bear, and tattoo; it's a pain in the ass to search for a specific one when you have a few mods that add stuff ...
BonTenshi Aug 17 @ 4:59pm 
@torsina Yeah a gene for whether or not a pawn has gradient hair, But even better make it so gradient hair can only be the colors indicated in the pawns genes instead of the rainbow
torsina Aug 17 @ 12:41pm 
@BonTenshi What do you mean by "add a gene for it" ? I'm in the process of forking this mod and adding features that I and other people wanted, as well as reimplementing fixes like @Cosmosteller 's back into the mod.

Do you mean that gradient hair should only be active if a pan has the gene for it ? Or do you mean genes for the colors or ?
Cosmosteller Aug 14 @ 9:00am 
I’ve created a patch mod that adds a scroll function to the color palette in the Styling Station’s gradient section.
It also includes a safeguard against the error spam reported in the comments and discussions (this part hasn’t been tested yet).
Many thanks to the original modder, and I hope this small patch will be helpful to many players.

https://steamcommunity.com/sharedfiles/filedetails/?id=3548815203
BonTenshi Aug 8 @ 7:56pm 
If someone fixes/creates a new mod please add a gene for it and link here!
Tigerblut Aug 3 @ 9:57am 
So this dev is absolutely not gonna fix this mod it seems? What a shame I loved it
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.