Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
commit
3ecc9e07b7
@ -46,6 +46,11 @@ VBoxContainer *FileDialog::get_vbox() {
|
||||
}
|
||||
|
||||
void FileDialog::_notification(int p_what) {
|
||||
|
||||
if (p_what==NOTIFICATION_ENTER_TREE) {
|
||||
|
||||
refresh->set_icon(get_icon("Reload","EditorIcons"));
|
||||
}
|
||||
|
||||
if (p_what==NOTIFICATION_DRAW) {
|
||||
|
||||
@ -700,6 +705,10 @@ FileDialog::FileDialog() {
|
||||
pathhb->add_child(dir);
|
||||
dir->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
refresh = memnew( ToolButton );
|
||||
refresh->connect("pressed",this,"_update_file_list");
|
||||
pathhb->add_child(refresh);
|
||||
|
||||
drives = memnew( OptionButton );
|
||||
pathhb->add_child(drives);
|
||||
drives->connect("item_selected",this,"_select_drive");
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "scene/gui/line_edit.h"
|
||||
#include "scene/gui/option_button.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/tool_button.h"
|
||||
#include "os/dir_access.h"
|
||||
#include "box_container.h"
|
||||
/**
|
||||
@ -86,6 +87,8 @@ private:
|
||||
OptionButton *filter;
|
||||
DirAccess *dir_access;
|
||||
ConfirmationDialog *confirm_save;
|
||||
|
||||
ToolButton *refresh;
|
||||
|
||||
Vector<String> filters;
|
||||
|
||||
|
@ -27,6 +27,7 @@ void EditorFileDialog::_notification(int p_what) {
|
||||
dir_prev->set_icon(get_icon("ArrowLeft","EditorIcons"));
|
||||
dir_next->set_icon(get_icon("ArrowRight","EditorIcons"));
|
||||
dir_up->set_icon(get_icon("ArrowUp","EditorIcons"));
|
||||
refresh->set_icon(get_icon("Reload","EditorIcons"));
|
||||
favorite->set_icon(get_icon("Favorites","EditorIcons"));
|
||||
|
||||
fav_up->set_icon(get_icon("MoveUp","EditorIcons"));
|
||||
@ -1170,6 +1171,10 @@ EditorFileDialog::EditorFileDialog() {
|
||||
pathhb->add_child(dir);
|
||||
dir->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
refresh = memnew( ToolButton );
|
||||
refresh->connect("pressed",this,"_update_file_list");
|
||||
pathhb->add_child(refresh);
|
||||
|
||||
favorite = memnew( ToolButton );
|
||||
favorite->set_toggle_mode(true);
|
||||
favorite->connect("toggled",this,"_favorite_toggled");
|
||||
|
@ -108,6 +108,7 @@ private:
|
||||
ToolButton *mode_list;
|
||||
|
||||
|
||||
ToolButton *refresh;
|
||||
ToolButton *favorite;
|
||||
|
||||
ToolButton *fav_up;
|
||||
|
@ -2042,7 +2042,7 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
|
||||
return;
|
||||
};
|
||||
// fallthrough to save_as
|
||||
} break;
|
||||
};
|
||||
case FILE_SAVE_AS_SCENE: {
|
||||
|
||||
Node *scene = editor_data.get_edited_scene_root();
|
||||
|
@ -520,6 +520,10 @@ class EditorFontImportDialog : public ConfirmationDialog {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dest->get_line_edit()->get_text().get_file()==".fnt") {
|
||||
dest->get_line_edit()->set_text(dest->get_line_edit()->get_text().get_base_dir() + "/" + source->get_line_edit()->get_text().get_file().basename() + ".fnt" );
|
||||
}
|
||||
|
||||
Ref<ResourceImportMetadata> rimd = get_rimd();
|
||||
|
||||
if (rimd.is_null()) {
|
||||
|
Loading…
Reference in New Issue
Block a user