diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java index b9eafe6..794aff4 100644 --- a/src/Launcher/Main.java +++ b/src/Launcher/Main.java @@ -69,6 +69,8 @@ public class Main extends Application { private PasswordField Password_minecraft; Node activeTab, settings_activeTab; private Label dialog_changer; + private CheckBox RAM_Default, Minimized_window_minecraft_launch, Close_window_minecraft_launch; + private Slider RAM_slider; Async stringUpdater; @@ -108,7 +110,6 @@ public class Main extends Application { dragBar = (Rectangle) root.lookup("#rectangle"); - Home_btn = (Button) root.lookup("#Home-btn"); Modpack_btn = (Button) root.lookup("#Modpacks-btn"); Settings_btn = (Button) root.lookup("#Settings-btn"); @@ -233,6 +234,16 @@ public class Main extends Application { }); }); }); + + Node Minecraft_settings = Tabs.load("settings_minecraft"); + + RAM_Default = (CheckBox) Minecraft_settings.lookup("#RAM-Default"); + RAM_slider = (Slider) Minecraft_settings.lookup("#RAM-slider"); + + + // Default States for the General Settings + RAM_slider.setDisable(true); + RAM_Default.setSelected(true); } }); diff --git a/src/assets/layout/settings_generic.fxml b/src/assets/layout/settings_generic.fxml index 03d1e37..06611ef 100644 --- a/src/assets/layout/settings_generic.fxml +++ b/src/assets/layout/settings_generic.fxml @@ -31,12 +31,12 @@ - + - + diff --git a/src/assets/layout/settings_minecraft.fxml b/src/assets/layout/settings_minecraft.fxml index e1c4aee..12c5026 100644 --- a/src/assets/layout/settings_minecraft.fxml +++ b/src/assets/layout/settings_minecraft.fxml @@ -20,13 +20,13 @@