This commit is contained in:
Patrick
2026-07-11 20:30:17 +02:00
parent 608760dc09
commit ab8797dd76
13 changed files with 20 additions and 113 deletions
@@ -22,7 +22,6 @@ public class Module_Coords {
private static final Config CONFIG = Config.get();
// Loaded from Config instead of hardcoded, so the toggle survives a restart.
static boolean toggle = CONFIG.coordsEnabled;
private static boolean shown = false;
@@ -18,7 +18,6 @@ public class Module_FPS {
private static final Config CONFIG = Config.get();
// Loaded from Config instead of hardcoded, so the toggle survives a restart.
static boolean toggle = CONFIG.fpsEnabled;
private static boolean shown = false;
@@ -23,11 +23,10 @@ public class Module_KeyStrokes {
private static FlowLayout bottomRow;
private static FlowLayout wBox, aBox, sBox, dBox;
private static ScalableLabel wLabel, aLabel, sLabel, dLabel; // was LabelComponent
private static ScalableLabel wLabel, aLabel, sLabel, dLabel;
private static final Config CONFIG = Config.get();
// Loaded from Config instead of hardcoded, so the toggle survives a restart.
static boolean toggle = CONFIG.keyEnabled;
private static boolean shown = false;
@@ -48,7 +47,7 @@ public class Module_KeyStrokes {
private static final Surface GLASS_PANEL = Surface.blur(5f, 15f)
.and(Surface.flat(0x40FFFFFF));
private static int keySize = 16; // was: private static final int KEY_SIZE = 16;
private static int keySize = 16;
private static FlowLayout leftSpacer, rightSpacer;
private static final int PRESSED_COLOR = 0x70FFFFFF;
private static final int IDLE_COLOR = 0x40FFFFFF;
@@ -118,7 +117,7 @@ public class Module_KeyStrokes {
}
private static float labelScaleFor(int size) {
return size / 16f; // 16px box = 1.0x scale (matches the default keySize)
return size / 16f;
}
public static void setKeySize(int size) {
@@ -144,8 +143,7 @@ public class Module_KeyStrokes {
if (keyContainer == null) return;
if (toggle && !shown) {
keyContainer.clearChildren(); // <-- safety net against duplicate adds
// keyContainer.surface(GLASS_PANEL);
keyContainer.clearChildren();
keyContainer.padding(Insets.of(4));
keyContainer.child(topRow);
keyContainer.child(bottomRow);
@@ -1,23 +0,0 @@
package de.fullrisk.citrusDev.UI;
import io.wispforest.owo.ui.base.BaseOwoScreen;
import io.wispforest.owo.ui.component.UIComponents;
import io.wispforest.owo.ui.container.FlowLayout;
import io.wispforest.owo.ui.container.UIContainers;
import io.wispforest.owo.ui.core.HorizontalAlignment;
import io.wispforest.owo.ui.core.OwoUIAdapter;
import io.wispforest.owo.ui.core.VerticalAlignment;
import net.minecraft.network.chat.Component;
import io.wispforest.owo.ui.core.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.sounds.SimpleSoundInstance;
import net.minecraft.network.chat.FontDescription;
import net.minecraft.resources.Identifier;
import net.minecraft.sounds.SoundEvents;
import de.fullrisk.citrusDev.UIHelper.ScalableLabel;
import de.fullrisk.citrusDev.UIHelper.ScalableButton;
import de.fullrisk.citrusDev.UIHelper.ScaleValue;
public class OverviewScreen{
}
@@ -18,7 +18,6 @@ public class QuestsPanel {
private static final int ACCENT = 0x64de4b;
// holds the currently open panel's Handle (if any) so tick() can refresh it
private static Handle activeHandle;
private static int tickCounter = 0;
@@ -43,8 +42,6 @@ public class QuestsPanel {
this.barWidth = barWidth;
this.quests = quests;
// seed with whatever's already unlocked on open, so we don't spam
// toasts for quests the player unlocked before opening this screen
for (QuestData quest : quests) {
if (quest.isUnlocked()) {
notifiedTitles.add(quest.title());