mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
23 lines
760 B
C#
23 lines
760 B
C#
using TriInspector;
|
|
using TriInspector.Elements;
|
|
using TriInspector.GroupDrawers;
|
|
|
|
[assembly: RegisterTriGroupDrawer(typeof(TriBoxGroupDrawer))]
|
|
|
|
namespace TriInspector.GroupDrawers
|
|
{
|
|
public class TriBoxGroupDrawer : TriGroupDrawer<DeclareBoxGroupAttribute>
|
|
{
|
|
public override TriPropertyCollectionBaseElement CreateElement(DeclareBoxGroupAttribute attribute)
|
|
{
|
|
return new TriBoxGroupElement(new TriBoxGroupElement.Props
|
|
{
|
|
title = attribute.Title,
|
|
titleMode = attribute.HideTitle
|
|
? TriBoxGroupElement.TitleMode.Hidden
|
|
: TriBoxGroupElement.TitleMode.Normal,
|
|
hideIfChildrenInvisible = true,
|
|
});
|
|
}
|
|
}
|
|
} |