Add grey out to obsolete/deprecated members in properties panel

This commit is contained in:
Wojtek Figat
2024-04-10 13:36:59 +02:00
parent b4547ec4d2
commit 340ef194d3
2 changed files with 10 additions and 0 deletions

View File

@@ -377,6 +377,10 @@ namespace FlaxEditor.CustomEditors
else if (Values.HasDefaultValue && CanRevertDefaultValue)
color = Color.Yellow * 0.8f;
LinkedLabel.HighlightStripColor = color;
// Grey out deprecated members
if (Values.IsObsolete)
LinkedLabel.TextColor = LinkedLabel.TextColorHighlighted = FlaxEngine.GUI.Style.Current.ForegroundGrey;
}
}