]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/gui/BoundingBoxTypeButton.java
Upgrade to 1.13.2
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / gui / BoundingBoxTypeButton.java
index b3e9d06667096b21d59f88a7faf69383ebd5292a..d44f0586852793442903bf077e70ac5f8dddb07e 100644 (file)
@@ -12,8 +12,15 @@ public class BoundingBoxTypeButton extends BoolSettingButton {
         color = type.getColor();
     }
 
+    public BoundingBoxTypeButton(int id, int x, int y, int width, String label, BoundingBoxType type, boolean enabled) {
+        this(id, x, y, width, label, type);
+        this.enabled = enabled;
+    }
+
     @Override
     protected void renderBackground() {
+        if (!enabled) return;
+
         int left = x + 1;
         int top = y + 1;
         int right = left + width - 2;