Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ApplyPendingColor()

void Terraria.GameContent.UI.States.UICharacterCreation.ApplyPendingColor ( Color pendingColor)
inlineprivate

Definition at line 716 of file UICharacterCreation.cs.

717 {
718 switch (_selectedPicker)
719 {
720 case CategoryId.HairColor:
721 _player.hairColor = pendingColor;
722 break;
723 case CategoryId.Eye:
724 _player.eyeColor = pendingColor;
725 break;
726 case CategoryId.Skin:
727 _player.skinColor = pendingColor;
728 break;
729 case CategoryId.Shirt:
730 _player.shirtColor = pendingColor;
731 break;
732 case CategoryId.Undershirt:
733 _player.underShirtColor = pendingColor;
734 break;
735 case CategoryId.Pants:
736 _player.pantsColor = pendingColor;
737 break;
738 case CategoryId.Shoes:
739 _player.shoeColor = pendingColor;
740 break;
741 }
742 }

References Terraria.GameContent.UI.States.UICharacterCreation._selectedPicker.

Referenced by Terraria.GameContent.UI.States.UICharacterCreation.Click_PasteHex(), Terraria.GameContent.UI.States.UICharacterCreation.Click_RandomizeSingleColor(), and Terraria.GameContent.UI.States.UICharacterCreation.UpdateHSLValue().