diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java index d666fc2..0738875 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java @@ -13,9 +13,14 @@ public class WSprite extends WWidget { protected long lastFrame; protected boolean singleImage = false; protected int tint = 0xFFFFFFFF; + + /** The left edge of the texture as a fraction. */ protected float u1 = 0; + /** The top edge of the texture as a fraction. */ protected float v1 = 0; + /** The right edge of the texture as a fraction. */ protected float u2 = 1; + /** The bottom edge of the texture as a fraction. */ protected float v2 = 1; /** |