mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Add HorizontalLine to Title attribute
This commit is contained in:
parent
abcd8b1d18
commit
ec71246cbd
@ -63,7 +63,11 @@ namespace TriInspector.Drawers
|
||||
|
||||
var title = _titleResolver.GetValue(property, "Error");
|
||||
GUI.Label(titleRect, title, EditorStyles.boldLabel);
|
||||
EditorGUI.DrawRect(lineRect, Color.gray);
|
||||
|
||||
if (Attribute.HorizontalLine)
|
||||
{
|
||||
EditorGUI.DrawRect(lineRect, Color.gray);
|
||||
}
|
||||
|
||||
next.OnGUI(contentRect);
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ namespace TriInspector
|
||||
public sealed class TitleAttribute : Attribute
|
||||
{
|
||||
public string Title { get; }
|
||||
public bool HorizontalLine { get; set; } = true;
|
||||
|
||||
public TitleAttribute(string title)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user