summaryrefslogtreecommitdiff
path: root/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/BOXOPHOBIC/Utils/Editor/StyledInspector')
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs83
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs33
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs28
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs25
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs55
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs52
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs36
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs40
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs71
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs25
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs45
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta12
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs22
-rw-r--r--Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta12
24 files changed, 0 insertions, 659 deletions
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs
deleted file mode 100644
index 133574e8..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-using Boxophobic.Constants;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledBanner))]
- public class StyledBannerAttributeDrawer : PropertyDrawer
- {
- StyledBanner a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledBanner)attribute;
-
- DrawBanner();
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
-
- void DrawBanner()
- {
- GUILayout.Space(a.spaceTop);
-
- var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0);
- var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40);
- var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40);
- var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40);
- var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30);
-
- Color bannerColor;
- Color guiColor;
-
- if (EditorGUIUtility.isProSkin)
- {
- if (a.colorR < 0)
- {
- bannerColor = CONSTANT.ColorDarkGray;
- guiColor = CONSTANT.ColorLightGray;
-
- }
- else
- {
- bannerColor = new Color(a.colorR, a.colorG, a.colorB, 1f);
- guiColor = CONSTANT.ColorDarkGray;
- }
- }
- else
- {
- bannerColor = CONSTANT.ColorLightGray;
- guiColor = CONSTANT.ColorDarkGray;
- }
-
- GUI.color = bannerColor;
-
- GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true);
- GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true);
- GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true);
-
-#if UNITY_2019_3_OR_NEWER
- GUI.Label(bannerFullRect, "<size=16><color=#" + ColorUtility.ToHtmlStringRGB(guiColor) + ">" + a.title + " " + a.subtitle + "</color></size>", CONSTANT.TitleStyle);
-#else
- GUI.Label(bannerFullRect, "<size=14><color=#" + ColorUtility.ToHtmlStringRGB(guiColor) + "><b>" + a.title + "</b> " + a.subtitle + "</color></size>", CONSTANT.TitleStyle);
-#endif
- GUI.color = guiColor;
-
- if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter }))
- {
- Application.OpenURL(a.helpURL);
- }
-
- GUI.color = Color.white;
-
- GUILayout.Space(a.spaceBottom);
- }
- }
-
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta
deleted file mode 100644
index f856a02b..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: a832b9f47ccef214e81c89efe6bf31dd
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs
deleted file mode 100644
index 7814d2cc..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledButton))]
- public class StyledButtonAttributeDrawer : PropertyDrawer
- {
- StyledButton a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledButton)attribute;
-
- GUILayout.Space(a.Top);
-
- if (GUILayout.Button(a.Text))
- {
- property.boolValue = true;
- }
-
- GUILayout.Space(a.Down);
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
-
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta
deleted file mode 100644
index c78a77d0..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b1d35dbbb9b6c214aa892d7b240de3df
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs
deleted file mode 100644
index 96516911..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-using Boxophobic.Constants;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledCategory))]
- public class StyledCategoryAttributeDrawer : PropertyDrawer
- {
- StyledCategory a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledCategory)attribute;
-
- GUI.enabled = true;
-
- StyledGUI.DrawInspectorCategory(position, a.category);
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return 40;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta
deleted file mode 100644
index ac2a05e9..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: fb59d41716ab6114cb7cf03a5695083b
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs
deleted file mode 100644
index 1f1d2e40..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledIndent))]
- public class StyledIndentAttributeDrawer : PropertyDrawer
- {
- StyledIndent a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledIndent)attribute;
-
- EditorGUI.indentLevel = a.indent;
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta
deleted file mode 100644
index 04574795..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: ea3f7407f69f900468d4b60de570e49d
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs
deleted file mode 100644
index 1f31e352..00000000
--- a/Assets/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;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta
deleted file mode 100644
index e9262191..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 80229de18cd73624b8181a9db49a304f
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs
deleted file mode 100644
index c2b02d6c..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledMessage))]
- public class StyledMessageAttributeDrawer : PropertyDrawer
- {
- StyledMessage a;
-
- bool show;
- MessageType messageType;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- show = property.boolValue;
-
- if (show)
- {
- a = (StyledMessage)attribute;
-
- if (a.Type == "None")
- {
- messageType = MessageType.None;
- }
- else if (a.Type == "Info")
- {
- messageType = MessageType.Info;
- }
- else if (a.Type == "Warning")
- {
- messageType = MessageType.Warning;
- }
- else if (a.Type == "Error")
- {
- messageType = MessageType.Error;
- }
-
- GUILayout.Space(a.Top);
- EditorGUILayout.HelpBox(a.Message, messageType);
- GUILayout.Space(a.Down);
- }
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta
deleted file mode 100644
index f207a760..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 2734a300c1fbfb8499fe8a71e9b109e7
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs
deleted file mode 100644
index bcf8bbdb..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledPopupArray))]
- public class StyledPopupArrayAttributeDrawer : PropertyDrawer
- {
- StyledPopupArray a;
- private int index = 0;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledPopupArray)attribute;
-
- var arrProp = property.serializedObject.FindProperty(a.array);
-
- var arr = new string[arrProp.arraySize];
-
- for (int i = 0; i < arrProp.arraySize; i++)
- {
- arr[i] = arrProp.GetArrayElementAtIndex(i).stringValue;
- }
-
- index = EditorGUILayout.Popup(property.displayName, index, arr);
- property.intValue = index;
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta
deleted file mode 100644
index d7549d51..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: bf9745e7c3c176c4395dbd644b463703
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs
deleted file mode 100644
index 0b2d4d4a..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledPopupLayers))]
- public class StyledPopupLayersAttributeDrawer : PropertyDrawer
- {
- private int index;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- index = property.intValue;
-
- string[] allLayers = new string[32];
-
- for (int i = 0; i < 32; i++)
- {
- if (LayerMask.LayerToName(i).Length < 1)
- {
- allLayers[i] = "Missing";
- }
- else
- {
- allLayers[i] = LayerMask.LayerToName(i);
- }
- }
-
- index = EditorGUILayout.Popup(property.displayName, index, allLayers);
- property.intValue = index;
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta
deleted file mode 100644
index cf036463..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b351b243374f2d948a9e9943abe174bf
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs
deleted file mode 100644
index 9af9807b..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledRangeOptions))]
- public class StyledRangeOptionsAttributeDrawer : PropertyDrawer
- {
- StyledRangeOptions a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledRangeOptions)attribute;
-
- GUIStyle styleMid = new GUIStyle();
- styleMid.alignment = TextAnchor.MiddleCenter;
- styleMid.normal.textColor = Color.gray;
- styleMid.fontSize = 7;
-
- if (a.displayLabel.Length > 0)
- {
- EditorGUI.PropertyField(position, property, label, true);
- GUILayout.Space(5);
- }
-
- GUILayout.BeginHorizontal();
- GUILayout.Space(8);
- property.floatValue = GUILayout.HorizontalSlider(property.floatValue, a.min, a.max);
- property.floatValue = Mathf.Clamp(property.floatValue, a.min, a.max);
- property.floatValue = Mathf.Round(property.floatValue * 1000f) / 1000f;
- GUILayout.Space(8);
- GUILayout.EndHorizontal();
-
-#if UNITY_2019_3_OR_NEWER
- GUILayout.Space(15);
-#endif
- GUILayout.BeginHorizontal();
-
- int maxWidth = 20;
-
-#if UNITY_2019_3_OR_NEWER
- maxWidth = 28;
-#endif
- for (int i = 0; i < a.options.Length - 1; i++)
- {
- GUILayout.Label(a.options[i], styleMid, GUILayout.Width(maxWidth));
- GUILayout.Label("", styleMid);
- }
-
- GUILayout.Label(a.options[a.options.Length - 1], styleMid, GUILayout.Width(maxWidth));
- GUILayout.EndHorizontal();
-
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- a = (StyledRangeOptions)attribute;
-
- if (a.displayLabel.Length > 0)
- {
- return 18;
- }
- else
- {
- return -2;
- }
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta
deleted file mode 100644
index c76f9c35..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: a5681c6e5862ae545ba9b00a5b813250
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs
deleted file mode 100644
index 267fe54f..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledSpace))]
- public class StyledSpaceAttributeDrawer : PropertyDrawer
- {
- StyledSpace a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledSpace)attribute;
-
- GUILayout.Space(a.space);
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta
deleted file mode 100644
index b5e5c875..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: db0457065a494f34aa3b619f240d8bda
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs
deleted file mode 100644
index 3850da2e..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledText))]
- public class StyledTextAttributeDrawer : PropertyDrawer
- {
- StyledText a;
-
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- a = (StyledText)attribute;
-
- GUIStyle styleLabel = new GUIStyle(EditorStyles.label)
- {
- richText = true,
- wordWrap = true
- };
-
- styleLabel.alignment = a.alignment;
-
- GUILayout.Space(a.top);
-
- if (a.disabled == true)
- {
- GUI.enabled = false;
- }
-
- GUILayout.Label(property.stringValue, styleLabel);
-
- GUI.enabled = true;
-
- GUILayout.Space(a.down);
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
-
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta
deleted file mode 100644
index 9aa5faee..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: aeec2ac650d2d8f40aa3b9e0cb807db5
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs
deleted file mode 100644
index b95184aa..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-// Cristian Pop - https://boxophobic.com/
-
-using UnityEngine;
-using UnityEditor;
-
-namespace Boxophobic.StyledGUI
-{
- [CustomPropertyDrawer(typeof(StyledTexturePreview))]
- public class StyledTexturePreviewAttributeDrawer : PropertyDrawer
- {
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- var rect = GUILayoutUtility.GetRect(0, 0, Screen.width, 0);
- GUI.DrawTexture(rect, (Texture)property.objectReferenceValue, ScaleMode.StretchToFill, false);
- }
-
- public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
- {
- return -2;
- }
- }
-}
diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta
deleted file mode 100644
index 75c7f333..00000000
--- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: c8daad1bc4051084ca6204e12dc0890d
-timeCreated: 1544998323
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant: