From 158dfe128df8d95971b7d0db2bd5dfaf700818b3 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 11 Sep 2022 21:08:52 +0200 Subject: fix: fix description bugs --- src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages/ModConfigPage.java') 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; } -- cgit