diff --git a/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CompassHud.java b/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CompassHud.java index faf8609..49048c3 100644 --- a/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CompassHud.java +++ b/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CompassHud.java @@ -30,6 +30,7 @@ public class CompassHud extends TextHudEntry implements DynamicallyPositionable private final KronColor cardinalColor = new KronColor("cardinalcolor", ID.getPath(), new Color(0xFFFFFFFF)); private final KronColor semiCardinalColor = new KronColor("semicardinalcolor", ID.getPath(), new Color(0xFFAAAAAA)); private final KronBoolean invert = new KronBoolean("invert", ID.getPath(), false); + private final KronBoolean showDegrees = new KronBoolean("showdegrees", ID.getPath(), true); private void updateWidth(int newWidth){ setWidth(newWidth); @@ -78,7 +79,12 @@ public void renderCompass(MatrixStack matrices, float delta) { int x = pos.x(); int y = pos.y() + 1; RenderUtil.drawRectangle(matrices, pos.x() + (int) halfWidth - 1, pos.y(), 3, 11, lookingBox.getValue()); - DrawUtil.drawCenteredString(matrices, client.textRenderer, String.valueOf((int) degrees), x + (int) halfWidth, y + 20, degreesColor.getValue(), shadow.getValue()); + if (showDegrees.getValue()) { + DrawUtil.drawCenteredString( + matrices, client.textRenderer, String.valueOf((int) degrees), x + (int) halfWidth, y + 20, degreesColor.getValue(), + shadow.getValue() + ); + } float shift = (startIndicator - start) / 15f * dist; if (invert.getValue()) { shift = dist - shift; @@ -160,6 +166,7 @@ private static String getCardString(Indicator indicator, int degrees) { public List> getConfigurationOptions() { List> options = super.getConfigurationOptions(); options.add(widthOption); + options.add(showDegrees); options.add(invert); options.add(lookingBox); options.add(degreesColor); diff --git a/src/main/resources/assets/kronhud/lang/en_us.json b/src/main/resources/assets/kronhud/lang/en_us.json index 3293572..2dd4f13 100644 --- a/src/main/resources/assets/kronhud/lang/en_us.json +++ b/src/main/resources/assets/kronhud/lang/en_us.json @@ -145,6 +145,8 @@ "hud.kronhud.playerhud.info": "Renders a smaller version of the player model", "hud.kronhud.irltimehud": "IRLTime HUD", "hud.kronhud.reachhud": "Reach HUD", + "hud.kronhud.irltimehud.info": "Shows the real current time", + "hud.kronhud.reachhud.info": "Shows how far away your last hit was", "texts.kronhud.optiontype.info.hudconfig": "Enable/Disable this module from showing. Modify specific options by clicking the gear.", "kronhud.component.toggle.true": "&aActive", "kronhud.component.toggle.false": "&cDisabled", @@ -178,5 +180,43 @@ "kronhud.option.anchorpoint.middleright.info": "Middle right point", "kronhud.option.anchorpoint.bottomleft.info": "Bottom left corner", "kronhud.option.anchorpoint.bottommiddle.info": "Bottom middle point", - "kronhud.option.anchorpoint.bottomright.info": "Bottom right point" + "kronhud.option.anchorpoint.bottomright.info": "Bottom right point", + + "hud.kronhud.compasshud": "Compass HUD", + "hud.kronhud.tpshud": "TPS HUD", + "hud.kronhud.combohud": "Combo HUD", + + "hud.kronhud.compasshud.info": " Displays current looking direction", + "hud.kronhud.tpshud.info": "Displays the estimated server TPS", + "hud.kronhud.combohud.info": "Display current combo information", + + "option.kronhud.minwidth.comment": "Minimum width of the component (it will automatically expand)", + "option.kronhud.irltimehud.dateformat.comment": "Date format to render time from. This works with any specification from the &dJava 8 Date Time Formatter\n&7https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html", + + "option.kronhud.compasshud.width": "Width", + "option.kronhud.compasshud.invert": "Invert Direction", + "option.kronhud.compasshud.lookingbox": "Degrees Indicator Color", + "option.kronhud.compasshud.degreescolor": "Degrees Text Color", + "option.kronhud.compasshud.cardinalcolor": "Cardinal Direction Color", + "option.kronhud.compasshud.semicardinalcolor": "Intercardinal Color", + "option.kronhud.compasshud.majorindicator": "Major Indicator Color", + "option.kronhud.compasshud.minorindicator": "Minor Indicator Color", + "option.kronhud.compasshud.showdegrees": "Show Degrees", + + "option.kronhud.compasshud.width.comment": "Width of the compass element", + "option.kronhud.compasshud.invert.comment": "Inverts the direction that the compass moves", + "option.kronhud.compasshud.lookingbox.comment": "The color of the small line on the display in the direct center", + "option.kronhud.compasshud.degreescolor.comment": "The color of the degrees text below the center", + "option.kronhud.compasshud.cardinalcolor.comment": "The color of &7N E S W", + "option.kronhud.compasshud.semicardinalcolor.comment": "The color of &7NE SE SW NW", + "option.kronhud.compasshud.majorindicator.comment": "The color of the long lines (every 90 degrees)", + "option.kronhud.compasshud.minorindicator.comment": "The color of the short lines (every 15 degrees)", + "option.kronhud.compasshud.showdegrees.comment": "Displays the current degree of rotation", + + "option.kronhud.general.edithud.info": "Keybind to open the screen to edit the HUD", + "option.kronhud.scoreboardhud.toppadding": "Top Padding", + "option.kronhud.scoreboardhud.toppadding.comment": "Padding around the title component on the scoreboard", + + "option.kronhud.playerhud.dynamicrotation": "Dynamic Rotation", + "option.kronhud.playerhud.dynamicrotation.comment": "Rotation of the player is shown and then slowly turns back to looking straight" }