gui.gd 394 B

1234567891011
  1. extends VBoxContainer
  2. func _ready():
  3. # Don't allow loading files that don't exist yet.
  4. ($SaveLoad/LoadConfigFile as Button).disabled = not FileAccess.file_exists("user://save_config_file.ini")
  5. ($SaveLoad/LoadJSON as Button).disabled = not FileAccess.file_exists("user://save_json.json")
  6. func _on_open_user_data_folder_pressed():
  7. OS.shell_open(ProjectSettings.globalize_path("user://"))