From 9f6b470ea854326ebc800bc86fb7712ecdef6055 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 8 Jun 2019 11:18:52 +0200 Subject: [PATCH] Display a "loading" placeholder while icons are loading in the assetlib --- editor/icons/icon_project_icon_loading.svg | 1 + editor/plugins/asset_library_editor_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 editor/icons/icon_project_icon_loading.svg diff --git a/editor/icons/icon_project_icon_loading.svg b/editor/icons/icon_project_icon_loading.svg new file mode 100644 index 00000000000..3802b67654e --- /dev/null +++ b/editor/icons/icon_project_icon_loading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 0dfb53b34ae..7fd11a6fcde 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -65,7 +65,7 @@ void EditorAssetLibraryItem::_notification(int p_what) { if (p_what == NOTIFICATION_ENTER_TREE) { - icon->set_normal_texture(get_icon("DefaultProjectIcon", "EditorIcons")); + icon->set_normal_texture(get_icon("ProjectIconLoading", "EditorIcons")); category->add_color_override("font_color", Color(0.5, 0.5, 0.5)); author->add_color_override("font_color", Color(0.5, 0.5, 0.5)); }