diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java index a1bb5cc..79e04ff 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java @@ -5,7 +5,6 @@ import io.polyfrost.oneconfig.config.data.OptionPage; import io.polyfrost.oneconfig.config.interfaces.BasicOption; import io.polyfrost.oneconfig.lwjgl.RenderManager; import io.polyfrost.oneconfig.lwjgl.font.Fonts; -import org.lwjgl.nanovg.NanoVG; public class ModConfigPage extends Page { private final OptionPage page; @@ -22,10 +21,7 @@ public class ModConfigPage extends Page { int optionX = x + 30; int optionY = y + (page.categories.size() == 1 ? 32 : 72); for (String subCategory : page.categories.get(selectedCategory).keySet()) { - RenderManager.drawString(vg, subCategory, x + 18, optionY, OneConfigConfig.WHITE, 24f, Fonts.INTER_MEDIUM); - optionY += 26; - - int backgroundSize = 32; + int backgroundSize = 48; for (int i = 0; i < page.categories.get(selectedCategory).get(subCategory).size(); i++) { BasicOption option = page.categories.get(selectedCategory).get(subCategory).get(i); if (i + 1 < page.categories.get(selectedCategory).get(subCategory).size()) { @@ -38,9 +34,11 @@ public class ModConfigPage extends Page { } backgroundSize += option.getHeight() + 16; } - RenderManager.drawRoundedRect(vg, x + 14, optionY, 1024, backgroundSize - 16, OneConfigConfig.GRAY_900, 20); + RenderManager.drawRoundedRect(vg, x + 14, optionY, 1024, backgroundSize, OneConfigConfig.GRAY_900, 20); optionY += 16; + RenderManager.drawString(vg, subCategory, x + 18, optionY, OneConfigConfig.WHITE, 24f, Fonts.INTER_MEDIUM); + optionY += 48; for (int i = 0; i < page.categories.get(selectedCategory).get(subCategory).size(); i++) { BasicOption option = page.categories.get(selectedCategory).get(subCategory).get(i); option.draw(vg, optionX, optionY); |