0.2.0: Moved into inspector drawer from module.toolbox to module.inspector
This commit is contained in:
parent
5671c2c754
commit
ffec2abdf4
227 changed files with 5306 additions and 29 deletions
15
Runtime/ValueModifiers/ArrayIndex.cs
Normal file
15
Runtime/ValueModifiers/ArrayIndex.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class ArrayIndex : ValueModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
|
||||
public ArrayIndex(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/ValueModifiers/ArrayIndex.cs.meta
Normal file
11
Runtime/ValueModifiers/ArrayIndex.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0582e0b83200e0f41a362856b299c773
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Runtime/ValueModifiers/LargerThanField.cs
Normal file
15
Runtime/ValueModifiers/LargerThanField.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class LargerThanField : ValueModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
|
||||
public LargerThanField(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/ValueModifiers/LargerThanField.cs.meta
Normal file
11
Runtime/ValueModifiers/LargerThanField.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5852536dc58cd4d448cb4409df39bcf7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Runtime/ValueModifiers/MaxValue.cs
Normal file
24
Runtime/ValueModifiers/MaxValue.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class MaxValue : ValueModifierPropertyAttribute
|
||||
{
|
||||
public readonly int intValue;
|
||||
public readonly float floatValue;
|
||||
|
||||
public MaxValue(int value)
|
||||
{
|
||||
intValue = value;
|
||||
floatValue = value;
|
||||
}
|
||||
|
||||
public MaxValue(float value)
|
||||
{
|
||||
intValue = Mathf.RoundToInt(value);
|
||||
floatValue = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/ValueModifiers/MaxValue.cs.meta
Normal file
11
Runtime/ValueModifiers/MaxValue.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fa22cb1d8cf75d344b2da0b84e5439ac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Runtime/ValueModifiers/MinValue.cs
Normal file
24
Runtime/ValueModifiers/MinValue.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class MinValue : ValueModifierPropertyAttribute
|
||||
{
|
||||
public readonly int intValue;
|
||||
public readonly float floatValue;
|
||||
|
||||
public MinValue(int value)
|
||||
{
|
||||
intValue = value;
|
||||
floatValue = value;
|
||||
}
|
||||
|
||||
public MinValue(float value)
|
||||
{
|
||||
intValue = Mathf.RoundToInt(value);
|
||||
floatValue = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/ValueModifiers/MinValue.cs.meta
Normal file
11
Runtime/ValueModifiers/MinValue.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c3c28b3d8c494014f9061e5af6800576
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Runtime/ValueModifiers/SmallerThanField.cs
Normal file
15
Runtime/ValueModifiers/SmallerThanField.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class SmallerThanField : ValueModifierPropertyAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
|
||||
public SmallerThanField(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/ValueModifiers/SmallerThanField.cs.meta
Normal file
11
Runtime/ValueModifiers/SmallerThanField.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6a5c7cdc8fef16c40b2fff63e54cd95e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue