mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
add splashscreen for mobile-dev
This commit is contained in:
@@ -10,6 +10,7 @@ import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.Desktop;
|
||||
import java.awt.SplashScreen;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -89,6 +90,14 @@ public class Main {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeSplashScreen() {
|
||||
SplashScreen splash = SplashScreen.getSplashScreen();
|
||||
if (splash != null) {
|
||||
splash.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTablet() {
|
||||
return true; //treat desktop the same as a tablet
|
||||
|
||||
Reference in New Issue
Block a user