diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-10 19:34:08 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-10 19:34:08 +0200 |
commit | 3872c0ae8746e69671ac9b44ff94dc3c7b194817 (patch) | |
tree | abcf52f26ff1052ca00ec84515cf579ded014c51 /src/main | |
parent | 6fdef44be55116bff1eadfd2c7896808ac782dc1 (diff) | |
download | OneConfig-3872c0ae8746e69671ac9b44ff94dc3c7b194817.tar.gz OneConfig-3872c0ae8746e69671ac9b44ff94dc3c7b194817.tar.bz2 OneConfig-3872c0ae8746e69671ac9b44ff94dc3c7b194817.zip |
remove useless moon comments
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java index 663092e..04b94f3 100644 --- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java +++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java @@ -74,7 +74,7 @@ public final class RenderManager { } } -// Can be removed or atleast marked out since it is no longer used - MoonTidez + // Can be removed or atleast marked out since it is no longer used - MoonTidez public static void drawGradientRoundedRect(long vg, float x, float y, float width, float height, int color, int color2, float radius) { NVGPaint bg = NVGPaint.create(); nvgBeginPath(vg); @@ -88,34 +88,30 @@ public final class RenderManager { } public static void drawHSBBox(long vg, float x, float y, float width, float height, int colorTarget) { - drawRoundedRect(vg, x, y, width, height, colorTarget, 8f); NVGPaint bg = NVGPaint.create(); nvgBeginPath(vg); nvgRoundedRect(vg, x, y, width, height, 8f); NVGColor nvgColor = color(vg, OneConfigConfig.WHITE); // Do not use OneConfigConfig colors for this, use rgba code - MoonTidez - NVGColor nvgColor2 = color(vg, OneConfigConfig.TRANSPARENT_25); // Why is this Transparent_25?? - MoonTidez + NVGColor nvgColor2 = color(vg, OneConfigConfig.TRANSPARENT_25); nvgFillPaint(vg, nvgLinearGradient(vg, x, y, x + width, y, nvgColor, nvgColor2, bg)); nvgFill(vg); - nvgColor.free(); // Can you please give these proper color names :wahh: so unprofeshunal smh - MoonTidez + nvgColor.free(); nvgColor2.free(); NVGPaint bg2 = NVGPaint.create(); nvgBeginPath(vg); nvgRoundedRect(vg, x, y, width, height, 8f); - NVGColor nvgColor3 = color(vg, OneConfigConfig.TRANSPARENT_25); // Why is this Transparent_25?? [v2] - MoonTidez + NVGColor nvgColor3 = color(vg, OneConfigConfig.TRANSPARENT_25); NVGColor nvgColor4 = color(vg, OneConfigConfig.BLACK); // Do not use OneConfigConfig colors for this, use rgba code - MoonTidez nvgFillPaint(vg, nvgLinearGradient(vg, x, y, x, y + height, nvgColor3, nvgColor4, bg2)); nvgFill(vg); - nvgColor3.free(); // Can you please give these proper color names :wahh: so unprofeshunal smh [v2] - MoonTidez - nvgColor4.free(); - - //drawHollowRoundRect(vg, x - 0.5f, y - 0.5f, width, height, new Color(77,77,77,255).getRGB(), 8f, 1f); - + nvgColor3.free(); + nvgColor4.free(); } -// Can be removed or atleast marked out since it is no longer used - MoonTidez + /* public static void drawGradientRect(long vg, float x, float y, float width, float height, int color, int color2) { NVGPaint bg = NVGPaint.create(); nvgBeginPath(vg); @@ -128,8 +124,8 @@ public final class RenderManager { nvgColor.free(); nvgColor2.free(); } + */ -// I stopped reviewing code here, I'll review the rest later - MoonTidez public static void drawRect(long vg, float x, float y, float width, float height, int color) { nvgBeginPath(vg); nvgRect(vg, x, y, width, height); |