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

◆ WorldUIAnchor() [4/4]

Terraria.GameContent.UI.WorldUIAnchor.WorldUIAnchor ( int topLeftX,
int topLeftY,
int width,
int height )
inline

Definition at line 41 of file WorldUIAnchor.cs.

42 {
43 type = AnchorType.Tile;
44 pos = new Vector2((float)topLeftX + (float)width / 2f, (float)topLeftY + (float)height / 2f) * 16f;
45 size = new Vector2(width, height) * 16f;
46 }

References Terraria.GameContent.UI.WorldUIAnchor.pos, Terraria.GameContent.UI.WorldUIAnchor.size, and Terraria.GameContent.UI.WorldUIAnchor.type.