aboutsummaryrefslogtreecommitdiff
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:33 +0200
commite28a90ff3233e700908510438edd5b04b42c970c (patch)
tree50d927fe36a2ee95f5fe9bf1c93f7142666d2eb8
parent8a523522a865fa191e15a8502b0dc9a63f2f141a (diff)
downloadLibGui-e28a90ff3233e700908510438edd5b04b42c970c.tar.gz
LibGui-e28a90ff3233e700908510438edd5b04b42c970c.tar.bz2
LibGui-e28a90ff3233e700908510438edd5b04b42c970c.zip
Add docs for WSprite UV fields
(cherry picked from commit 8f8394b2962bd11782e253840342f79c32fd73ad)
-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;
/**