BasicUI.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. using UnityEngine;
  2. namespace SongCore.UI
  3. {
  4. internal static class BasicUI
  5. {
  6. internal static BS_Utils.Utilities.Config ModPrefs = new BS_Utils.Utilities.Config("SongCore/SongCore");
  7. internal static Sprite MissingCharIcon;
  8. internal static Sprite LightshowIcon;
  9. internal static Sprite ExtraDiffsIcon;
  10. internal static Sprite WIPIcon;
  11. internal static Sprite FolderIcon;
  12. internal static void GetIcons()
  13. {
  14. if (!MissingCharIcon)
  15. MissingCharIcon = Utilities.Utils.LoadSpriteFromResources("SongCore.Icons.MissingChar.png");
  16. if (!LightshowIcon)
  17. LightshowIcon = Utilities.Utils.LoadSpriteFromResources("SongCore.Icons.Lightshow.png");
  18. if (!ExtraDiffsIcon)
  19. ExtraDiffsIcon = Utilities.Utils.LoadSpriteFromResources("SongCore.Icons.ExtraDiffsIcon.png");
  20. if (!WIPIcon)
  21. WIPIcon = Utilities.Utils.LoadSpriteFromResources("SongCore.Icons.squek.png");
  22. if (!FolderIcon)
  23. FolderIcon = Utilities.Utils.LoadSpriteFromResources("SongCore.Icons.FolderIcon.png");
  24. }
  25. }
  26. }