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:27:58 -04:00
committed by GitHub
parent bb2ae74339
commit 81eafec986
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;