public void Initialize(string songName, BeatmapDifficulty difficulty, SongData.Beatmap beatmap) { InitializeFirst(songName); BeatmapWriter = new BeatmapWriter(beatmap); Difficulty = difficulty; DifficultyText.text = difficulty.Name; BeatmapTypeText.text = beatmap.TypeInstance.Name; InitializeLast(); }
private static void OnBeatmapEditorLoaded(string songName, BeatmapDifficulty difficulty, SongData.Beatmap fromBeatmap = null) { var editor = FindObjectOfType <Editors.BeatmapEditor.BeatmapEditor>(); if (editor != null) { editor.Initialize(songName, difficulty, fromBeatmap); } else { Log(Logging.Category.SONG_DATA, "Unable to locate beatmap editor component in scene.", Logging.Level.LOG_ERROR); } }
public static void OpenBeatmapEditor(string songName, BeatmapDifficulty difficulty, SongData.Beatmap fromBeatmap = null) { LoadScene(SceneNames.PIANO_ROLL_EDITOR, () => OnBeatmapEditorLoaded(songName, difficulty, fromBeatmap)); }