From d047df0131e0b5757d0443061446ed2459822965 Mon Sep 17 00:00:00 2001 From: Asher Glick Date: Fri, 14 Jun 2024 21:46:11 -0500 Subject: [PATCH] maybe adding some ability to open the menu on load --- Settings.gd | 4 ++++ Spatial.gd | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Settings.gd b/Settings.gd index 663f6e2f..dfe528d0 100644 --- a/Settings.gd +++ b/Settings.gd @@ -15,6 +15,7 @@ var burrito_link_auto_launch_enabled: bool = false var burrito_link_wine_path: String = "" var burrito_link_env_args: String = "" +var start_with_open_menu: bool = false func _ready(): var file = File.new() @@ -42,6 +43,8 @@ func _ready(): self.burrito_link_wine_path = self._config_data["burrito_link_wine_path"] if "burrito_link_env_args" in self._config_data: self.burrito_link_env_args = self._config_data["burrito_link_env_args"] + if "start_with_open_menu" in self._config_data: + self.start_with_open_menu = self._config_data["start_with_open_menu"] func save(): @@ -54,6 +57,7 @@ func save(): "burrito_link_auto_launch_enabled": burrito_link_auto_launch_enabled, "burrito_link_wine_path": burrito_link_wine_path, "burrito_link_env_args": burrito_link_env_args, + "start_with_open_menu": start_with_open_menu } var file = File.new() diff --git a/Spatial.gd b/Spatial.gd index 321cdcc2..0006df49 100644 --- a/Spatial.gd +++ b/Spatial.gd @@ -85,6 +85,8 @@ func _ready(): if (Settings.burrito_link_auto_launch_enabled): launch_burrito_link() + if (Settings.start_with_open_menu): + _on_main_menu_toggle_pressed() ################################################################################ # show_error