Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer

This commit is contained in:
Anders Ejlersen 2021-12-04 12:47:44 +01:00
parent 81bac32538
commit dc15bfec81
161 changed files with 265 additions and 265 deletions

View file

@ -4,10 +4,10 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class QuaternionToEuler : DrawerPropertyAttribute
public sealed class EnumFlagAttribute : DrawerPropertyAttribute
{
[Preserve]
public QuaternionToEuler()
public EnumFlagAttribute()
{
}
}

View file

@ -3,17 +3,17 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class FilePath : DrawerPropertyAttribute
public sealed class FilePathAttribute : DrawerPropertyAttribute
{
public readonly bool useAbsolute;
public readonly string extension = "*";
public FilePath(bool useAbsolute = false)
public FilePathAttribute(bool useAbsolute = false)
{
this.useAbsolute = useAbsolute;
}
public FilePath(string extension, bool useAbsolute = false)
public FilePathAttribute(string extension, bool useAbsolute = false)
{
this.extension = extension;
this.useAbsolute = useAbsolute;

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class FolderPath : DrawerPropertyAttribute
public sealed class FolderPathAttribute : DrawerPropertyAttribute
{
public readonly bool useAbsolute;
public FolderPath(bool useAbsolute = false)
public FolderPathAttribute(bool useAbsolute = false)
{
this.useAbsolute = useAbsolute;
}

View file

@ -3,11 +3,11 @@ using System;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class StringToAnimatorParameter : DrawerPropertyAttribute
public sealed class IntToAnimatorParameterAttribute : DrawerPropertyAttribute
{
public readonly string animatorFieldName;
public StringToAnimatorParameter(string animatorFieldName)
public IntToAnimatorParameterAttribute(string animatorFieldName)
{
this.animatorFieldName = animatorFieldName;
}

View file

@ -5,7 +5,7 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class IntToEnum : DrawerPropertyAttribute
public sealed class IntToEnumAttribute : DrawerPropertyAttribute
{
private Type type;
@ -13,14 +13,14 @@ namespace Module.Inspector
private bool hasTriedFetchReplaceType;
[Preserve]
public IntToEnum(Type type)
public IntToEnumAttribute(Type type)
{
this.type = type;
hasTriedFetchReplaceType = true;
}
[Preserve]
public IntToEnum(Type type, string strTypeReplaceWith)
public IntToEnumAttribute(Type type, string strTypeReplaceWith)
{
this.type = type;
this.strTypeReplaceWith = strTypeReplaceWith;

View file

@ -4,10 +4,10 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class Percentage : DrawerPropertyAttribute
public sealed class IntToLayerAttribute : DrawerPropertyAttribute
{
[Preserve]
public Percentage()
public IntToLayerAttribute()
{
}
}

View file

@ -4,16 +4,16 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class MethodButton: DrawerMethodAttribute
public sealed class MethodButtonAttribute: DrawerMethodAttribute
{
public readonly string name;
[Preserve]
public MethodButton()
public MethodButtonAttribute()
{
}
public MethodButton(string name)
public MethodButtonAttribute(string name)
{
this.name = name;
}

View file

@ -3,7 +3,7 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class Naming : DrawerPropertyAttribute
public sealed class NamingAttribute : DrawerPropertyAttribute
{
public enum EPatternType : byte
{
@ -35,7 +35,7 @@ namespace Module.Inspector
public readonly EPatternType type;
public Naming(EPatternType type)
public NamingAttribute(EPatternType type)
{
this.type = type;
}

View file

@ -0,0 +1,14 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class PercentageAttribute : DrawerPropertyAttribute
{
[Preserve]
public PercentageAttribute()
{
}
}
}

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class PopupFromConst : DrawerPropertyAttribute
public sealed class PopupFromConstAttribute : DrawerPropertyAttribute
{
public readonly Type type;
public PopupFromConst(Type type)
public PopupFromConstAttribute(Type type)
{
this.type = type;
}

View file

@ -0,0 +1,14 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class QuaternionToEulerAttribute : DrawerPropertyAttribute
{
[Preserve]
public QuaternionToEulerAttribute()
{
}
}
}

View file

@ -0,0 +1,14 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class SceneDropdownAttribute : DrawerPropertyAttribute
{
[Preserve]
public SceneDropdownAttribute()
{
}
}
}

View file

@ -1,14 +0,0 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class Slider : DrawerPropertyAttribute
{
[Preserve]
public Slider()
{
}
}
}

View file

@ -4,10 +4,10 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class IntToLayer : DrawerPropertyAttribute
public sealed class SliderAttribute : DrawerPropertyAttribute
{
[Preserve]
public IntToLayer()
public SliderAttribute()
{
}
}

View file

@ -3,11 +3,11 @@ using System;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class IntToAnimatorParameter : DrawerPropertyAttribute
public sealed class StringToAnimatorParameterAttribute : DrawerPropertyAttribute
{
public readonly string animatorFieldName;
public IntToAnimatorParameter(string animatorFieldName)
public StringToAnimatorParameterAttribute(string animatorFieldName)
{
this.animatorFieldName = animatorFieldName;
}

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class StringToField : DrawerPropertyAttribute
public sealed class StringToFieldAttribute : DrawerPropertyAttribute
{
public readonly Type type;
public StringToField(Type type)
public StringToFieldAttribute(Type type)
{
this.type = type;
}

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class StringToType : DrawerPropertyAttribute
public sealed class StringToTypeAttribute : DrawerPropertyAttribute
{
public readonly Type assignableFrom;
public StringToType(Type assignableFrom)
public StringToTypeAttribute(Type assignableFrom)
{
this.assignableFrom = assignableFrom;
}

View file

@ -1,14 +0,0 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class Tag : DrawerPropertyAttribute
{
[Preserve]
public Tag()
{
}
}
}

View file

@ -4,10 +4,10 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class EnumFlag : DrawerPropertyAttribute
public sealed class TagAttribute : DrawerPropertyAttribute
{
[Preserve]
public EnumFlag()
public TagAttribute()
{
}
}

View file

@ -1,14 +0,0 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class UrlGoTo : DrawerPropertyAttribute
{
[Preserve]
public UrlGoTo()
{
}
}
}

View file

@ -4,10 +4,10 @@ using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class SceneDropdown : DrawerPropertyAttribute
public sealed class UrlGoToAttribute : DrawerPropertyAttribute
{
[Preserve]
public SceneDropdown()
public UrlGoToAttribute()
{
}
}