using System; using System.Collections.Generic; using System.Linq; using Alchemy.Editor.Elements; using Alchemy.Inspector; using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace Alchemy.Editor.Drawers { [CustomGroupDrawer(typeof(GroupAttribute))] public sealed class GroupDrawer : AlchemyGroupDrawer { public override VisualElement CreateRootElement(string label) { return new Box() { style = { width = Length.Percent(100f), marginTop = 3f, paddingBottom = 2f, paddingRight = 1f, paddingLeft = 1f, } }; } } [CustomGroupDrawer(typeof(BoxGroupAttribute))] public sealed class BoxGroupDrawer : AlchemyGroupDrawer { public override VisualElement CreateRootElement(string label) { var helpBox = new HelpBox() { text = label, style = { flexDirection = FlexDirection.Column, width = Length.Percent(100f), marginTop = 3f, paddingBottom = 3f, paddingRight = 3f, paddingLeft = 3f, } }; var labelElement = helpBox.Q