mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 19:55:10 +01:00
Architectury port, EMI compat
This commit is contained in:
28
common/src/main/java/eu/midnightdust/blur/BlurInfo.java
Normal file
28
common/src/main/java/eu/midnightdust/blur/BlurInfo.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package eu.midnightdust.blur;
|
||||
|
||||
public class BlurInfo {
|
||||
public static long start;
|
||||
public static float progress;
|
||||
|
||||
public static boolean prevScreenHasBlur;
|
||||
public static boolean screenHasBlur;
|
||||
|
||||
public static boolean prevScreenHasBackground;
|
||||
public static boolean screenHasBackground;
|
||||
|
||||
public static boolean doTest = true;
|
||||
public static boolean screenChanged = true;
|
||||
public static long lastScreenChange = System.currentTimeMillis();
|
||||
|
||||
public static void reset() {
|
||||
// Here, we reset all tests, to check if the new screen has blur and/or a background
|
||||
prevScreenHasBlur = screenHasBlur;
|
||||
prevScreenHasBackground = screenHasBackground;
|
||||
screenHasBlur = false;
|
||||
screenHasBackground = false;
|
||||
doTest = true;
|
||||
screenChanged = true;
|
||||
start = -1;
|
||||
lastScreenChange = System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user