Lib.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public class Lib
  5. {
  6. public static string ConfigPrefs = "config";
  7. public static string AudioPrefs = "AudioOn";
  8. public static string MusicPrefs = "MusicOn";
  9. public static Color SelfMessage = new Color(21/255f, 96/255f, 96/255f, 1);
  10. public static Color OtherMessage = new Color(0, 0, 0, 180/255f);
  11. public static Color FirstRank = new Color(1, 128/255f, 171/255f, 1);
  12. public static Color SecondRank = new Color(95/255f, 214/255f, 1, 1);
  13. public static Color ThirdRank = new Color(54/255f, 205/255f, 124/255f, 1);
  14. public static Color NormalRank = new Color(185/255f, 185/255f, 185/255f, 1);
  15. public static Color Pink = new Color(1, 128/255f, 171/255f, 1);
  16. public static Color Orange = new Color(233/255f, 63/255f, 20/255f, 1);
  17. public static Color LightGray = new Color(165/255f, 192/255f, 200/255f, 1);
  18. public static Color RoomClosing = new Color(240/255f, 103/255f, 101/255f, 1);
  19. public static Color RoomRunning = new Color(90/255f, 170/255f, 39/255f, 1);
  20. public static Color PraiseTextWhite = new Color(1, 1, 1, 1);
  21. public static Color PraiseTextBlue = new Color(94/255f, 114/255f, 216/255f, 1);
  22. public static Color PrivateMessageSelfGreen = new Color(122/255f, 188/255f, 89/255f, 1);
  23. public static Color PrivateMessageOtherBlack = new Color(0/255f, 0/255f, 0/255f, 180/255f);
  24. public static Sprite WifiOn
  25. {
  26. get { return ResourceManager.LoadSprite(ResourceLabel.WifiOn, Folder.UI); }
  27. }
  28. public static Sprite WifiOff
  29. {
  30. get { return ResourceManager.LoadSprite(ResourceLabel.WifiOff, Folder.UI); }
  31. }
  32. public static Sprite PackSprite
  33. {
  34. get { return ResourceManager.LoadSprite(ResourceLabel.Pack, Folder.UI); }
  35. }
  36. public static Sprite GoldSprite
  37. {
  38. get { return ResourceManager.LoadSprite(ResourceLabel.Gold, Folder.UI); }
  39. }
  40. public static Sprite DiamondSprite
  41. {
  42. get { return ResourceManager.LoadSprite(ResourceLabel.Diamond, Folder.UI); }
  43. }
  44. public static Sprite BigGoldSprite
  45. {
  46. get { return ResourceManager.LoadSprite(ResourceLabel.BigGold, Folder.Scene); }
  47. }
  48. public static Sprite Atlas
  49. {
  50. get { return ResourceManager.LoadSprite(ResourceLabel.Atlas, Folder.Atlas); }
  51. }
  52. public static Material GrayMat
  53. {
  54. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMat, Folder.UI); }
  55. }
  56. public static Material UIMaskMat
  57. {
  58. get { return ResourceManager.Load<Material>(ResourceLabel.UIMaskMat, Folder.UI); }
  59. }
  60. public static Material GraySpriteMat
  61. {
  62. get { return ResourceManager.Load<Material>(ResourceLabel.GraySpriteMat, Folder.UI); }
  63. }
  64. public static Material GrayMeshMat
  65. {
  66. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMeshMat, Folder.UI); }
  67. }
  68. public static Material DragonboneUGUIMat
  69. {
  70. get { return ResourceManager.Load<Material>(ResourceLabel.DragonboneUGUIMat, Folder.UI); }
  71. }
  72. }