added coords
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user