diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-03-20 17:13:07 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-03-20 17:13:07 +0200 |
commit | 8f8394b2962bd11782e253840342f79c32fd73ad (patch) | |
tree | 7d52f74c972a3e0b07665710d926be845ce2b739 | |
parent | 7a35742c14f706fb71f14690fdd6f88a1cdb6d25 (diff) | |
download | LibGui-8f8394b2962bd11782e253840342f79c32fd73ad.tar.gz LibGui-8f8394b2962bd11782e253840342f79c32fd73ad.tar.bz2 LibGui-8f8394b2962bd11782e253840342f79c32fd73ad.zip |
Add docs for WSprite UV fields
-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; /** |