From e4ee11ae85ffba1d08bb3198397ba6594e7b27f5 Mon Sep 17 00:00:00 2001 From: tanishisherewithhh <120117618+tanishisherewithhh@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:39:42 +0530 Subject: [PATCH] Brushing up --- .../options/coloroption/ColorGradientPicker.java | 9 --------- .../tanishisherewith/dynamichud/widgets/TextWidget.java | 6 ++---- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorGradientPicker.java b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorGradientPicker.java index 8d70df3..66c676d 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorGradientPicker.java +++ b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorGradientPicker.java @@ -96,15 +96,6 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) { if (!display) { return false; } - - float[] hsv1 = new float[3]; - Color.RGBtoHSB(initialColor.getRed(), initialColor.getGreen(), initialColor.getBlue(), hsv1); - - this.gradientSlider.setHue(hsv1[0]); - this.gradientBox.setHue(hsv1[0]); - this.gradientBox.setSaturation(hsv1[1]); - this.gradientBox.setValue(hsv1[2]); - if (colorPickerButton.onClick(mouseX, mouseY, button)) { return true; } else if (gradientSlider.isMouseOver(mouseX, mouseY)) { diff --git a/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java b/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java index 67924b4..efdf1a4 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java +++ b/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java @@ -76,7 +76,7 @@ public void createMenu() { menu.addOption(new ColorOption("TextColor", menu, () -> this.textColor, value -> this.textColor = value)); menu.addOption(new DoubleOption("RainbowSpeed", 1, 4, 1.0f, () -> (double) this.rainbowSpeed, value -> this.rainbowSpeed = value.intValue(),menu)); - /* TEST */ + /* TEST AtomicReference enums = new AtomicReference<>(Enum.Enum1); AtomicReference option = new AtomicReference<>("Enum1"); List options = Arrays.asList("List1", "List2", "List3"); @@ -90,9 +90,7 @@ public void createMenu() { subMenuOption.getSubMenu().addOption(new BooleanOption("Shadows3", () -> this.shadow, value -> this.shadow = value)); subMenuOption.getSubMenu().addOption(new BooleanOption("Shadows4", () -> this.shadow, value -> this.shadow = value)); menu.addOption(subMenuOption); - } - public void printStuff(){ - System.out.println("Runnable works"); + */ } @Override