Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh committed May 29, 2024
1 parent 3038f79 commit 7a8ca15
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/tanishisherewith/dynamichud/DynamicHUD.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public GradientSlider(int x, int y, int width, int height) {
this.height = height;
}


/**
* Sets position.
*
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
return true;
}
}
selectedWidget = null;
}
return false;
}
Expand All @@ -104,6 +105,7 @@ public void mouseDragged(double mouseX, double mouseY, int button, int snapSize)
return;
}
}
selectedWidget = null;
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"license": "All-Rights-Reserved",
"environment": "client",
"entrypoints": {
"dynamicHud": [
"com.tanishisherewith.dynamichud.DynamicHudTest"
],
"client": [
"com.tanishisherewith.dynamichud.DynamicHUD"
],
Expand Down

0 comments on commit 7a8ca15

Please sign in to comment.