1
0
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:
Juan Linietsky
2017-09-03 00:22:54 -03:00
parent 53e7f55a89
commit ce28452109
4 changed files with 57 additions and 91 deletions

View File

@@ -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();
};