import com.irtimaled.bbor.client.config.ColorHelper;
import com.irtimaled.bbor.client.config.ConfigManager;
+import net.minecraft.client.util.math.MatrixStack;
public abstract class BoolButton extends AbstractButton {
BoolButton(int width, String label, boolean enabled) {
protected abstract boolean getValue();
@Override
- protected void renderBackground(int mouseX, int mouseY) {
+ protected void renderBackground(MatrixStack matrixStack, int mouseX, int mouseY) {
int left = this.x + 1;
int top = this.y + 1;
int right = left + this.width - 2;
int bottom = top + this.height - 2;
if (this.getValue()) {
- drawRectangle(left, top, right, bottom, ColorHelper.getColor(ConfigManager.buttonOnOverlay));
+ drawRectangle(matrixStack, left, top, right, bottom, ColorHelper.getColor(ConfigManager.buttonOnOverlay));
}
}
}