merge from release 1 (#460)

* Integration of Jukebox Library (#451)

* add Jukebox library

todo:
- saving / loading of new format
- inferrence of unknown data like past versions
- move the temporary float casts to proper use of double
- make sound related functions take double for timing
- inform people that the Jukebox sound player was renamed to SoundByte lol

* make sound, input scheduling, and super curve use double precision

* successfully load charts

* editor works again

v1 riqs can be saved and loaded

* first tempo and volume markers are unmovable

fix loading of charts' easing values

* use gsync / freesync

* update Jukebox refs to SoundByte

* game events use double part 1

Air Rally - Glee Club converted

* don't load song if chart load fails

* finish conversion of all minigames

* remove editor waveform toggle

* timeline now respects added song offset length

clear cache files on app close
prepped notes for dsp sync

* update timeline length when offset changed

* update to latest Jukebox

* make error panel object in global game manager

* improve conductor music scheduling

* added error message box

fix first game events sometimes not playing

* editor fixes (#459)

* ditch loading dialog

doesn't show up when it's supposed to

* format song offset in editor

* remove VorbisPlugin

* Update Editor.cs
This commit is contained in:
minenice55
2023-06-10 22:30:46 -04:00
committed by GitHub
parent b1fab52ad9
commit e909d13a7a
46 changed files with 4 additions and 1071 deletions

View File

@ -393,10 +393,8 @@ namespace HeavenStudio.Editor
StandaloneFileBrowser.OpenFilePanelAsync("Open Remix", "", extensions, false, (string[] paths) =>
{
var path = Path.Combine(paths);
if (path == string.Empty) return;
GlobalGameManager.ShowLoadingMessage("Loading", $"Loading remix from {path}");
try
{
string tmpDir = RiqFileHandler.ExtractRiq(path);
@ -417,8 +415,6 @@ namespace HeavenStudio.Editor
remixName = Path.GetFileName(path);
UpdateEditorStatus(false);
CommandManager.instance.Clear();
GlobalGameManager.instance.HideDialog();
});
}

View File

@ -924,7 +924,8 @@ namespace HeavenStudio.Editor.Track
public void UpdateOffsetText()
{
FirstBeatOffset.text = (GameManager.instance.Beatmap.data.offset * 1000f).ToString("G");
// show up to 4 decimal places
FirstBeatOffset.text = (GameManager.instance.Beatmap.data.offset * 1000f).ToString("F0");
}
public void UpdateOffsetFromText()
@ -934,10 +935,7 @@ namespace HeavenStudio.Editor.Track
FirstBeatOffset.text = "0";
// Convert ms to s.
var newOffset = Convert.ToSingle(FirstBeatOffset.text) / 1000f;
// Limit decimal places to 4.
newOffset = (float)System.Math.Round(newOffset, 4);
double newOffset = Convert.ToDouble(FirstBeatOffset.text) / 1000f;
GameManager.instance.Beatmap.data.offset = newOffset;