added coords

This commit is contained in:
2026-07-11 14:58:57 +02:00
parent 476925c31b
commit a2d8780238
6 changed files with 191 additions and 9 deletions
@@ -15,11 +15,23 @@ public class Module_FPS {
private static LabelComponent fpsLabel;
public static FlowLayout fpsContainer;
static boolean toggle = true;
private static boolean shown = false;
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;
public static boolean isEnabled() {
return toggle;
}
public static void setEnabled(boolean value) {
toggle = value;
CONFIG.fpsEnabled = value;
CONFIG.save();
}
private static final Surface GLASS_PANEL = Surface.blur(5f, 15f)
.and(Surface.flat(0x40FFFFFF));