tModLoader v2024.09
A mod to make and play Terraria mods
WorldUIAnchor Class Reference

Public Types

enum  AnchorType { Entity , Tile , Pos , None }
 

Public Member Functions

 WorldUIAnchor (Entity anchor)
 
 WorldUIAnchor (int topLeftX, int topLeftY, int width, int height)
 
 WorldUIAnchor (Vector2 anchor)
 
bool InRange (Vector2 target, float tileRangeX, float tileRangeY)
 

Public Attributes

Entity entity
 
Vector2 pos = Vector2.Zero
 
Vector2 size = Vector2.Zero
 
AnchorType type