extra assets + decoration

This commit is contained in:
PokingPines
2024-04-12 12:44:53 +02:00
parent de350377b2
commit 4733c91233
1298 changed files with 1623792 additions and 66 deletions

View File

@@ -0,0 +1,13 @@
{
"name": "Boxophobic.Utils.Scripts",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 825ad574da7360d4e8aea558f272972e
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: af52389680e6ba548bc23bad710c1613
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.Utils
{
[CreateAssetMenu(fileName = "Data", menuName = "BOXOPHOBIC/Settings Data")]
public class SettingsData : ScriptableObject
{
[Space]
public string data = "";
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 93308045fbb3c5e42ba5ccb66d848632
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9de356a448be7ac49969a9ee3488af2a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,118 @@
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using Boxophobic.StyledGUI;
public class StyledLabelGizmo : StyledMonoBehaviour
{
#if UNITY_2021_2_OR_NEWER
[StyledMessage("Warning", "The styled label gizmo is not supported in Unity 2021.2 or newer!", 10, 10)]
public bool message = true;
#endif
public Transform basePosition;
public Transform labelPosition;
[Space(10)]
public Object pingObject;
public enum LabelAnchor
{
Center = 10,
Left = 20,
Right = 30,
}
[Space(10)]
public LabelAnchor labelAnchor = LabelAnchor.Center;
[TextArea]
public string labelText;
#if !UNITY_2021_2_OR_NEWER
bool pingable;
void OnDrawGizmos()
{
var styleLabel = new GUIStyle(EditorStyles.whiteLabel)
{
richText = true,
alignment = UnityEngine.TextAnchor.MiddleLeft,
fontSize = 9,
};
if (basePosition == null)
{
basePosition = transform;
}
if (labelPosition == null)
{
labelPosition = transform;
}
var label = gameObject.name;
if (labelText != null && labelText.Length != 0)
{
label = labelText;
}
var size = styleLabel.CalcSize(new GUIContent(label));
var offset = 0f;
if (labelAnchor == LabelAnchor.Right)
{
offset = size.x + 6;
}
else if (labelAnchor == LabelAnchor.Center)
{
offset = (size.x + 6) / 2;
}
Handles.color = Color.black;
GUI.color = Color.white;
Handles.DrawLine(basePosition.position, labelPosition.position);
Handles.BeginGUI();
var basePos2D = HandleUtility.WorldToGUIPoint(basePosition.position);
var labelPos2D = HandleUtility.WorldToGUIPoint(labelPosition.position);
Handles.DrawSolidRectangleWithOutline(new Rect(labelPos2D.x - offset, labelPos2D.y - 24, size.x + 10, size.y + 10), Color.black, new Color(0, 0, 0, 0));
if (pingObject != null)
{
Event e = Event.current;
var mousePos = e.mousePosition;
if (mousePos.x > labelPos2D.x - offset && mousePos.x < labelPos2D.x - offset + size.x + 8 && mousePos.y > labelPos2D.y - 24 && mousePos.y < labelPos2D.y - 24 + size.y + 8)
{
GUI.color = new Color(0.9f, 0.8f, 0.3f, 1f);
//GUI.color = new Color(0.0f, 1f, 0.6f, 1f);
if (pingable && e.modifiers != EventModifiers.Alt)
{
EditorGUIUtility.PingObject(pingObject);
pingable = false;
}
//if (e.button == 0 && e.isMouse && e.modifiers != EventModifiers.Alt)
//{
// EditorGUIUtility.PingObject(pingObject);
//}
}
else
{
pingable = true;
}
}
GUI.Label(new Rect(labelPos2D.x + 4 - offset, labelPos2D.y - 20, size.x, size.y), label, styleLabel);
Handles.EndGUI();
}
#endif
}
#endif

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e3a24ffac8f074c4f8765c1844bb5e90
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c98c86f6ff75e844ba0337eb9ffdab3f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,63 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledBanner : PropertyAttribute
{
public float colorR;
public float colorG;
public float colorB;
public string title;
public string helpURL;
public StyledBanner(string title)
{
this.colorR = -1;
this.title = title;
this.helpURL = "";
}
public StyledBanner(float colorR, float colorG, float colorB, string title)
{
this.colorR = colorR;
this.colorG = colorG;
this.colorB = colorB;
this.title = title;
this.helpURL = "";
}
// Legacy
public StyledBanner(string title, string helpURL)
{
this.colorR = -1;
this.title = title;
this.helpURL = helpURL;
}
public StyledBanner(float colorR, float colorG, float colorB, string title, string helpURL)
{
this.colorR = colorR;
this.colorG = colorG;
this.colorB = colorB;
this.title = title;
this.helpURL = helpURL;
}
public StyledBanner(string title, string subtitle, string helpURL)
{
this.colorR = -1;
this.title = title;
this.helpURL = helpURL;
}
public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, string helpURL)
{
this.colorR = colorR;
this.colorG = colorG;
this.colorB = colorB;
this.title = title;
this.helpURL = helpURL;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 0fb089d68a8e4634390e299256c8eec7
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,28 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledButton : PropertyAttribute
{
public string Text = "";
public float Top = 0;
public float Down = 0;
public StyledButton(string Text)
{
this.Text = Text;
this.Top = 0;
this.Down = 0;
}
public StyledButton(string Text, float Top, float Down)
{
this.Text = Text;
this.Top = Top;
this.Down = Down;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 7c167590d9d480e438111f555c3a9d09
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,45 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledCategory : PropertyAttribute
{
public string category;
public float top;
public float down;
public bool colapsable;
public StyledCategory(string category)
{
this.category = category;
this.top = 10;
this.down = 10;
this.colapsable = false;
}
public StyledCategory(string category, bool colapsable)
{
this.category = category;
this.top = 10;
this.down = 10;
this.colapsable = colapsable;
}
public StyledCategory(string category, float top, float down)
{
this.category = category;
this.top = top;
this.down = down;
this.colapsable = false;
}
public StyledCategory(string category, int top, int down, bool colapsable)
{
this.category = category;
this.top = top;
this.down = down;
this.colapsable = colapsable;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 6dfd994aa3f6b3944a0bd6effc2b3102
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,34 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledEnum : PropertyAttribute
{
public string display = "";
public string file = "";
public string options = "";
public int top = 0;
public int down = 0;
public StyledEnum(string file, string options, int top, int down)
{
this.file = file;
this.options = options;
this.top = top;
this.down = down;
}
public StyledEnum(string display, string file, string options, int top, int down)
{
this.display = display;
this.file = file;
this.options = options;
this.top = top;
this.down = down;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: c65df615eedc39d41bcf5191b9429056
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,17 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledIndent : PropertyAttribute
{
public int indent;
public StyledIndent(int indent)
{
this.indent = indent;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: fd0e43229939f8b45bd79345e699dfcd
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,15 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledInteractive : PropertyAttribute
{
public StyledInteractive()
{
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 388415cfa9bb69041a8281bc567acec5
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,20 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledLayers : PropertyAttribute
{
public string display = "";
public StyledLayers()
{
}
public StyledLayers(string display)
{
this.display = display;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 846c011559e38824090c713c729cfec1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,34 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledMask : PropertyAttribute
{
public string display = "";
public string file = "";
public string options = "";
public int top = 0;
public int down = 0;
public StyledMask(string file, string options, int top, int down)
{
this.file = file;
this.options = options;
this.top = top;
this.down = down;
}
public StyledMask(string display, string file, string options, int top, int down)
{
this.display = display;
this.file = file;
this.options = options;
this.top = top;
this.down = down;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: e4362c0144e8a5b45be782723d2c956f
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,31 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledMessage : PropertyAttribute
{
public string Type;
public string Message;
public float Top;
public float Down;
public StyledMessage(string Type, string Message)
{
this.Type = Type;
this.Message = Message;
this.Top = 0;
this.Down = 0;
}
public StyledMessage(string Type, string Message, float Top, float Down)
{
this.Type = Type;
this.Message = Message;
this.Top = Top;
this.Down = Down;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ab1d3117b9da8d7429e5ac70bd016772
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,24 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledRangeOptions : PropertyAttribute
{
public string display;
public float min;
public float max;
public string[] options;
public StyledRangeOptions(string display, float min, float max, string[] options)
{
this.display = display;
this.min = min;
this.max = max;
this.options = options;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 896f8a6be3053ff4a8f322a960986af1
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,15 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledSpace : PropertyAttribute
{
public int space;
public StyledSpace(int space)
{
this.space = space;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: e11186e2ccd8bf44d9d8699902268c99
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,32 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledText : PropertyAttribute
{
public string text = "";
public TextAnchor alignment = TextAnchor.MiddleCenter;
public float top = 0;
public float down = 0;
public StyledText()
{
}
public StyledText(TextAnchor alignment)
{
this.alignment = alignment;
}
public StyledText(TextAnchor alignment, float top, float down)
{
this.alignment = alignment;
this.top = top;
this.down = down;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: df9ee7b5ab129dd4991f424a8d93430b
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,20 @@
using UnityEngine;
namespace Boxophobic.StyledGUI
{
public class StyledTexturePreview : PropertyAttribute
{
public string displayName = "";
public StyledTexturePreview()
{
this.displayName = "";
}
public StyledTexturePreview(string displayName)
{
this.displayName = displayName;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: b33fc29a1077eff40880c4d54b57136c
timeCreated: 1544997099
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a0598abf7cc734c43bd4152541cfe629
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
using UnityEngine;
using Boxophobic.StyledGUI;
public class StyledMonoBehaviour : MonoBehaviour
{
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0003a5bea05764747b05fa096a075848
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
using UnityEngine;
using Boxophobic.StyledGUI;
public class StyledScriptableObject: ScriptableObject
{
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 528a63c4c58b58a4ca3927eec830c596
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: