public WindowChooseHairColor(ThingCompHairDye comp, ThingWithComps dye, Pawn pawn)
        {
            this.dye  = dye;
            this.pawn = pawn;
            this.comp = comp;

            hairData.Read(pawn);
            originalHairData.Read(pawn);

            gradientHairIsAvailable = GradientHairApi.GradientHairIsAvailable();

            grid = new WindowGrid(4, gradientHairIsAvailable ? 7 : 6);
        }
Exemplo n.º 2
0
 public void Write(Pawn pawn)
 {
     pawn.story.hairColor = colorA;
     GradientHairApi.SetGradientHair(pawn, gradientHairEnabled, colorB);
 }
Exemplo n.º 3
0
 public void Read(Pawn pawn)
 {
     colorA = pawn.story.hairColor;
     GradientHairApi.GetGradientHair(pawn, out gradientHairEnabled, out colorB);
 }