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

◆ GetPlayerHeadBordersColor()

static Color Terraria.Main.GetPlayerHeadBordersColor ( Player plr)
inlinestatic

Definition at line 72341 of file Main.cs.

72342 {
72343 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
72344 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
72345 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
72346 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
72347 if (plr.ghost || plr.dead)
72348 {
72349 return Color.Transparent;
72350 }
72351 if (plr.whoAmI == myPlayer)
72352 {
72353 return teamColor[plr.team];
72354 }
72355 if (plr.hostile && (plr.team != LocalPlayer.team || plr.team == 0))
72356 {
72357 return Color.Transparent;
72358 }
72359 return teamColor[plr.team];
72360 }
static Color[] teamColor
Definition Main.cs:1359
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
Definition Main.cs:1958
static Player LocalPlayer
Retrieves the T:Terraria.Player object for the local user. Shorthand for F:Terraria....
Definition Main.cs:3001

References Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, and Terraria.Main.teamColor.

Referenced by Terraria.GameContent.UI.LegacyMultiplayerClosePlayersOverlay.Draw(), Terraria.Main.DrawMap(), and Terraria.GameContent.UI.NewMultiplayerClosePlayersOverlay.PlayerOffScreenCache.DrawPlayerHead().

+ Here is the caller graph for this function: