sus fix for loading and saving

This commit is contained in:
Braedon Lewis 2023-09-27 13:14:33 -04:00
parent de31d50efa
commit 28ef28e0d8
5 changed files with 5 additions and 4 deletions

View file

@ -222,6 +222,7 @@ namespace HeavenStudio
Beatmap.AddNewVolumeChange(0, 100f);
Beatmap.data.offset = 0f;
Conductor.instance.musicSource.clip = null;
RiqFileHandler.UnlockCache();
RiqFileHandler.WriteRiq(Beatmap);
AudioLoadDone = true;
}

View file

@ -380,6 +380,7 @@ namespace HeavenStudio.Editor
{
try
{
RiqFileHandler.UnlockCache();
RiqFileHandler.WriteRiq(GameManager.instance.Beatmap);
RiqFileHandler.PackRiq(path, true);
Debug.Log("Packed RIQ successfully!");
@ -430,6 +431,7 @@ namespace HeavenStudio.Editor
try
{
RiqFileHandler.UnlockCache();
string tmpDir = RiqFileHandler.ExtractRiq(path);
Debug.Log("Imported RIQ successfully!");
LoadRemix();

View file

@ -348,8 +348,6 @@ namespace HeavenStudio.Editor.Track
if (songBeats == 0) songBeats = 320;
else songBeats += 10;
Debug.Log("test");
TimelineContent.sizeDelta = new Vector2(songBeats * PixelsPerBeat, currentSizeDelta.y);
// TimelineEventGrid.sizeDelta = new Vector2(songBeats * PixelsPerBeat, currentSizeDelta.y);
RealTimelineContent.sizeDelta = new Vector2(TimelineContent.sizeDelta.x / Zoom, RealTimelineContent.sizeDelta.y);

View file

@ -64,6 +64,8 @@ namespace HeavenStudio.Editor.Track
entityToSet = entity;
Pool.Get();
Debug.Log(entity.datamodel);
}
}

View file

@ -4,10 +4,8 @@ using UnityEngine.UI;
using Starpelly;
using Jukebox;
using TMPro;
using UnityEngine.Timeline;
using System.Linq;
using System.Collections.Generic;
using HeavenStudio.Editor.Commands;
namespace HeavenStudio.Editor.Track
{