mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
cleanup
- todo figure out android...
This commit is contained in:
@@ -35,16 +35,8 @@ public class Main {
|
|||||||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||||
config.setResizable(false);
|
config.setResizable(false);
|
||||||
|
|
||||||
try {
|
//todo icon config && fullscreen mode
|
||||||
//todo figuure out fullscreen mode...
|
config.setWindowedMode(1280, 720);
|
||||||
if (Config.instance().getSettingData().fullScreen) {
|
|
||||||
config.setFullscreenMode(Lwjgl3ApplicationConfiguration.getDisplayMode());
|
|
||||||
} else {
|
|
||||||
config.setWindowedMode(Config.instance().getSettingData().width, Config.instance().getSettingData().height);
|
|
||||||
}
|
|
||||||
} catch (Exception e) {}
|
|
||||||
|
|
||||||
config.setWindowIcon(Config.instance().getFilePath("forge-adventure.png"));
|
|
||||||
|
|
||||||
new Lwjgl3Application(Forge.getApp(new Lwjgl3Clipboard(), new DesktopAdapter(""), Files.exists(Paths.get("./res"))?"./":"../forge-gui/", true, false, 0, true, 0, "", "", true), config);
|
new Lwjgl3Application(Forge.getApp(new Lwjgl3Clipboard(), new DesktopAdapter(""), Files.exists(Paths.get("./res"))?"./":"../forge-gui/", true, false, 0, true, 0, "", "", true), config);
|
||||||
|
|
||||||
|
|||||||
@@ -278,8 +278,10 @@ public class Forge implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
public static void openAdventure() {
|
public static void openAdventure() {
|
||||||
startContinuousRendering();
|
startContinuousRendering();
|
||||||
final LoadingOverlay loader = new LoadingOverlay("Loading Adventure");
|
if (!isDesktopAdventureMode) {
|
||||||
loader.show();
|
final LoadingOverlay loader = new LoadingOverlay("Loading Adventure");
|
||||||
|
loader.show();
|
||||||
|
}
|
||||||
GuiBase.setIsAdventureMode(true);
|
GuiBase.setIsAdventureMode(true);
|
||||||
FThreads.invokeInBackgroundThread(new Runnable() {
|
FThreads.invokeInBackgroundThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user