diff options
| author | dam <dam@gudinoff> | 2022-02-03 01:08:58 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-02-03 01:08:58 +0000 |
| commit | 5fefdacf1e69f68b3768f419e3bed826eac79865 (patch) | |
| tree | 572d0aa7f051688baa33ae83267d1e403cdafedf /menu/menu.gd | |
| parent | b35d5de65158ee015a8332f8fd614e2ee5cacf6e (diff) | |
| download | surgery-log-5fefdacf1e69f68b3768f419e3bed826eac79865.tar.zst surgery-log-5fefdacf1e69f68b3768f419e3bed826eac79865.zip | |
Implement option sets load/store import/export functions. Setup option set buttons on stage screen.
Diffstat (limited to 'menu/menu.gd')
| -rw-r--r-- | menu/menu.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/menu/menu.gd b/menu/menu.gd index 9b7f99f..639a99b 100644 --- a/menu/menu.gd +++ b/menu/menu.gd @@ -41,6 +41,7 @@ func _menu_import_option_sets_action(): file_picker.window_title = "IMPORT OPTION SETS" file_picker.mode = FileDialog.MODE_OPEN_FILE file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS) + file_picker.filters[0] = "*.json" file_picker.connect("file_selected", stage, "load_option_sets", [], CONNECT_ONESHOT) file_picker.show_modal(true) file_picker.invalidate() @@ -50,6 +51,7 @@ func _menu_export_option_sets_action(): file_picker.window_title = "EXPORT OPTION SETS" file_picker.mode = FileDialog.MODE_SAVE_FILE file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS) + file_picker.filters[0] = "*.json" file_picker.connect("file_selected", stage, "store_option_sets", [], CONNECT_ONESHOT) file_picker.show_modal(true) file_picker.invalidate() @@ -66,6 +68,7 @@ func _menu_export_data_action(): file_picker.window_title = "EXPORT DATA" file_picker.mode = FileDialog.MODE_SAVE_FILE file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS) + file_picker.filters[0] = "*.csv" file_picker.connect("file_selected", database, "store_database", [], CONNECT_ONESHOT) file_picker.show_modal(true) file_picker.invalidate() |
