aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-03-20 17:13:07 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-03-20 17:13:07 +0200
commit8f8394b2962bd11782e253840342f79c32fd73ad (patch)
tree7d52f74c972a3e0b07665710d926be845ce2b739 /src
parent7a35742c14f706fb71f14690fdd6f88a1cdb6d25 (diff)
downloadLibGui-8f8394b2962bd11782e253840342f79c32fd73ad.tar.gz
LibGui-8f8394b2962bd11782e253840342f79c32fd73ad.tar.bz2
LibGui-8f8394b2962bd11782e253840342f79c32fd73ad.zip
Add docs for WSprite UV fields
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java5
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;
/**