aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-12 12:21:40 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-12 12:21:40 +0200
commit300aee00a746b1eb495c9c9e35934474c8e60e37 (patch)
tree0c16f8010dce9578764d34dc0d520332c034c9f7 /src
parentcf8b1a7f962ad3a9c31e6698fb7caf82aac42a18 (diff)
downloadOneConfig-300aee00a746b1eb495c9c9e35934474c8e60e37.tar.gz
OneConfig-300aee00a746b1eb495c9c9e35934474c8e60e37.tar.bz2
OneConfig-300aee00a746b1eb495c9c9e35934474c8e60e37.zip
add extra scissor to modcard text rendering
Diffstat (limited to 'src')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java
index ac12f07..221b1df 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java
@@ -62,6 +62,7 @@ public class ModCard extends BasicElement {
}
favoriteButton.draw(vg, x + 212, y + 87);
favorite = favoriteButton.isToggled();
+ Scissor scissor2 = ScissorManager.scissor(vg, x, y + 87, width - 32, 32);
RenderManager.drawText(vg, cleanName, x + 12, y + 103, ColorUtils.setAlpha(Colors.WHITE, (int) (colorToggle.getAlpha() * 255)), 14f, Fonts.MEDIUM);
if (favorite) favoriteButton.setLeftIcon(SVGs.HEART_FILL);
else favoriteButton.setLeftIcon(SVGs.HEART_OUTLINE);