aboutsummaryrefslogtreecommitdiff
path: root/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java')
-rw-r--r--src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java b/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java
deleted file mode 100644
index 7e17aac..0000000
--- a/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package dev.isxander.yacl.gui;
-
-import com.mojang.blaze3d.vertex.PoseStack;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.components.Button;
-import net.minecraft.client.gui.components.Tooltip;
-import net.minecraft.network.chat.Component;
-import net.minecraft.util.Mth;
-
-public class LowProfileButtonWidget extends Button {
- public LowProfileButtonWidget(int x, int y, int width, int height, Component message, OnPress onPress) {
- super(x, y, width, height, message, onPress, DEFAULT_NARRATION);
- }
-
- public LowProfileButtonWidget(int x, int y, int width, int height, Component message, OnPress onPress, Tooltip tooltip) {
- this(x, y, width, height, message, onPress);
- setTooltip(tooltip);
- }
-
- @Override
- public void renderWidget(PoseStack matrices, int mouseX, int mouseY, float deltaTicks) {
- if (!isHoveredOrFocused() || !active) {
- int j = this.active ? 0xFFFFFF : 0xA0A0A0;
- this.renderString(matrices, Minecraft.getInstance().font, j);
- } else {
- super.renderWidget(matrices, mouseX, mouseY, deltaTicks);
- }
- }
-}