aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-09-11 21:08:52 +0200
committerGitHub <noreply@github.com>2022-09-11 15:08:52 -0400
commit158dfe128df8d95971b7d0db2bd5dfaf700818b3 (patch)
tree291992ea85b39f2cb94824c9aae1835a4d6fc17d /src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java
parent865e1eb14c4f3df17c6da530b3cd2fefd5037f7d (diff)
downloadOneConfig-158dfe128df8d95971b7d0db2bd5dfaf700818b3.tar.gz
OneConfig-158dfe128df8d95971b7d0db2bd5dfaf700818b3.tar.bz2
OneConfig-158dfe128df8d95971b7d0db2bd5dfaf700818b3.zip
fix: fix description bugs
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java b/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java
index ec1e4a1..4de3d49 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java
@@ -32,6 +32,7 @@ import cc.polyfrost.oneconfig.config.elements.BasicOption;
import cc.polyfrost.oneconfig.gui.elements.BasicButton;
import cc.polyfrost.oneconfig.renderer.RenderManager;
import cc.polyfrost.oneconfig.renderer.font.Fonts;
+import cc.polyfrost.oneconfig.renderer.scissor.ScissorManager;
import cc.polyfrost.oneconfig.utils.InputHandler;
import cc.polyfrost.oneconfig.utils.color.ColorPalette;
@@ -76,9 +77,12 @@ public class ModConfigPage extends Page {
for (OptionSubcategory subCategory : page.categories.get(selectedCategory).subcategories) {
optionY += subCategory.draw(vg, x + 30, optionY, inputHandler);
}
+ ScissorManager.save();
+ ScissorManager.clearScissors(vg);
for (OptionSubcategory subCategory : page.categories.get(selectedCategory).subcategories) {
subCategory.drawLast(vg, x + 30, inputHandler);
}
+ ScissorManager.restore(vg);
totalSize = optionY - y;
}