SongCoreCustomBeatmapLevelPack.cs 880 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. namespace SongCore.OverrideClasses
  4. {
  5. public class SongCoreCustomBeatmapLevelPack : CustomBeatmapLevelPack
  6. {
  7. public SongCoreCustomBeatmapLevelPack(string packID, string packName, UnityEngine.Sprite coverImage, CustomBeatmapLevelCollection customBeatmapLevelCollection, string shortPackName = "") : base(packID, packName, shortPackName, coverImage, customBeatmapLevelCollection)
  8. {
  9. coverImage = Sprite.Create(coverImage.texture, coverImage.rect, coverImage.pivot, coverImage.texture.width);
  10. _coverImage = coverImage;
  11. if (shortPackName == "")
  12. _shortPackName = packName;
  13. }
  14. public void UpdateLevelCollection(CustomBeatmapLevelCollection newLevelCollection)
  15. {
  16. _customBeatmapLevelCollection = newLevelCollection;
  17. }
  18. }
  19. }