diff options
author | MoonTidez <79183852+MoonTidez@users.noreply.github.com> | 2022-05-10 21:26:03 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 21:26:03 +0400 |
commit | 6fdef44be55116bff1eadfd2c7896808ac782dc1 (patch) | |
tree | fbc6df4a6dd6f0cd26224b18e0430af5709d439d | |
parent | c920e2c93970e0df1dc863afc70741ade6b3cec4 (diff) | |
download | OneConfig-6fdef44be55116bff1eadfd2c7896808ac782dc1.tar.gz OneConfig-6fdef44be55116bff1eadfd2c7896808ac782dc1.tar.bz2 OneConfig-6fdef44be55116bff1eadfd2c7896808ac782dc1.zip |
Added a few notes to an extent on naming etc
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java index 979acde..663092e 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 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); @@ -94,27 +94,28 @@ public final class RenderManager { NVGPaint bg = NVGPaint.create(); nvgBeginPath(vg); nvgRoundedRect(vg, x, y, width, height, 8f); - NVGColor nvgColor = color(vg, OneConfigConfig.WHITE); - NVGColor nvgColor2 = color(vg, OneConfigConfig.TRANSPARENT_25); + 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 nvgFillPaint(vg, nvgLinearGradient(vg, x, y, x + width, y, nvgColor, nvgColor2, bg)); nvgFill(vg); - nvgColor.free(); + nvgColor.free(); // Can you please give these proper color names :wahh: so unprofeshunal smh - MoonTidez nvgColor2.free(); NVGPaint bg2 = NVGPaint.create(); nvgBeginPath(vg); nvgRoundedRect(vg, x, y, width, height, 8f); - NVGColor nvgColor3 = color(vg, OneConfigConfig.TRANSPARENT_25); - NVGColor nvgColor4 = color(vg, OneConfigConfig.BLACK); + NVGColor nvgColor3 = color(vg, OneConfigConfig.TRANSPARENT_25); // Why is this Transparent_25?? [v2] - MoonTidez + 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(); - nvgColor4.free(); + 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); } +// 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,6 +129,7 @@ public final class RenderManager { 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); |