You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
-Fixed EditorDirDialog, which was really old and needed to use EditorFileSystem
-Fixed refactoring tools to work with imported scenes (properly move .import files)
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#ifndef EDITOR_DIR_DIALOG_H
|
||||
#define EDITOR_DIR_DIALOG_H
|
||||
|
||||
#include "editor/editor_file_system.h"
|
||||
#include "os/dir_access.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/tree.h"
|
||||
@@ -42,12 +43,13 @@ class EditorDirDialog : public ConfirmationDialog {
|
||||
AcceptDialog *mkdirerr;
|
||||
|
||||
Button *makedir;
|
||||
Set<String> opened_paths;
|
||||
|
||||
Tree *tree;
|
||||
bool updating;
|
||||
|
||||
void _item_collapsed(Object *p_item);
|
||||
void _update_dir(TreeItem *p_item);
|
||||
void _update_dir(TreeItem *p_item, EditorFileSystemDirectory *p_dir, const String &p_select_path = String());
|
||||
|
||||
void _make_dir();
|
||||
void _make_dir_confirm();
|
||||
@@ -61,8 +63,7 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
void set_current_path(const String &p_path);
|
||||
void reload();
|
||||
void reload(const String &p_path = "");
|
||||
EditorDirDialog();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user