Constants.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // Cristian Pop - https://boxophobic.com/
  2. using UnityEngine;
  3. using UnityEditor;
  4. namespace Boxophobic.Constants
  5. {
  6. public static class CONSTANT
  7. {
  8. public static Texture2D LogoImage
  9. {
  10. get
  11. {
  12. return Resources.Load("Boxophobic - Logo") as Texture2D;
  13. }
  14. }
  15. public static Texture2D BannerImageBegin
  16. {
  17. get
  18. {
  19. return Resources.Load("Boxophobic - BannerBegin") as Texture2D;
  20. }
  21. }
  22. public static Texture2D BannerImageMiddle
  23. {
  24. get
  25. {
  26. return Resources.Load("Boxophobic - BannerMiddle") as Texture2D;
  27. }
  28. }
  29. public static Texture2D BannerImageEnd
  30. {
  31. get
  32. {
  33. return Resources.Load("Boxophobic - BannerEnd") as Texture2D;
  34. }
  35. }
  36. public static Texture2D CategoryImageBegin
  37. {
  38. get
  39. {
  40. return Resources.Load("Boxophobic - CategoryBegin") as Texture2D;
  41. }
  42. }
  43. public static Texture2D CategoryImageMiddle
  44. {
  45. get
  46. {
  47. return Resources.Load("Boxophobic - CategoryMiddle") as Texture2D;
  48. }
  49. }
  50. public static Texture2D CategoryImageEnd
  51. {
  52. get
  53. {
  54. return Resources.Load("Boxophobic - CategoryEnd") as Texture2D;
  55. }
  56. }
  57. public static Texture2D IconEdit
  58. {
  59. get
  60. {
  61. return Resources.Load("Boxophobic - IconEdit") as Texture2D;
  62. }
  63. }
  64. public static Texture2D IconHelp
  65. {
  66. get
  67. {
  68. return Resources.Load("Boxophobic - IconHelp") as Texture2D;
  69. }
  70. }
  71. public static Color ColorDarkGray
  72. {
  73. get
  74. {
  75. return new Color(0.27f, 0.27f, 0.27f);
  76. }
  77. }
  78. public static Color ColorLightGray
  79. {
  80. get
  81. {
  82. return new Color(0.83f, 0.83f, 0.83f);
  83. }
  84. }
  85. public static GUIStyle TitleStyle
  86. {
  87. get
  88. {
  89. GUIStyle guiStyle = new GUIStyle
  90. {
  91. richText = true,
  92. alignment = TextAnchor.MiddleCenter
  93. };
  94. return guiStyle;
  95. }
  96. }
  97. public static GUIStyle BoldTextStyle
  98. {
  99. get
  100. {
  101. GUIStyle guiStyle = new GUIStyle();
  102. Color color;
  103. if (EditorGUIUtility.isProSkin)
  104. {
  105. color = new Color(0.87f, 0.87f, 0.87f);
  106. }
  107. else
  108. {
  109. color = new Color(0.27f, 0.27f, 0.27f);
  110. }
  111. guiStyle.normal.textColor = color;
  112. guiStyle.alignment = TextAnchor.MiddleCenter;
  113. guiStyle.fontStyle = FontStyle.Bold;
  114. return guiStyle;
  115. }
  116. }
  117. }
  118. }