Add EditorInterface.get_selected_paths()

Exposes the selected paths in the editor filesystem dock.
Implements this proposal : https://github.com/godotengine/godot-proposals/issues/2424

Also renamed the old `get_selected_path` to `get_selected_directory` to
better match the already existing get_current_path function.
This commit is contained in:
cespeute
2022-05-10 22:25:36 +02:00
committed by Valden
parent 315c64282b
commit 4b00c2ec57
7 changed files with 36 additions and 17 deletions

View File

@@ -94,8 +94,9 @@ public:
EditorCommandPalette *get_command_palette() const;
void select_file(const String &p_file);
String get_selected_path() const;
Vector<String> get_selected_paths() const;
String get_current_path() const;
String get_current_directory() const;
void inspect_object(Object *p_obj, const String &p_for_property = String(), bool p_inspector_only = false);