Spaceball camera easings

This commit is contained in:
Braedon
2022-02-04 17:16:22 -05:00
parent b55a6dcabc
commit 686a8942f5
9 changed files with 2597 additions and 38 deletions

View File

@ -53,7 +53,7 @@ namespace RhythmHeavenMania.Editor
private bool changedMusic = false;
private bool loadedMusic = false;
private string currentRemixPath = "";
private int lastEditorObjectsCount = 0;
private string remixName = "";
private bool fullscreen;
public bool discordDuringTesting = false;
@ -176,13 +176,6 @@ namespace RhythmHeavenMania.Editor
}
}
if (lastEditorObjectsCount != GameManager.instance.BeatmapEntities())
{
UpdateEditorStatus(false);
}
lastEditorObjectsCount = GameManager.instance.BeatmapEntities();
if (Application.isEditor)
{
if (Input.GetKeyDown(KeyCode.S))
@ -308,6 +301,9 @@ namespace RhythmHeavenMania.Editor
zipStream.Write(bytes, 0, bytes.Length);
}
}
currentRemixPath = path;
UpdateEditorStatus(false);
}
}
@ -364,6 +360,8 @@ namespace RhythmHeavenMania.Editor
}
currentRemixPath = path;
remixName = Path.GetFileName(path);
UpdateEditorStatus(false);
CommandManager.instance.Clear();
}
});
@ -394,7 +392,7 @@ namespace RhythmHeavenMania.Editor
private void UpdateEditorStatus(bool updateTime)
{
if (discordDuringTesting || !Application.isEditor)
DiscordRPC.DiscordRPC.UpdateActivity("In Editor", $"Objects: {GameManager.instance.Beatmap.entities.Count + GameManager.instance.Beatmap.tempoChanges.Count}", updateTime);
DiscordRPC.DiscordRPC.UpdateActivity("In Editor", $"{remixName}", updateTime);
}
public string GetJson()