From 7a8ca1598b2ed41cf457dd43895a6082046fdf55 Mon Sep 17 00:00:00 2001 From: tanishisherewithhh <120117618+tanishisherewithhh@users.noreply.github.com> Date: Wed, 29 May 2024 22:42:04 +0530 Subject: [PATCH] Minor changes --- gradle.properties | 2 +- src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java | 2 ++ .../utils/contextmenu/options/coloroption/GradientSlider.java | 2 -- .../com/tanishisherewith/dynamichud/widget/WidgetRenderer.java | 2 ++ src/main/resources/fabric.mod.json | 3 +++ 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6f22580..f6d4f73 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.parallel=true loader_version=0.15.0 # Mod Properties - mod_version = 2.0.0 + mod_version = 2.0.1 maven_group = com.tanishisherewith archives_base_name = dynamichud diff --git a/src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java b/src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java index 6f8b8a9..5a010ed 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java +++ b/src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java @@ -156,6 +156,8 @@ public void onInitializeClient() { } } }); + printInfo("Integration of all mods found was successful"); + //Global config saving (YACL) ServerLifecycleEvents.SERVER_STOPPING.register(server -> GlobalConfig.HANDLER.save()); diff --git a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientSlider.java b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientSlider.java index ef630a6..39f1ff7 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientSlider.java +++ b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/options/coloroption/GradientSlider.java @@ -20,7 +20,6 @@ public GradientSlider(int x, int y, int width, int height) { this.height = height; } - /** * Sets position. * @@ -39,7 +38,6 @@ public void render(DrawContext drawContext, int x, int y) { DrawHelper.drawOutlinedBox(drawContext, x - 2, y - 2, x + width + 2, y + height + 2, -1); // Draw the gradient - for (int i = 0; i < width; i++) { float hue = (float) i / width; int color = Color.HSBtoRGB(hue, 1.0f, 1.0f); diff --git a/src/main/java/com/tanishisherewith/dynamichud/widget/WidgetRenderer.java b/src/main/java/com/tanishisherewith/dynamichud/widget/WidgetRenderer.java index 5a68452..4c734c1 100644 --- a/src/main/java/com/tanishisherewith/dynamichud/widget/WidgetRenderer.java +++ b/src/main/java/com/tanishisherewith/dynamichud/widget/WidgetRenderer.java @@ -86,6 +86,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) { return true; } } + selectedWidget = null; } return false; } @@ -104,6 +105,7 @@ public void mouseDragged(double mouseX, double mouseY, int button, int snapSize) return; } } + selectedWidget = null; } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 6b684b8..6b211c9 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -18,6 +18,9 @@ "license": "All-Rights-Reserved", "environment": "client", "entrypoints": { + "dynamicHud": [ + "com.tanishisherewith.dynamichud.DynamicHudTest" + ], "client": [ "com.tanishisherewith.dynamichud.DynamicHUD" ],