31 lines
970 B
Java
31 lines
970 B
Java
package it.polimi.ingsw.gc14;
|
|
|
|
import it.polimi.ingsw.gc14.Controller.ClientController;
|
|
import it.polimi.ingsw.gc14.View.GUI.GUI;
|
|
import javafx.application.Application;
|
|
import javafx.stage.Stage;
|
|
|
|
/** Entry point for launching the game client with the JavaFX GUI. */
|
|
public class ClientLauncherGUI {
|
|
|
|
/**
|
|
* Launches the GUI application.
|
|
*
|
|
* @param args command-line arguments passed to the JavaFX runtime.
|
|
*/
|
|
public static void main(String[] args) {
|
|
System.setProperty("glass.gtk.uiScale", "1.0");
|
|
System.setProperty("glass.win.uiScale", "1.0");
|
|
Application.launch(GUIApp.class, args);
|
|
}
|
|
|
|
public static class GUIApp extends Application {
|
|
@Override
|
|
public void start(Stage stage) throws Exception {
|
|
GUI view = new GUI();
|
|
ClientController controller = new ClientController(view);
|
|
view.setController(controller);
|
|
view.start(stage);
|
|
}
|
|
}
|
|
} |