diff --git a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorOption.java b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/ColorOption.java similarity index 96% rename from src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorOption.java rename to src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/ColorOption.java index 17f5eec..57d9b16 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/ColorOption.java +++ b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/ColorOption.java @@ -1,8 +1,9 @@ -package com.tanishisherewith.dynamichud.utils.contextmenu.options.coloroption; +package com.tanishisherewith.dynamichud.utils.contextmenu.options; import com.tanishisherewith.dynamichud.helpers.DrawHelper; import com.tanishisherewith.dynamichud.utils.contextmenu.ContextMenu; import com.tanishisherewith.dynamichud.utils.contextmenu.Option; +import com.tanishisherewith.dynamichud.utils.contextmenu.options.coloroption.ColorGradientPicker; import net.minecraft.client.gui.DrawContext; import net.minecraft.text.Text; diff --git a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientBox.java b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientBox.java index e67d856..f30b184 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientBox.java +++ b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientBox.java @@ -32,8 +32,8 @@ public void render(DrawContext drawContext, int x, int y) { // Draw the handle float handleSize = 3; - float handleX = x + saturation * size - handleSize / 2.0f; - float handleY = y + (1.0f - value) * size - handleSize / 2.0f; + float handleX = x + 2 + saturation * size - handleSize / 2.0f; + float handleY = y + 2 + (1.0f - value) * size - handleSize / 2.0f; DrawHelper.drawFilledCircle(drawContext.getMatrices().peek().getPositionMatrix(), handleX, handleY, 1, -1); drawContext.getMatrices().pop(); diff --git a/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java b/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java index 4f77aaf..c5b0b7a 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java +++ b/src/main/java/com/tanishisherewith/dynamichud/widgets/TextWidget.java @@ -8,7 +8,7 @@ import com.tanishisherewith.dynamichud.utils.contextmenu.options.DoubleOption; import com.tanishisherewith.dynamichud.utils.contextmenu.options.EnumOption; import com.tanishisherewith.dynamichud.utils.contextmenu.options.ListOption; -import com.tanishisherewith.dynamichud.utils.contextmenu.options.coloroption.ColorOption; +import com.tanishisherewith.dynamichud.utils.contextmenu.options.ColorOption; import com.tanishisherewith.dynamichud.widget.Widget; import com.tanishisherewith.dynamichud.widget.WidgetData; import net.minecraft.client.gui.DrawContext;