From 8f8394b2962bd11782e253840342f79c32fd73ad Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Fri, 20 Mar 2020 17:13:07 +0200 Subject: Add docs for WSprite UV fields --- src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') 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; /** -- cgit