mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Merge pull request #33 from AnnulusGames/add-inline-group
Add: InlineGroupAttribute
This commit is contained in:
commit
ee94d1620c
@ -222,4 +222,12 @@ namespace Alchemy.Editor.Drawers
|
|||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[CustomGroupDrawer(typeof(InlineGroupAttribute))]
|
||||||
|
public sealed class InlineGroupDrawer : AlchemyGroupDrawer
|
||||||
|
{
|
||||||
|
public override VisualElement CreateRootElement(string label)
|
||||||
|
{
|
||||||
|
return new VisualElement();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -33,4 +33,9 @@ namespace Alchemy.Inspector
|
|||||||
public HorizontalGroupAttribute(string groupPath) : base(groupPath) { }
|
public HorizontalGroupAttribute(string groupPath) : base(groupPath) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sealed class InlineGroupAttribute : PropertyGroupAttribute
|
||||||
|
{
|
||||||
|
public InlineGroupAttribute() : base() { }
|
||||||
|
public InlineGroupAttribute(string groupPath) : base(groupPath) { }
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user