Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh committed Apr 13, 2024
1 parent cf61d7d commit 0c53557
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c53557

Please sign in to comment.