From c560951ff9a6e44c9f95c489180c8599eaf560b5 Mon Sep 17 00:00:00 2001 From: Juuxel Date: Sun, 28 Jul 2019 09:25:02 +0300 Subject: active => enabled --- .../io/github/cottonmc/cotton/gui/widget/WButton.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java') 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 876da0c..3b6c299 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 @@ -11,7 +11,7 @@ public class WButton extends WWidget { private Text label; protected int color = WLabel.DEFAULT_TEXT_COLOR; protected int darkmodeColor = WLabel.DEFAULT_TEXT_COLOR; - private boolean active = true; + private boolean enabled = true; private Runnable onClick; @@ -33,7 +33,7 @@ public class WButton extends WWidget { public void paintForeground(int x, int y, int mouseX, int mouseY) { boolean hovered = (mouseX>=x && mouseY>=y && mouseX