first commit

This commit is contained in:
Ugric
2026-03-02 02:17:04 +00:00
commit 5d56860f3a
813 changed files with 41799 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
@tool
extends EditorFileDialog
func _init():
#access = EditorFileDialog.ACCESS_RESOURCES
file_mode = EditorFileDialog.FILE_MODE_OPEN_FILE
# TODO I actually want a dialog to load a texture, not specifically a PNG...
add_filter("*.png ; PNG files")
add_filter("*.jpg ; JPG files")
unresizable = false
access = EditorFileDialog.ACCESS_RESOURCES
close_requested.connect(call_deferred.bind("_on_close"))
func _on_close():
# Disconnect listeners automatically,
# so we can re-use the same dialog with different listeners
var cons = get_signal_connection_list("file_selected")
for con in cons:
file_selected.disconnect(con.callable)