Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Official support level to Featured in the editor asset library #89987

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions editor/plugins/asset_library_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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).
coppolaemilio marked this conversation as resolved.
Show resolved Hide resolved
"community",
"testing",
};

const char *EditorAssetLibrary::support_text[SUPPORT_MAX] = {
TTRC("Official"),
TTRC("Featured"),
TTRC("Community"),
TTRC("Testing"),
};
Expand Down Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/asset_library_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class EditorAssetLibrary : public PanelContainer {
void _force_online_mode();

enum Support {
SUPPORT_OFFICIAL,
SUPPORT_FEATURED,
SUPPORT_COMMUNITY,
SUPPORT_TESTING,
SUPPORT_MAX
Expand Down
Loading