Hi! I am developing a program with Godot and am wondering how you coded the drag-to-open system. I also noticed you can directly open .pxo files with it, and am wondering about that.
Hello! For the drag-to-open system, all you need to do is connect the `files_dropped` signal from SceneTree, and load the files from the PoolStringArray argument, which has the paths of the files you dropped. https://docs.godotengine.org/en/stable/classes/class_scenetree.html
To directly open files, you can use `OS.get_cmdline_args()`, which also returns a PoolStringAray. https://docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-get...
You can call `get_tree()` from any node, and it will return the SceneTree https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method...
You can see Pixelorama's source code on GitHub. This, specifically, can be found in OpenSave.gd, in the handle_loading_files() method. https://github.com/Orama-Interactive/Pixelorama/blob/master/src/Autoload/OpenSav...