Use the gray color for all abstract classes

This commit is contained in:
MewPurPur
2023-08-01 20:04:28 +03:00
committed by MewPurPur
parent 6758a7f8c0
commit 398ca4e71a
21 changed files with 42 additions and 38 deletions

View File

@ -495,7 +495,7 @@ void EditorFeatureProfileManager::_profile_selected(int p_what) {
void EditorFeatureProfileManager::_fill_classes_from(TreeItem *p_parent, const String &p_class, const String &p_selected) {
TreeItem *class_item = class_list->create_item(p_parent);
class_item->set_cell_mode(0, TreeItem::CELL_MODE_CHECK);
class_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_class, "Node"));
class_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_class));
String text = p_class;
bool disabled = edited->is_class_disabled(p_class);
@ -522,11 +522,11 @@ void EditorFeatureProfileManager::_fill_classes_from(TreeItem *p_parent, const S
class_item->select(0);
}
if (disabled) {
//class disabled, do nothing else (do not show further)
// Class disabled, do nothing else (do not show further).
return;
}
class_item->set_checked(0, true); // if its not disabled, its checked
class_item->set_checked(0, true); // If it's not disabled, it's checked.
List<StringName> child_classes;
ClassDB::get_direct_inheriters_from_class(p_class, &child_classes);