diff options
Diffstat (limited to 'Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs')
-rw-r--r-- | Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs deleted file mode 100644 index 1f31e352..00000000 --- a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledInteractive))]
- public class StyledInteractiveAttributeDrawer : PropertyDrawer
- {
- StyledInteractive a;
-
- private int Value;
- private string Keywork;
- public int Type;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledInteractive)attribute;
-
- Value = a.value;
- Keywork = a.keyword;
- Type = a.type;
-
- if (Type == 0)
- {
- if (property.intValue == Value)
- {
- GUI.enabled = true;
- }
- else
- {
- GUI.enabled = false;
- }
- }
- else if (Type == 1)
- {
- if (Keywork == "ON")
- {
- GUI.enabled = true;
- }
- else if (Keywork == "OFF")
- {
- GUI.enabled = false;
- }
- }
-
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
|