Added some important stuff again
This commit is contained in:
@@ -15,7 +15,7 @@ public class Module_FPS {
|
||||
private static LabelComponent fpsLabel;
|
||||
private static FlowLayout fpsContainer;
|
||||
static boolean toggle = true;
|
||||
private static boolean shown = false; // tracks current visible/built state
|
||||
private static boolean shown = false;
|
||||
|
||||
private static final Surface GLASS_PANEL = Surface.blur(5f, 15f)
|
||||
.and(Surface.flat(0x40FFFFFF));
|
||||
@@ -30,7 +30,6 @@ public class Module_FPS {
|
||||
fpsContainer.verticalAlignment(VerticalAlignment.CENTER);
|
||||
fpsContainer.horizontalAlignment(HorizontalAlignment.CENTER);
|
||||
fpsContainer.positioning(Positioning.absolute(10, 10));
|
||||
// start hidden; tick()/first update will populate it
|
||||
fpsContainer.padding(Insets.of(0));
|
||||
}
|
||||
return fpsContainer;
|
||||
@@ -41,7 +40,6 @@ public class Module_FPS {
|
||||
if (fpsContainer == null) return;
|
||||
|
||||
if (toggle && !shown) {
|
||||
// turning on: restore the panel chrome and label
|
||||
fpsContainer.surface(GLASS_PANEL);
|
||||
fpsContainer.padding(Insets.of(6));
|
||||
fpsContainer.child(fpsLabel);
|
||||
|
||||
Reference in New Issue
Block a user