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

◆ alpha

int Terraria.Item.alpha

Set to a value from 0 to 255 to control how transparent the item will appear when drawn. Gel uses 175, gemstone items use 50. 0 is opaque, and 255 is transparent. Note that this is the opposite of how alpha is typically expressed in computer graphics. Use M:Terraria.ModLoader.ModItem.GetAlpha(Microsoft.Xna.Framework.Color) for more control over the resulting color.
Defaults to 0.

Definition at line 512 of file Item.cs.

Referenced by Terraria.DataStructures.PlayerDrawLayers.DrawPlayer_27_HeldItem(), Terraria.Item.GetAlpha(), Terraria.Item.ResetStats(), Terraria.Item.SetDefaults1(), and Terraria.Item.SetDefaults4().