tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.GameContent.UI.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

int ElementCount
int ElementIndexOffset
TextureGetter GetTextureMethod
Vector2 OffsetPerDraw
Vector2 OffsetPerDrawByTexturePercentile
Vector2 OffsetSpriteAnchor
Vector2 OffsetSpriteAnchorByTexturePercentile
Vector2 TopLeftAnchor