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

◆ Frame() [1/2]

static Rectangle Terraria.Utils.Frame ( this Asset< Texture2D > tex,
int horizontalFrames = 1,
int verticalFrames = 1,
int frameX = 0,
int frameY = 0,
int sizeOffsetX = 0,
int sizeOffsetY = 0 )
inlinestatic

Definition at line 1058 of file Utils.cs.

1059 {
1060 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
1061 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
1062 if (!tex.IsLoaded)
1063 {
1064 return Rectangle.Empty;
1065 }
1066 return tex.Value.Frame(horizontalFrames, verticalFrames, frameX, frameY, sizeOffsetX, sizeOffsetY);
1067 }