using System.Linq; using Alchemy.Editor.Elements; using Alchemy.Inspector; using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace Alchemy.Editor.Drawers { [CustomAttributeDrawer(typeof(ReadOnlyAttribute))] public sealed class ReadOnlyDrawer : AlchemyAttributeDrawer { public override void OnCreateElement() { TargetElement.SetEnabled(false); } } [CustomAttributeDrawer(typeof(IndentAttribute))] public sealed class IndentDrawer : AlchemyAttributeDrawer { const float IndentPadding = 15f; public override void OnCreateElement() { TargetElement.RegisterCallback(x => AddPadding()); } void AddPadding() { var label = TargetElement.Q