package info.u_team.u_team_core.gui.elements;

import com.mojang.blaze3d.matrix.MatrixStack;

import info.u_team.u_team_core.util.RGBA;
import net.minecraft.util.text.ITextComponent;

public class ScalableActiveButton extends ScalableButton {
	
	protected boolean active;
	
	protected RGBA activeColor;
	
	public ScalableActiveButton(int x, int y, int width, int height, float scale, ITextComponent display, boolean active, RGBA activeColor) {
		this(x, y, width, height, scale, display, active, activeColor, EMTPY_PRESSABLE);
	}
	
	public ScalableActiveButton(int x, int y, int width, int height, float scale, ITextComponent display, boolean active, RGBA activeColor, IPressable pessable) {
		this(x, y, width, height, scale, display, active, activeColor, pessable, EMPTY_TOOLTIP);
	}
	
	public ScalableActiveButton(int x, int y, int width, int height, float scale, ITextComponent display, boolean active, RGBA activeColor, ITooltip tooltip) {
		this(x, y, width, height, scale, display, active, activeColor, EMTPY_PRESSABLE, tooltip);
	}
	
	public ScalableActiveButton(int x, int y, int width, int height, float scale, ITextComponent display, boolean active, RGBA activeColor, IPressable pessable, ITooltip tooltip) {
		super(x, y, width, height, scale, display, pessable, tooltip);
		this.active = active;
		this.activeColor = activeColor;
	}
	
	public boolean isActive() {
		return active;
	}
	
	public void setActive(boolean active) {
		this.active = active;
	}
	
	public RGBA getActiveColor() {
		return activeColor;
	}
	
	public void setActiveColor(RGBA activeColor) {
		this.activeColor = activeColor;
	}
	
	@Override
	protected RGBA getCurrentButtonColor(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {
		return active ? activeColor : buttonColor;
	}
}

@@ -359,37 +359,24 @@
  int height,
- float scale,
  ITextCompon
@@ -379,32 +379,45 @@
 mponent display,
+ float scale,
  boolean active,
@@ -461,38 +461,38 @@
 th, height, 
-scale, 
 display
+, scale
 , active, ac
@@ -586,37 +586,24 @@
  int height,
- float scale,
  ITextCompon
@@ -606,32 +606,45 @@
 mponent display,
+ float scale,
  boolean active,
@@ -709,38 +709,38 @@
 th, height, 
-scale, 
 display
+, scale
 , active, ac
@@ -842,37 +842,24 @@
  int height,
- float scale,
  ITextCompon
@@ -862,32 +862,45 @@
 mponent display,
+ float scale,
  boolean active,
@@ -966,30 +966,30 @@
 height, 
-scale, 
 display
+, scale
 , active
@@ -1100,29 +1100,16 @@
  height,
- float scale,
  ITextCo
@@ -1124,16 +1124,29 @@
 display,
+ float scale,
  boolean
@@ -1246,22 +1246,22 @@
 ht, 
-scale, 
 display
+, scale
 , pe

Fix scalableactive button