From 1e4c7c8a57724075270eafc6b7dbced457cfe2d1 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 28 Mar 2024 18:40:32 +0100 Subject: [PATCH] Rename Official support level to Featured in the editor asset library This paves the way for integrating hand-picked high-quality assets to be displayed in the project manager when accepting the "you don't have any projects yet" dialog. --- editor/plugins/asset_library_editor_plugin.cpp | 8 ++++---- editor/plugins/asset_library_editor_plugin.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 13bdc366bf8..ad266c61cb3 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -764,13 +764,13 @@ const char *EditorAssetLibrary::sort_text[SORT_MAX] = { }; const char *EditorAssetLibrary::support_key[SUPPORT_MAX] = { - "official", + "official", // Former name for the Featured support level (still used on the API backend). "community", "testing", }; const char *EditorAssetLibrary::support_text[SUPPORT_MAX] = { - TTRC("Official"), + TTRC("Featured"), TTRC("Community"), TTRC("Testing"), }; @@ -1664,10 +1664,10 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) { search_hb2->add_child(support); support->set_text(TTR("Support")); support->get_popup()->set_hide_on_checkable_item_selection(false); - support->get_popup()->add_check_item(TTRGET(support_text[SUPPORT_OFFICIAL]), SUPPORT_OFFICIAL); + support->get_popup()->add_check_item(TTRGET(support_text[SUPPORT_FEATURED]), SUPPORT_FEATURED); support->get_popup()->add_check_item(TTRGET(support_text[SUPPORT_COMMUNITY]), SUPPORT_COMMUNITY); support->get_popup()->add_check_item(TTRGET(support_text[SUPPORT_TESTING]), SUPPORT_TESTING); - support->get_popup()->set_item_checked(SUPPORT_OFFICIAL, true); + support->get_popup()->set_item_checked(SUPPORT_FEATURED, true); support->get_popup()->set_item_checked(SUPPORT_COMMUNITY, true); support->get_popup()->connect("id_pressed", callable_mp(this, &EditorAssetLibrary::_support_toggled)); diff --git a/editor/plugins/asset_library_editor_plugin.h b/editor/plugins/asset_library_editor_plugin.h index d4a1411c183..5dad577ab1c 100644 --- a/editor/plugins/asset_library_editor_plugin.h +++ b/editor/plugins/asset_library_editor_plugin.h @@ -224,7 +224,7 @@ class EditorAssetLibrary : public PanelContainer { void _force_online_mode(); enum Support { - SUPPORT_OFFICIAL, + SUPPORT_FEATURED, SUPPORT_COMMUNITY, SUPPORT_TESTING, SUPPORT_MAX