TModLoader v1.4.4.9
TModLoader 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 55 of file WorldUIAnchor.cs.

56 {
57 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
58 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
59 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
60 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
61 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
62 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
63 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
64 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
65 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
66 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
67 type = AnchorType.Tile;
68 pos = new Vector2((float)topLeftX + (float)width / 2f, (float)topLeftY + (float)height / 2f) * 16f;
69 size = new Vector2((float)width, (float)height) * 16f;
70 }

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