tModLoader v2024.04
A mod to make and play Terraria mods
ResourceDrawSettings Struct Reference

Public Member Functions

void Draw (SpriteBatch spriteBatch, ref bool isHovered)
delegate void TextureGetter (int elementIndex, int firstElementIndex, int lastElementIndex, out Asset< Texture2D > texture, out Vector2 drawOffset, out float drawScale, out Rectangle? sourceRect)

Public Attributes

IPlayerResourcesDisplaySet DisplaySet
int ElementCount
int ElementIndexOffset
TextureGetter GetTextureMethod
Vector2 OffsetPerDraw
Vector2 OffsetPerDrawByTexturePercentile
Vector2 OffsetSpriteAnchor
Vector2 OffsetSpriteAnchorByTexturePercentile
int ResourceIndexOffset
PlayerStatsSnapshot StatsSnapshot
Vector2 TopLeftAnchor