diff options
author | chai <chaifix@163.com> | 2021-09-08 10:52:35 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-08 10:52:35 +0800 |
commit | 21e186f75b504d832d9c7bef0456edd7d5d3155e (patch) | |
tree | e73c43fc78d0326f32da5fadfda57fa8e23c1d90 /Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs | |
parent | 7bd7b4c6c3be6840cab06aa4d8a38619bce44705 (diff) |
+behavior design
Diffstat (limited to 'Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs')
-rw-r--r-- | Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs new file mode 100644 index 00000000..7580a347 --- /dev/null +++ b/Assets/Art/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;
+ }
+ }
+ }
+}
+
|