Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer
This commit is contained in:
parent
81bac32538
commit
dc15bfec81
161 changed files with 265 additions and 265 deletions
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
14
Runtime/Drawers/PercentageAttribute.cs
Normal file
14
Runtime/Drawers/PercentageAttribute.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
14
Runtime/Drawers/QuaternionToEulerAttribute.cs
Normal file
14
Runtime/Drawers/QuaternionToEulerAttribute.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Runtime/Drawers/SceneDropdownAttribute.cs
Normal file
14
Runtime/Drawers/SceneDropdownAttribute.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue