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

◆ TryApplyingPlayerStringColor()

static Color Terraria.Main.TryApplyingPlayerStringColor ( int playerStringColor,
Color stringColor )
inlinestaticprivate

Definition at line 45595 of file Main.cs.

45596 {
45597 //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
45598 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
45599 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
45600 if (playerStringColor > 0)
45601 {
45602 stringColor = WorldGen.paintColor(playerStringColor);
45603 if (((Color)(ref stringColor)).R < 75)
45604 {
45605 ((Color)(ref stringColor)).R = 75;
45606 }
45607 if (((Color)(ref stringColor)).G < 75)
45608 {
45609 ((Color)(ref stringColor)).G = 75;
45610 }
45611 if (((Color)(ref stringColor)).B < 75)
45612 {
45613 ((Color)(ref stringColor)).B = 75;
45614 }
45615 switch (playerStringColor)
45616 {
45617 case 13:
45618 ((Color)(ref stringColor))._002Ector(20, 20, 20);
45619 break;
45620 case 0:
45621 case 14:
45622 ((Color)(ref stringColor))._002Ector(200, 200, 200);
45623 break;
45624 case 28:
45625 ((Color)(ref stringColor))._002Ector(163, 116, 91);
45626 break;
45627 case 27:
45628 ((Color)(ref stringColor))._002Ector(DiscoR, DiscoG, DiscoB);
45629 break;
45630 }
45631 ((Color)(ref stringColor)).A = (byte)((float)(int)((Color)(ref stringColor)).A * 0.4f);
45632 }
45633 return stringColor;
45634 }
static int DiscoR
Definition Main.cs:1131
static int DiscoG
Definition Main.cs:1135
static int DiscoB
Definition Main.cs:1133

References Terraria.Graphics.Light.Color, Terraria.Main.DiscoB, Terraria.Main.DiscoG, Terraria.Main.DiscoR, and Terraria.WorldGen.paintColor().

Referenced by Terraria.Main.DrawProj_DrawYoyoString(), and Terraria.Main.DrawProj_FishingLine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: