Skip to content

Commit ab1e88e

Browse files
committed
more improvements
1 parent 887cd68 commit ab1e88e

File tree

12 files changed

+106
-48
lines changed

12 files changed

+106
-48
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@
4242
- now using the provided DefaultConfigManager.
4343
- Full Changelog: https://github.com/AxolotlClient/AxolotlClient-mod/compare/v2.2.1+1.19.2...v2.2.2+1.19.2
4444

45+
### 2.2.3
46+
47+
- fix some nasty bugs
48+
- re-add an option that had been removed in 2.2.2
49+
- update german translation

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies {
3838
modImplementation "org.quiltmc:quilt-loader:${project.loader_version}"
3939
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${quilted_fabric_api_version}"
4040

41-
include(modImplementation "io.github.axolotlclient:AxolotlClient-config:1.0.11+1.19.2")
41+
include(modImplementation "io.github.axolotlclient:AxolotlClient-config:1.0.12+1.19.2")
4242

4343
modImplementation "com.terraformersmc:modmenu:4.0.5"
4444

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ org.gradle.parallel = true
55
# Dependencies
66
minecraft_version = 1.19.2
77
quilt_mappings = 21
8-
loader_version = 0.17.5-beta.4
8+
loader_version = 0.17.6
99

1010
# Quilted Fabric API
11-
quilted_fabric_api_version = 4.0.0-beta.14+0.62.0-1.19.2
11+
quilted_fabric_api_version = 4.0.0-beta.19+0.64.0-1.19.2
1212

1313
# Mod Properties
14-
version = 2.2.2+1.19.2
14+
version = 2.2.3+1.19.2
1515
maven_group = io.github.axolotlclient
1616
archives_base_name = AxolotlClient

src/main/java/io/github/axolotlclient/AxolotlClient.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.github.axolotlclient;
22

33
import com.mojang.blaze3d.systems.RenderSystem;
4+
import io.github.axolotlclient.AxolotlclientConfig.AxolotlClientConfigManager;
45
import io.github.axolotlclient.AxolotlclientConfig.DefaultConfigManager;
56
import io.github.axolotlclient.AxolotlclientConfig.options.BooleanOption;
67
import io.github.axolotlclient.AxolotlclientConfig.options.OptionCategory;
@@ -61,7 +62,7 @@ public class AxolotlClient implements ClientModInitializer {
6162
public static final BooleanOption someNiceBackground = new BooleanOption("defNoSecret", false);
6263
public static final List<AbstractModule> modules= new ArrayList<>();
6364

64-
public static Integer tickTime = 0;
65+
private static int tickTime = 0;
6566

6667
public static UnsupportedMod badmod;
6768
public static boolean titleDisclaimer = false;
@@ -82,8 +83,10 @@ public void onInitializeClient(ModContainer container) {
8283
badmod = new UnsupportedMod("Baritone", UnsupportedMod.UnsupportedReason.BAN_REASON);
8384
} else if (QuiltLoader.isModLoaded("xaerominimap")) {
8485
badmod = new UnsupportedMod("Xaero's Minimap", UnsupportedMod.UnsupportedReason.UNKNOWN_CONSEQUENSES);
85-
} else if (QuiltLoader.isModLoaded("essential-container")){
86-
badmod = new UnsupportedMod("Essential", UnsupportedMod.UnsupportedReason.MIGHT_CRASH, UnsupportedMod.UnsupportedReason.UNKNOWN_CONSEQUENSES);
86+
} else if (QuiltLoader.isModLoaded("essential-container")) {
87+
badmod = new UnsupportedMod("Essential", UnsupportedMod.UnsupportedReason.MIGHT_CRASH, UnsupportedMod.UnsupportedReason.UNKNOWN_CONSEQUENSES);
88+
} else if (QuiltLoader.isModLoaded("optifabric")) {
89+
badmod = new UnsupportedMod("OptiFine", UnsupportedMod.UnsupportedReason.MIGHT_CRASH, UnsupportedMod.UnsupportedReason.UNKNOWN_CONSEQUENSES);
8790
} else {
8891
showWarning = false;
8992
}
@@ -93,13 +96,16 @@ public void onInitializeClient(ModContainer container) {
9396

9497
getModules();
9598
addExternalModules();
99+
96100
CONFIG.init();
97101
modules.forEach(AbstractModule::init);
98102

99103
CONFIG.getConfig().addAll(CONFIG.getCategories());
100104
CONFIG.getConfig().add(config);
101105

102-
io.github.axolotlclient.AxolotlclientConfig.AxolotlClientConfigManager.registerConfig(modid, CONFIG, configManager = new DefaultConfigManager(modid, QuiltLoader.getConfigDir().resolve("AxolotlClient.json"), CONFIG.getConfig()));
106+
AxolotlClientConfigManager.registerConfig(modid, CONFIG, configManager = new DefaultConfigManager(modid, QuiltLoader.getConfigDir().resolve("AxolotlClient.json"), CONFIG.getConfig()));
107+
AxolotlClientConfigManager.addIgnoredName(modid, "x");
108+
AxolotlClientConfigManager.addIgnoredName(modid, "y");
103109

104110
modules.forEach(AbstractModule::lateInit);
105111

src/main/java/io/github/axolotlclient/config/screen/CreditsScreen.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void appendNarrations(NarrationMessageBuilder builder) {
231231

232232
@Override
233233
protected void renderList(MatrixStack matrices, int mouseX, int mouseY, float delta) {
234-
Util.applyScissor(new Rectangle(0, top, this.width, bottom - top));
234+
Util.applyScissor(0, top, this.width, bottom - top);
235235
super.renderList(matrices, mouseX, mouseY, delta);
236236
GL11.glDisable(GL11.GL_SCISSOR_TEST);
237237
}
@@ -345,8 +345,8 @@ public void init() {
345345
}
346346

347347
public void render(MatrixStack matrices) {
348-
DrawUtil.fillRect(matrices, new io.github.axolotlclient.modules.hud.util.Rectangle(x, y, width, height), io.github.axolotlclient.AxolotlclientConfig.Color.DARK_GRAY.withAlpha(127));
349-
DrawUtil.outlineRect(matrices, new Rectangle(x, y, width, height), io.github.axolotlclient.AxolotlclientConfig.Color.BLACK);
348+
DrawUtil.fillRect(matrices, x, y, width, height, io.github.axolotlclient.AxolotlclientConfig.Color.DARK_GRAY.withAlpha(127));
349+
DrawUtil.outlineRect(matrices, x, y, width, height, io.github.axolotlclient.AxolotlclientConfig.Color.BLACK.getAsInt());
350350

351351
DrawUtil.drawCenteredString(matrices, MinecraftClient.getInstance().textRenderer, credit.name, window.getScaledWidth() / 2, y + 7, -16784327, true);
352352

src/main/java/io/github/axolotlclient/modules/hud/gui/AbstractHudEntry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ public void setBounds(float scale) {
180180
if (trueHeight < client.getWindow().getScaledHeight() && scaledY + trueHeight > client.getWindow().getScaledHeight()) {
181181
scaledY = client.getWindow().getScaledHeight() - trueHeight;
182182
}
183-
truePosition = new DrawPosition(scaledX, scaledY);
183+
truePosition.x = scaledX;
184+
truePosition.y = scaledY;
184185
renderPosition = truePosition.divide(getScale());
185186
renderBounds = new Rectangle(renderPosition.x(), renderPosition.y(), getWidth(), getHeight());
186187
trueBounds = new Rectangle(scaledX, scaledY, (int) (getWidth() * getScale()), (int) (getHeight() * getScale()));

src/main/java/io/github/axolotlclient/modules/hud/gui/hud/vanilla/CrosshairHud.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ public void render(MatrixStack matrices, float delta) {
6868

6969
matrices.push();
7070
scale(matrices);
71-
DrawPosition pos = getPos().subtract(0, -1);
71+
72+
int x = getPos().x;
73+
int y = getPos().y + 1;
7274
Color color = getColor();
7375
AttackIndicator indicator = this.client.options.getAttackIndicator().get();
7476

@@ -87,12 +89,12 @@ public void render(MatrixStack matrices, float delta) {
8789
}
8890

8991
if (type.get().equals(Crosshair.DOT.toString())) {
90-
RenderUtil.fillBlend(matrices, pos.x() + (getWidth() / 2) - 2, pos.y() + (getHeight() / 2) - 2, 3, 3, color);
92+
RenderUtil.fillBlend(matrices, x + (getWidth() / 2) - 2, y + (getHeight() / 2) - 2, 3, 3, color);
9193
} else if (type.get().equals(Crosshair.CROSS.toString())) {
92-
RenderUtil.fillBlend(matrices,pos.x() + (getWidth() / 2) - 6, pos.y() + (getHeight() / 2) - 1, 6, 1, color);
93-
RenderUtil.fillBlend(matrices, pos.x() + (getWidth() / 2), pos.y() + (getHeight() / 2) - 1, 5, 1, color);
94-
RenderUtil.fillBlend(matrices, pos.x() + (getWidth() / 2) - 1, pos.y() + (getHeight() / 2) - 6, 1, 5, color);
95-
RenderUtil.fillBlend(matrices, pos.x() + (getWidth() / 2) - 1, pos.y() + (getHeight() / 2), 1, 5, color);
94+
RenderUtil.fillBlend(matrices, x + (getWidth() / 2) - 6, y + (getHeight() / 2) - 1, 6, 1, color);
95+
RenderUtil.fillBlend(matrices, x + (getWidth() / 2), y + (getHeight() / 2) - 1, 5, 1, color);
96+
RenderUtil.fillBlend(matrices, x + (getWidth() / 2) - 1, y + (getHeight() / 2) - 6, 1, 5, color);
97+
RenderUtil.fillBlend(matrices, x + (getWidth() / 2) - 1, y + (getHeight() / 2), 1, 5, color);
9698
} else if (type.get().equals(Crosshair.DIRECTION.toString())) {
9799
Camera camera = this.client.gameRenderer.getCamera();
98100
MatrixStack matrixStack = RenderSystem.getModelViewStack();
@@ -131,8 +133,8 @@ public void render(MatrixStack matrices, float delta) {
131133
targetingEntity &= this.client.targetedEntity.isAlive();
132134
}
133135

134-
int x = (int) ((client.getWindow().getScaledWidth() / getScale()) / 2 - 8);
135-
int y = (int) ((client.getWindow().getScaledHeight() / getScale()) / 2 - 7 + 16);
136+
x = (int) ((client.getWindow().getScaledWidth() / getScale()) / 2 - 8);
137+
y = (int) ((client.getWindow().getScaledHeight() / getScale()) / 2 - 7 + 16);
136138

137139
if (targetingEntity) {
138140
client.inGameHud.drawTexture(matrices, x, y, 68, 94, 16, 16);

src/main/java/io/github/axolotlclient/util/Util.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public static List<String> getSidebar() {
146146
return lines;
147147
}
148148

149-
public static void applyScissor(Rectangle scissor){
149+
public static void applyScissor(int x, int y, int width, int height){
150150
GL11.glEnable(GL11.GL_SCISSOR_TEST);
151151
Window window = MinecraftClient.getInstance().getWindow();
152152
double scale = window.getScaleFactor();
153-
GL11.glScissor((int) (scissor.x * scale), (int) ((window.getScaledHeight() - scissor.height - scissor.y) * scale), (int) (scissor.width * scale), (int) (scissor.height * scale));
153+
GL11.glScissor((int) (x * scale), (int) ((window.getScaledHeight() - height - y) * scale), (int) (width * scale), (int) (height * scale));
154154
}
155155

156156
public static double lerp(double start, double end, double percent) {

src/main/resources/assets/axolotlclient/lang/de_DE.json renamed to src/main/resources/assets/axolotlclient/lang/de_de.json

Lines changed: 69 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"config": "AxolotlClient Optionen",
44
"title_short": "Client Optionen",
55

6-
"sky_loading_text": "Lade Himmelstexturen aus Pack",
7-
"resource_loading_finished": "Laden beendet! Starte Minecraft...",
8-
96
"general": "Allgemein",
107
"general.tooltip": "Allgemeine Optionen",
118
"showActivity": "Zeige Aktivität",
@@ -39,8 +36,7 @@
3936
"blockOutlines": "Block Outlines",
4037
"outlineWidth": "Breite",
4138
"scrollableTooltips": "Scrollable Tooltips",
42-
"shiftHorizontalScroll": "Horizontales Scrollen (wenn Taste gedrückt)",
43-
"shiftHorizontalScroll.tooltip": "Ob horizontal gescrollt werden soll, <br>falls die Shift-Taste gedrückt ist.",
39+
"shiftHorizontalScroll": "Horizontales Scrollen (Shift)",
4440
"scrollAmount": "Scrollstufe",
4541
"scrollAmount.tooltip": "Wie viel der Tooltip beim scrollen verschoben wird.",
4642

@@ -124,7 +120,7 @@
124120
"arrowhud": "Arrow HUD",
125121
"itemupdatehud": "Item Update HUD",
126122
"packdisplayhud": "Pack Display HUD",
127-
"realtimehud": "Echtzeit HUD",
123+
"irltimehud": "Echtzeit HUD",
128124
"dynamic": "Dynamisch",
129125
"text": "Text",
130126
"bar": "Leiste",
@@ -154,7 +150,7 @@
154150
"scrollbarColor": "Scrollleistenfarbe",
155151
"lineSpacing": "Zeilenabstand",
156152
"timeout": "Timeout",
157-
"reachdisplayhud": "ReachDisplay HUD",
153+
"reachhud": "Reach HUD",
158154
"blocks": "Blöcke",
159155

160156
"toggleSprint": "Erlaube Sprint toggle",
@@ -167,18 +163,17 @@
167163

168164
"enabled": "Aktiviert",
169165
"scale": "Größe",
170-
"textColor": "Textfarbe",
166+
"textcolor": "Textfarbe",
171167
"color": "Farbe",
172-
"textChroma": "Textchroma",
173168
"chroma": "Chroma",
174169
"chromaSpeed": "Chromageschwindigkeit",
175170
"heldtextcolor": "Textfarbe (wenn gedrückt)",
176-
"bgColor": "Hintergrundfarbe",
171+
"bgcolor": "Hintergrundfarbe",
177172
"placeholder": "Platzhalter",
178173
"heldbackgroundcolor": "Hintergrundfarbe (wenn gedrückt)",
179174
"background": "Hintergrund",
180175
"outline": "Umrandung",
181-
"outlineColor": "Umrandungsfarbe",
176+
"outlinecolor": "Umrandungsfarbe",
182177
"shadow": "Schatten",
183178

184179
"rpc": "Discord RPC",
@@ -214,13 +209,12 @@
214209
"DOT": "Punkt",
215210
"CROSS": "Kreuz",
216211
"tnttime": "TntTime",
217-
"textAlignment": "Textausrichtung",
218212
"screenshotUtils": "Screenshot Utils",
219213
"copyAction": "[Kopieren]",
220214
"copy_image": "Dieses Bildschirmfoto kopieren",
221215
"headless_exception": "Bild konnte nicht kopiert werden, da die JVM im 'Headless'-Modus läuft.\n Bitte ändere das.",
222216
"deleteAction": "[Löschen]",
223-
"delete_action": "Dieses Bildschirmfoto löschen.",
217+
"delete_image": "Dieses Bildschirmfoto löschen.",
224218
"screenshot_deleted": "Bildschirmfoto <name> wurde erfolgreich gelöscht!",
225219
"lowShield": "Niedriges Schild",
226220
"lowShield.tooltip": "Reduziert die Höhe des Schild-Overlays während des Blockens.",
@@ -236,7 +230,6 @@
236230
"count.tooltip": "How much to increase the amount of particles spawned.<br>Only works on EmitterParticles <br>(all that spread out and consist of usually 16 single ones, <br>e.g. Crit Particles).",
237231
"key.freelook": "Freelook",
238232
"refreshTime": "Refresh Delay",
239-
"customtextcolor": "Custom Text Color",
240233
"format": "Format",
241234
"hotbarhud": "Hotbar HUD",
242235
"memoryhud": "Memory HUD",
@@ -247,13 +240,9 @@
247240
"showAllocated": "Alloziiertes RAM anzeigen",
248241
"playercounthud": "PlayerCount HUD",
249242
"players": "Spieler",
250-
"combocounterhud": "ComboCounter HUD",
251243
"combocounter.no_hits": "Keine Schläge",
252244
"combocounter.one_hit": "1 Schlag",
253245
"combocounter.hits": "%s Schläge",
254-
"center": "Zentriert",
255-
"left": "Links",
256-
"right": "Rechts",
257246
"showServerNameMode": "Beschreibungsmodus",
258247
"showIp": "Server IP zeigen",
259248
"showName": "Server Name zeigen",
@@ -264,5 +253,66 @@
264253
"THIRD_PERSON_BACK": "Dritte Person (Hinten)",
265254
"THIRD_PERSON_FRONT": "Dritte Person (Vorne)",
266255
"invert": "Umkehren",
267-
"external_modules": "Externe Module"
256+
"external_modules": "Externe Module",
257+
"mousemovement": "Mausbewegungen anzeigen",
258+
"heldoutlinecolor": "Umrandungsfarbe (Taste gedrückt)",
259+
"compasshud": "Compass HUD",
260+
"tpshud": "TPS HUD",
261+
"combohud": "Combo HUD",
262+
"playerhud": "Player HUD",
263+
"toppadding": "Top Padding",
264+
"iconsonly": "Nur Icons",
265+
"horizontal": "Nur Horizontal",
266+
"applyBlend": "Blend verwendedn",
267+
"overrideF3": "Auf dem Debug-Hud anzeigen",
268+
"enabled.tooltip": "Ob dieses Modul aktiviert ist.",
269+
"scale.tooltip": "Die Skalierung dieses Moduls.",
270+
"textcolor.tooltip": "Die Farbe für Text in diesem Element",
271+
"color.tooltip": "Die Farbe für dieses Element",
272+
"textChroma": "Text Chroma",
273+
"justification": "Justification",
274+
"CENTER": "Zentriert",
275+
"LEFT": "Links",
276+
"RIGHT": "Rechts",
277+
"anchorpoint": "Ankerpunkt",
278+
"TOP_LEFT": "Oben Links §b↖§d",
279+
"TOP_MIDDLE": "Oben Zentriert §b↑§d",
280+
"TOP_RIGHT": "Oben Rechts §b↗§d",
281+
"MIDDLE_LEFT": "Mittig Links §b←§d",
282+
"MIDDLE_MIDDLE": "Direct Zentriert §b•§d",
283+
"MIDDLE_RIGHT": "Mittig Rechts §b→§d",
284+
"BOTTOM_LEFT": "Unten Links §b↙§d",
285+
"BOTTOM_MIDDLE": "Untere Mitte §b↓§d",
286+
"BOTTOM_RIGHT": "Unten Rechts §b↘§d",
287+
"TOP_LEFT.tooltip": "Oben Links corner",
288+
"TOP_MIDDLE.tooltip": "Oben mittlerer Punkt",
289+
"TOP_RIGHT.tooltip": "Obere Rechte Ecke",
290+
"MIDDLE_LEFT.tooltip": "Mittlerer Punkt Links",
291+
"MIDDLE_MIDDLE.tooltip": "Die Exakte Mitte",
292+
"MIDDLE_RIGHT.tooltip": "Mittlerer Punkt Rechts",
293+
"BOTTOM_LEFT.tooltip": "Untere Linke Ecke",
294+
"BOTTOM_MIDDLE.tooltip": "Untere Mitte",
295+
"BOTTOM_RIGHT.tooltip": "Untere Rechte Ecke",
296+
"cardinalorder": "Kardinale Richtung",
297+
"TOP_DOWN": "Oben → Bottom",
298+
"DOWN_TOP": "Bottom → Oben",
299+
"LEFT_RIGHT": "Links → Rechts",
300+
"RIGHT_LEFT": "Rechts → Links",
301+
"width": "Breite",
302+
"minwidth": "Minimale Breite",
303+
"minimal": "Minimal",
304+
"timeshown": "Angezeigte Zeit",
305+
"customtextcolor": "Eigene Textfarbe",
306+
"dateformat": "Datumsformat",
307+
"showdegrees": "Grad anzeigen",
308+
"invert_direction": "Richtung umkehren",
309+
"lookingbox": "Lookingbox Farbe",
310+
"degreescolor": "Grad Farbe",
311+
"cardinalcolor": "Kardinalanzeiger Farbe",
312+
"semicardinalcolor": "Semi-Kardinalanzeiger Farbe",
313+
"majorindicator": "Indikatorfarbe (Major)",
314+
"minorindicator": "Indikatorfarbe (Minor)",
315+
"dynamicrotation": "Dynamische Rotation",
316+
"rotation": "Rotation"
317+
268318
}

src/main/resources/assets/axolotlclient/lang/en_us.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"scrollableTooltips": "Scrollable Tooltips",
5656
"shiftHorizontalScroll": "Scroll Horizontally (Shift)",
5757
"scrollAmount": "Scroll Amount",
58+
"scrollAmount.tooltip": "On scrolling, move the tooltip around this amount.",
5859
"inverse": "Inverse",
5960
"tnttime": "TntTime",
6061
"particles": "Particles",
@@ -308,13 +309,6 @@
308309
"other_people": "Other People",
309310
"external_modules": "External Modules",
310311

311-
"pickColor": "Pick Color",
312-
"currentColor": "Current",
313-
"alpha": "Alpha",
314-
"red": "Red",
315-
"green": "Green",
316-
"blue": "Blue",
317-
318312
"disableReason.crash": "This option has been disabled <br>because it would crash your game.",
319313
"disableReason.ban_reason": "This option is disabled <br>because it is known to be bannable on your current server.",
320314

0 commit comments

Comments
 (0)