Make attributes non sealed

This commit is contained in:
VladV 2023-03-12 01:18:57 +04:00
parent ec71246cbd
commit 3c36b7b2d3
24 changed files with 24 additions and 24 deletions

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class AssetsOnlyAttribute : Attribute
public class AssetsOnlyAttribute : Attribute
{
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class ButtonAttribute : Attribute
public class ButtonAttribute : Attribute
{
public ButtonAttribute()
{

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class DropdownAttribute : Attribute
public class DropdownAttribute : Attribute
{
public string Values { get; }

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class EnumToggleButtonsAttribute : Attribute
public class EnumToggleButtonsAttribute : Attribute
{
}
}

View File

@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class GUIColorAttribute : Attribute
public class GUIColorAttribute : Attribute
{
public float R { get; }
public float G { get; }

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class HideLabelAttribute : Attribute
public class HideLabelAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct))]
[Conditional("UNITY_EDITOR")]
public sealed class HideMonoScriptAttribute : Attribute
public class HideMonoScriptAttribute : Attribute
{
}
}

View File

@ -3,7 +3,7 @@
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class HideReferencePickerAttribute : Attribute
public class HideReferencePickerAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class IndentAttribute : Attribute
public class IndentAttribute : Attribute
{
public int Indent { get; }

View File

@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class InlineEditorAttribute : Attribute
public class InlineEditorAttribute : Attribute
{
}
}

View File

@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class InlinePropertyAttribute : Attribute
public class InlinePropertyAttribute : Attribute
{
public float LabelWidth { get; set; }
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class LabelTextAttribute : Attribute
public class LabelTextAttribute : Attribute
{
public string Text { get; }

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class LabelWidthAttribute : Attribute
public class LabelWidthAttribute : Attribute
{
public float Width { get; }

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class OnValueChangedAttribute : Attribute
public class OnValueChangedAttribute : Attribute
{
public OnValueChangedAttribute(string method)
{

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyOrderAttribute : Attribute
public class PropertyOrderAttribute : Attribute
{
public int Order { get; }

View File

@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertySpaceAttribute : Attribute
public class PropertySpaceAttribute : Attribute
{
public float SpaceBefore { get; set; }
public float SpaceAfter { get; set; }

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyTooltipAttribute : Attribute
public class PropertyTooltipAttribute : Attribute
{
public string Tooltip { get; }

View File

@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class ReadOnlyAttribute : Attribute
public class ReadOnlyAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class SceneAttribute : Attribute
public class SceneAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class SceneObjectsOnlyAttribute : Attribute
public class SceneObjectsOnlyAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class ShowDrawerChainAttribute : Attribute
public class ShowDrawerChainAttribute : Attribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class TableListAttribute : ListDrawerSettingsAttribute
public class TableListAttribute : ListDrawerSettingsAttribute
{
}
}

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class TitleAttribute : Attribute
public class TitleAttribute : Attribute
{
public string Title { get; }
public bool HorizontalLine { get; set; } = true;

View File

@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class ValidateInputAttribute : Attribute
public class ValidateInputAttribute : Attribute
{
public string Method { get; }