From e48d1cee97d1790908bea17a97eca20bab7cf2f1 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 15 Dec 2019 18:23:29 +0200 Subject: Add getter/setter for button label and alignment --- .../io/github/cottonmc/cotton/gui/widget/WButton.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java index 1064117..9addb22 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java @@ -30,7 +30,6 @@ public class WButton extends WWidget { return true; } - @Override public void paintBackground(int x, int y, int mouseX, int mouseY) { boolean hovered = (mouseX>=0 && mouseY>=0 && mouseX