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 Disable : AccessModifierPropertyAttribute
|
||||
public sealed class DisableAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public Disable()
|
||||
public DisableAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class ShowField : AccessModifierPropertyAttribute
|
||||
public sealed class DisableFieldAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public ShowField(string fieldName)
|
||||
public DisableFieldAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public ShowField(string fieldName, object fieldValue)
|
||||
public DisableFieldAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -4,10 +4,10 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class DisableFieldInPlayMode : AccessModifierPropertyAttribute
|
||||
public sealed class DisableFieldInPlayModeAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public DisableFieldInPlayMode()
|
||||
public DisableFieldInPlayModeAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class DisableMethod : AccessModifierMethodAttribute
|
||||
public sealed class DisableMethodAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public DisableMethod(string fieldName)
|
||||
public DisableMethodAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public DisableMethod(string fieldName, object fieldValue)
|
||||
public DisableMethodAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -4,10 +4,10 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class EnableFieldInPlayMode : AccessModifierPropertyAttribute
|
||||
public sealed class DisableMethodInPlayModeAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public EnableFieldInPlayMode()
|
||||
public DisableMethodInPlayModeAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class DisableField : AccessModifierPropertyAttribute
|
||||
public sealed class EnableFieldAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public DisableField(string fieldName)
|
||||
public EnableFieldAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public DisableField(string fieldName, object fieldValue)
|
||||
public EnableFieldAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -4,10 +4,10 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class EnableMethodInPlayMode : AccessModifierMethodAttribute
|
||||
public sealed class EnableFieldInPlayModeAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public EnableMethodInPlayMode()
|
||||
public EnableFieldInPlayModeAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class EnableMethod : AccessModifierMethodAttribute
|
||||
public sealed class EnableMethodAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public EnableMethod(string fieldName)
|
||||
public EnableMethodAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public EnableMethod(string fieldName, object fieldValue)
|
||||
public EnableMethodAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -4,10 +4,10 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class DisableMethodInPlayMode : AccessModifierMethodAttribute
|
||||
public sealed class EnableMethodInPlayModeAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public DisableMethodInPlayMode()
|
||||
public EnableMethodInPlayModeAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -4,23 +4,23 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class HideField : AccessModifierPropertyAttribute
|
||||
public sealed class HideFieldAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
[Preserve]
|
||||
public HideField()
|
||||
public HideFieldAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public HideField(string fieldName)
|
||||
public HideFieldAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public HideField(string fieldName, object fieldValue)
|
||||
public HideFieldAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -4,10 +4,10 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
|
||||
public sealed class HideInNormalInspector : AccessModifierPropertyAttribute
|
||||
public sealed class HideInNormalInspectorAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public HideInNormalInspector()
|
||||
public HideInNormalInspectorAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -4,23 +4,23 @@ using UnityEngine.Scripting;
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class HideMethod : AccessModifierMethodAttribute
|
||||
public sealed class HideMethodAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
[Preserve]
|
||||
public HideMethod()
|
||||
public HideMethodAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public HideMethod(string fieldName)
|
||||
public HideMethodAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public HideMethod(string fieldName, object fieldValue)
|
||||
public HideMethodAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class EnableField : AccessModifierPropertyAttribute
|
||||
public sealed class ShowFieldAttribute : AccessModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public EnableField(string fieldName)
|
||||
public ShowFieldAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public EnableField(string fieldName, object fieldValue)
|
||||
public ShowFieldAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class ShowMethod : AccessModifierMethodAttribute
|
||||
public sealed class ShowMethodAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public ShowMethod(string fieldName)
|
||||
public ShowMethodAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public ShowMethod(string fieldName, object fieldValue)
|
||||
public ShowMethodAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
Loading…
Add table
Add a link
Reference in a new issue