|
@@ -27,6 +27,7 @@ void EditorFileDialog::_notification(int p_what) {
|
|
dir_prev->set_icon(get_icon("ArrowLeft","EditorIcons"));
|
|
dir_prev->set_icon(get_icon("ArrowLeft","EditorIcons"));
|
|
dir_next->set_icon(get_icon("ArrowRight","EditorIcons"));
|
|
dir_next->set_icon(get_icon("ArrowRight","EditorIcons"));
|
|
dir_up->set_icon(get_icon("ArrowUp","EditorIcons"));
|
|
dir_up->set_icon(get_icon("ArrowUp","EditorIcons"));
|
|
|
|
+ refresh->set_icon(get_icon("Reload","EditorIcons"));
|
|
favorite->set_icon(get_icon("Favorites","EditorIcons"));
|
|
favorite->set_icon(get_icon("Favorites","EditorIcons"));
|
|
|
|
|
|
fav_up->set_icon(get_icon("MoveUp","EditorIcons"));
|
|
fav_up->set_icon(get_icon("MoveUp","EditorIcons"));
|
|
@@ -1170,6 +1171,10 @@ EditorFileDialog::EditorFileDialog() {
|
|
pathhb->add_child(dir);
|
|
pathhb->add_child(dir);
|
|
dir->set_h_size_flags(SIZE_EXPAND_FILL);
|
|
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 = memnew( ToolButton );
|
|
favorite->set_toggle_mode(true);
|
|
favorite->set_toggle_mode(true);
|
|
favorite->connect("toggled",this,"_favorite_toggled");
|
|
favorite->connect("toggled",this,"_favorite_toggled");
|