Fixed main window resizing.
This commit is contained in:
parent
dd99292c65
commit
d71d8ed789
@ -384,9 +384,9 @@ public class Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if creamapi version of dll is there, if not, rename original to steam_api(64)_o.dll and copy
|
* Check if CreamAPI version of DLL is there, if not, rename original to steam_api(64)_o.dll and copy
|
||||||
* creamapi dll to the path. also looks for alternative steam dll (which means it patches both 64 and 32 bit
|
* CreamAPI DLL to the path. Also looks for alternative Steam DLL (which means it patches both 64 and 32 bit
|
||||||
* dlls at once if found)
|
* DLLs at once if found)
|
||||||
*
|
*
|
||||||
* @throws IOException If file is missing or not accessible/modifiable.
|
* @throws IOException If file is missing or not accessible/modifiable.
|
||||||
*/
|
*/
|
||||||
|
@ -21,13 +21,18 @@ import javafx.stage.Stage;
|
|||||||
|
|
||||||
public class Main extends Application {
|
public class Main extends Application {
|
||||||
|
|
||||||
|
private static final int MIN_WIDTH = 905;
|
||||||
|
private static final int MIN_HEIGHT = 400;
|
||||||
|
private static final int PREF_WIDTH = 1200;
|
||||||
|
private static final int PREF_HEIGHT = 600;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception {
|
public void start(Stage primaryStage) throws Exception {
|
||||||
Parent root = FXMLLoader.load(ClassLoader.getSystemResource("mainWindow.fxml"));
|
Parent root = FXMLLoader.load(ClassLoader.getSystemResource("mainWindow.fxml"));
|
||||||
primaryStage.setTitle("Auto CreamAPI");
|
primaryStage.setTitle("Auto CreamAPI");
|
||||||
primaryStage.setMinWidth(655 + 25);
|
primaryStage.setMinWidth(MIN_WIDTH + 25);
|
||||||
primaryStage.setMinHeight(400 + 50);
|
primaryStage.setMinHeight(MIN_HEIGHT + 50);
|
||||||
primaryStage.setScene(new Scene(root, 1200, 600));
|
primaryStage.setScene(new Scene(root, PREF_WIDTH, PREF_HEIGHT));
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user