From 76ee39cf32cb514469900e74eb9cd0cb4063ddbb Mon Sep 17 00:00:00 2001 From: MachieCodes Date: Fri, 3 Jan 2025 09:32:22 -0600 Subject: [PATCH] Finish Outlines --- .../systems/hud/elements/ActiveModulesHud.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/ActiveModulesHud.java b/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/ActiveModulesHud.java index 34c2ea4a6c..9ce14b5f1c 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/ActiveModulesHud.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/ActiveModulesHud.java @@ -292,14 +292,6 @@ private void renderModule(HudRenderer renderer, int index, double x, double y) { renderer.quad(x - 2 - outlineWidth.get(), lineStartY, textLength + 4 + 2 * outlineWidth.get(), outlineWidth.get(), prevColor, prevColor, color, color); - } - - if (index == modules.size() - 1) { // Render bottom quad for last item in list - lineHeight += 2; - - renderer.quad(x - 2 - outlineWidth.get(), lineStartY + lineHeight, - textLength + 4 + 2 * outlineWidth.get(), outlineWidth.get(), - prevColor, prevColor, color, color); } else { // Otherwise render the inbetween quads that connect each side quad renderer.quad(Math.min(prevX, x) - 2 - outlineWidth.get(), Math.max(prevX, x) == x ? y : y - outlineWidth.get(), (Math.max(prevX, x) - 2) - (Math.min(prevX, x) - 2 - outlineWidth.get()), outlineWidth.get(), @@ -310,6 +302,14 @@ private void renderModule(HudRenderer renderer, int index, double x, double y) { prevColor, prevColor, color, color); // Right inbetween quad } + if (index == modules.size() - 1) { // Render bottom quad for last item in list + lineHeight += 2; + + renderer.quad(x - 2 - outlineWidth.get(), lineStartY + lineHeight, + textLength + 4 + 2 * outlineWidth.get(), outlineWidth.get(), + prevColor, prevColor, color, color); + } + // Left side quad renderer.quad(x - 2 - outlineWidth.get(), lineStartY, outlineWidth.get(), lineHeight, prevColor, prevColor, color, color);