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

◆ GetHairSettings()

void Terraria.Player.GetHairSettings ( out bool fullHair,
out bool hatHair,
out bool hideHair,
out bool backHairDraw,
out bool drawsBackHairWithoutHeadgear )
inline

Definition at line 15460 of file Player.cs.

15461 {
15462 fullHair = head >= 0 && ArmorIDs.Head.Sets.DrawFullHair[head];
15463 hatHair = head >= 0 && ArmorIDs.Head.Sets.DrawHatHair[head];
15464 hideHair = (face >= 0 && ArmorIDs.Face.Sets.PreventHairDraw[face]) || (faceHead >= 0 && head != 0);
15465 backHairDraw = hair >= 0 && HairID.Sets.DrawBackHair[hair];
15466 drawsBackHairWithoutHeadgear = head >= 0 && ArmorIDs.Head.Sets.DrawsBackHairWithoutHeadgear[head];
15467 }
static bool[] PreventHairDraw
If true for a given T:Terraria.ID.ArmorIDs.Face, then that equip will completely hide the player's ha...
Definition ArmorIDs.cs:2211
static bool[] DrawFullHair
If true for a given T:Terraria.ID.ArmorIDs.Head, then that equip will show the player's full hair whe...
Definition ArmorIDs.cs:47
static bool[] DrawHatHair
If true for a given T:Terraria.ID.ArmorIDs.Head, then that equip will show the player's hat hair when...
Definition ArmorIDs.cs:56
static bool[] DrawsBackHairWithoutHeadgear
If true for a given T:Terraria.ID.ArmorIDs.Head, then that equip will allow back hair (F:Terraria....
Definition ArmorIDs.cs:62
static bool[] DrawBackHair
If true for a given F:Terraria.Player.hair value, then that hair will additionally draw behind the pl...
Definition HairID.cs:16

References Terraria.ID.HairID.Sets.DrawBackHair, Terraria.ID.ArmorIDs.Head.Sets.DrawFullHair, Terraria.ID.ArmorIDs.Head.Sets.DrawHatHair, Terraria.ID.ArmorIDs.Head.Sets.DrawsBackHairWithoutHeadgear, Terraria.Player.face, Terraria.Player.faceHead, Terraria.Player.hair, Terraria.Player.head, and Terraria.ID.ArmorIDs.Face.Sets.PreventHairDraw.

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_2(), and Terraria.DataStructures.PlayerDrawSet.HeadOnlySetup().

+ Here is the caller graph for this function: