diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-07 17:08:16 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-07 17:08:16 +0200 |
commit | 293d7054e597ba1207456ce56c03d0a45d1ea004 (patch) | |
tree | bbaa368071b287bffdd1d38cddb314ab5beb6205 /src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java | |
parent | e6e408195e887e94eaf27e821de89ca560b020a8 (diff) | |
download | OneConfig-293d7054e597ba1207456ce56c03d0a45d1ea004.tar.gz OneConfig-293d7054e597ba1207456ce56c03d0a45d1ea004.tar.bz2 OneConfig-293d7054e597ba1207456ce56c03d0a45d1ea004.zip |
bunch of saving stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java | 6 |
1 files changed, 2 insertions, 4 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 fb9f40a..9e6d526 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ModCard.java @@ -38,6 +38,8 @@ public class ModCard extends BasicElement { toggled = active; this.disabled = disabled; this.favorite = favorite; + favoriteHitbox.setToggled(true); + toggled = active; } @Override @@ -76,10 +78,6 @@ public class ModCard extends BasicElement { if (clicked && favoriteHitbox.hovered) toggled = false; if (clicked && !isHoveredSecondary && active) toggled = true; if (!active & disabled) toggled = false; - //RenderManager.drawString(vg, "active=" + active, x + 150, y + 92, OneConfigConfig.WHITE, 10f, Fonts.INTER_MEDIUM); // debug stuff - //RenderManager.drawString(vg, "disabled=" + disabled, x + 150, y + 103, OneConfigConfig.WHITE, 10f, Fonts.INTER_MEDIUM); - //RenderManager.drawString(vg, "favorite=" + favorite, x + 150, y + 114, OneConfigConfig.WHITE, 10f, Fonts.INTER_MEDIUM); - active = toggled; NanoVG.nvgGlobalAlpha(vg, 1f); |