mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
14 lines
486 B
GDScript3
14 lines
486 B
GDScript3
|
extends VBoxContainer
|
||
|
|
||
|
|
||
|
func _ready():
|
||
|
var file = File.new()
|
||
|
# Don't allow loading files that don't exist yet.
|
||
|
$SaveLoad/LoadConfigFile.disabled = not file.file_exists(ProjectSettings.globalize_path("user://save_config_file.ini"))
|
||
|
$SaveLoad/LoadJSON.disabled = not file.file_exists(ProjectSettings.globalize_path("user://save_json.json"))
|
||
|
|
||
|
|
||
|
func _on_open_user_data_folder_pressed():
|
||
|
# warning-ignore:return_value_discarded
|
||
|
OS.shell_open(ProjectSettings.globalize_path("user://"))
|