Add thumnails to the tree view
This commit is contained in:
parent
5f3bbbdc81
commit
b2633a97b9
11 changed files with 206 additions and 143 deletions
|
|
@ -269,7 +269,7 @@ void EditorFileDialog::_post_popup() {
|
|||
set_process_unhandled_input(true);
|
||||
}
|
||||
|
||||
void EditorFileDialog::_thumbnail_result(const String &p_path, const Ref<Texture> &p_preview, const Variant &p_udata) {
|
||||
void EditorFileDialog::_thumbnail_result(const String &p_path, const Ref<Texture> &p_preview, const Ref<Texture> &p_small_preview, const Variant &p_udata) {
|
||||
|
||||
if (display_mode == DISPLAY_LIST || p_preview.is_null())
|
||||
return;
|
||||
|
|
@ -284,7 +284,7 @@ void EditorFileDialog::_thumbnail_result(const String &p_path, const Ref<Texture
|
|||
}
|
||||
}
|
||||
|
||||
void EditorFileDialog::_thumbnail_done(const String &p_path, const Ref<Texture> &p_preview, const Variant &p_udata) {
|
||||
void EditorFileDialog::_thumbnail_done(const String &p_path, const Ref<Texture> &p_preview, const Ref<Texture> &p_small_preview, const Variant &p_udata) {
|
||||
|
||||
set_process(false);
|
||||
preview_waiting = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue