From 5b158af90739dcbb89c1538a6cb8c65a875dce80 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 26 Nov 2020 20:52:34 +0800 Subject: *misc --- .../BOXOPHOBIC/Utils/Editor/Constants/Constants.cs | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs (limited to 'Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs') diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs b/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs new file mode 100644 index 00000000..7580a347 --- /dev/null +++ b/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs @@ -0,0 +1,138 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.Constants +{ + public static class CONSTANT + { + public static Texture2D LogoImage + { + get + { + return Resources.Load("Boxophobic - Logo") as Texture2D; + } + } + + public static Texture2D BannerImageBegin + { + get + { + return Resources.Load("Boxophobic - BannerBegin") as Texture2D; + } + } + + public static Texture2D BannerImageMiddle + { + get + { + return Resources.Load("Boxophobic - BannerMiddle") as Texture2D; + } + } + + public static Texture2D BannerImageEnd + { + get + { + return Resources.Load("Boxophobic - BannerEnd") as Texture2D; + } + } + + public static Texture2D CategoryImageBegin + { + get + { + return Resources.Load("Boxophobic - CategoryBegin") as Texture2D; + } + } + + public static Texture2D CategoryImageMiddle + { + get + { + return Resources.Load("Boxophobic - CategoryMiddle") as Texture2D; + } + } + + public static Texture2D CategoryImageEnd + { + get + { + return Resources.Load("Boxophobic - CategoryEnd") as Texture2D; + } + } + + public static Texture2D IconEdit + { + get + { + return Resources.Load("Boxophobic - IconEdit") as Texture2D; + } + } + + public static Texture2D IconHelp + { + get + { + return Resources.Load("Boxophobic - IconHelp") as Texture2D; + } + } + + public static Color ColorDarkGray + { + get + { + return new Color(0.27f, 0.27f, 0.27f); + } + } + + public static Color ColorLightGray + { + get + { + return new Color(0.83f, 0.83f, 0.83f); + } + } + + public static GUIStyle TitleStyle + { + get + { + GUIStyle guiStyle = new GUIStyle + { + richText = true, + alignment = TextAnchor.MiddleCenter + }; + + return guiStyle; + } + } + + public static GUIStyle BoldTextStyle + { + get + { + GUIStyle guiStyle = new GUIStyle(); + + Color color; + + if (EditorGUIUtility.isProSkin) + { + color = new Color(0.87f, 0.87f, 0.87f); + } + else + { + color = new Color(0.27f, 0.27f, 0.27f); + } + + guiStyle.normal.textColor = color; + guiStyle.alignment = TextAnchor.MiddleCenter; + guiStyle.fontStyle = FontStyle.Bold; + + return guiStyle; + } + } + } +} + -- cgit v1.1-26-g67d0