diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 01d4a8e..f9eeab1 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -36,3 +36,11 @@ jobs:
with:
name: Dynamichud
path: build/libs/
+ - name: Release
+ uses: softprops/action-gh-release@v2
+ with:
+ name: "DynamicHUD Pre-release"
+ prerelease: true
+ fail_on_unmatched_files: true
+ generate_release_notes: true;
+ files: Dynamichud.zip
diff --git a/src/main/java/com/tanishisherewith/dynamichud/screens/AbstractMoveableScreen.java b/src/main/java/com/tanishisherewith/dynamichud/screens/AbstractMoveableScreen.java
index 9c3bc60..00f0885 100644
--- a/src/main/java/com/tanishisherewith/dynamichud/screens/AbstractMoveableScreen.java
+++ b/src/main/java/com/tanishisherewith/dynamichud/screens/AbstractMoveableScreen.java
@@ -1,5 +1,6 @@
package com.tanishisherewith.dynamichud.screens;
+import com.tanishisherewith.dynamichud.widget.Widget;
import com.tanishisherewith.dynamichud.widget.WidgetRenderer;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
@@ -32,7 +33,9 @@ public boolean mouseDragged(double mouseX, double mouseY, int button, double del
@Override
public boolean mouseClicked(double mouseX, double mouseY, int button) {
- widgetRenderer.mouseClicked(mouseX, mouseY, button);
+ if(widgetRenderer.mouseClicked(mouseX, mouseY, button)){
+ handleClickOnWidget(widgetRenderer.selectedWidget,mouseX,mouseY,button);
+ }
return false;
}
@@ -79,6 +82,9 @@ public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
// Draw each widget
widgetRenderer.renderWidgets(drawContext, mouseX, mouseY);
}
+ public void handleClickOnWidget(Widget widget, double mouseX, double mouseY, int button){
+
+ }
@Override
public void close() {
diff --git a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/ContextMenu.java b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/ContextMenu.java
index 17d58e4..272019c 100644
--- a/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/ContextMenu.java
+++ b/src/main/java/com/tanishisherewith/dynamichud/utils/contextmenu/ContextMenu.java
@@ -10,7 +10,10 @@
public class ContextMenu {
private final List