Skip to content

Commit e5ddbf8

Browse files
committed
Waypoint and UI Fixes
1 parent 28c833f commit e5ddbf8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/net/wurstclient/hacks/ClickGuiHack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class ClickGuiHack extends Hack
3333
new ColorSetting("Text", "Text color", new Color(0xF0F0F0));
3434

3535
private final SliderSetting opacity = new SliderSetting("Opacity", 0.5,
36-
0.15, 0.85, 0.01, ValueDisplay.PERCENTAGE);
36+
0.15, 1, 0.01, ValueDisplay.PERCENTAGE);
3737

3838
private final SliderSetting ttOpacity = new SliderSetting("Tooltip opacity",
3939
0.75, 0.15, 1, 0.01, ValueDisplay.PERCENTAGE);

src/main/java/net/wurstclient/hacks/WaypointsHack.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ public void onRenderGUI(DrawContext context, float partialTicks)
788788
int baseBarY =
789789
(int)Math.round(sh * (compassYPercent.getValue() / 100.0));
790790
int barY = adjustCompassYForOverlays(context, baseBarY);
791-
int barH = 12; // thinner
791+
int barH = 8; // thinner (was 12)
792792
int pad = 6;
793793
int halfWidth = Math.min(120, Math.max(60, sw / 4)); // shorter
794794
double visibleAngle = 90.0; // degrees each side
@@ -898,7 +898,9 @@ public void onRenderGUI(DrawContext context, float partialTicks)
898898
icon = "";
899899
int color = e.w.getColor();
900900
int iconW = tr.getWidth(icon);
901-
context.drawText(tr, icon, ix - iconW / 2, barY + 2, color, false);
901+
int iconY =
902+
(int)Math.round(barY + barH / 2.0 - tr.fontHeight / 2.0);
903+
context.drawText(tr, icon, ix - iconW / 2, iconY, color, false);
902904
}
903905

904906
// Draw selected name and distance

0 commit comments

Comments
 (0)