123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- // 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;
- }
- }
- }
- }
|