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

◆ SetupHairFrames()

void Terraria.DataStructures.PlayerDrawSet.SetupHairFrames ( )
inlineprivate

Definition at line 2716 of file PlayerDrawSet.cs.

2717 {
2718 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
2719 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
2720 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
2721 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
2722 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
2723 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
2724 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
2725 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
2726 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
2727 Rectangle bodyFrame = drawPlayer.bodyFrame;
2728 bodyFrame = drawPlayer.bodyFrame;
2729 bodyFrame.Y -= 336;
2730 if (bodyFrame.Y < 0)
2731 {
2732 bodyFrame.Y = 0;
2733 }
2734 hairFrontFrame = bodyFrame;
2735 hairBackFrame = bodyFrame;
2736 if (hideHair)
2737 {
2738 hairFrontFrame.Height = 0;
2739 hairBackFrame.Height = 0;
2740 }
2741 else if (backHairDraw)
2742 {
2743 int height = 26;
2744 hairFrontFrame.Height = height;
2745 }
2746 }
Rectangle bodyFrame
Definition Player.cs:1886

References Terraria.DataStructures.PlayerDrawSet.backHairDraw, Terraria.Player.bodyFrame, Terraria.DataStructures.PlayerDrawSet.drawPlayer, Terraria.DataStructures.PlayerDrawSet.hairBackFrame, Terraria.DataStructures.PlayerDrawSet.hairFrontFrame, and Terraria.DataStructures.PlayerDrawSet.hideHair.

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

+ Here is the caller graph for this function: