You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #89987 from Calinou/editor-asset-library-rename-official-support-level
Rename Official support level to Featured in the editor asset library
This commit is contained in:
@@ -766,13 +766,13 @@ const char *EditorAssetLibrary::sort_text[SORT_MAX] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const char *EditorAssetLibrary::support_key[SUPPORT_MAX] = {
|
const char *EditorAssetLibrary::support_key[SUPPORT_MAX] = {
|
||||||
"official",
|
"official", // Former name for the Featured support level (still used on the API backend).
|
||||||
"community",
|
"community",
|
||||||
"testing",
|
"testing",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *EditorAssetLibrary::support_text[SUPPORT_MAX] = {
|
const char *EditorAssetLibrary::support_text[SUPPORT_MAX] = {
|
||||||
TTRC("Official"),
|
TTRC("Featured"),
|
||||||
TTRC("Community"),
|
TTRC("Community"),
|
||||||
TTRC("Testing"),
|
TTRC("Testing"),
|
||||||
};
|
};
|
||||||
@@ -1674,10 +1674,10 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
|||||||
search_hb2->add_child(support);
|
search_hb2->add_child(support);
|
||||||
support->set_text(TTR("Support"));
|
support->set_text(TTR("Support"));
|
||||||
support->get_popup()->set_hide_on_checkable_item_selection(false);
|
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_COMMUNITY]), SUPPORT_COMMUNITY);
|
||||||
support->get_popup()->add_check_item(TTRGET(support_text[SUPPORT_TESTING]), SUPPORT_TESTING);
|
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()->set_item_checked(SUPPORT_COMMUNITY, true);
|
||||||
support->get_popup()->connect("id_pressed", callable_mp(this, &EditorAssetLibrary::_support_toggled));
|
support->get_popup()->connect("id_pressed", callable_mp(this, &EditorAssetLibrary::_support_toggled));
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ class EditorAssetLibrary : public PanelContainer {
|
|||||||
void _force_online_mode();
|
void _force_online_mode();
|
||||||
|
|
||||||
enum Support {
|
enum Support {
|
||||||
SUPPORT_OFFICIAL,
|
SUPPORT_FEATURED,
|
||||||
SUPPORT_COMMUNITY,
|
SUPPORT_COMMUNITY,
|
||||||
SUPPORT_TESTING,
|
SUPPORT_TESTING,
|
||||||
SUPPORT_MAX
|
SUPPORT_MAX
|
||||||
|
|||||||
Reference in New Issue
Block a user