Example #1
0
 private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
 {
     if (changeEvent is BpmChangeEvent || changeEvent is LoadedMementoEvent)
     {
         SetViewportHorizontal(ViewportX, ViewportWidth);
     }
 }
Example #2
0
 private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
 {
     if (changeEvent is MusicGapChangedEvent || changeEvent is LoadedMementoEvent)
     {
         UpdateUiText();
     }
 }
Example #3
0
 private void OnSongChanged(SongMetaChangeEvent changeEvent)
 {
     if (changeEvent is BpmChangeEvent || changeEvent is LoadedMementoEvent)
     {
         SetBpm(songMeta.Bpm);
     }
 }
Example #4
0
 private void OnSongMetaChangeEvent(SongMetaChangeEvent changeEvent)
 {
     if (changeEvent.Undoable &&
         !(changeEvent is LoadedMementoEvent))
     {
         AddUndoState();
     }
 }
Example #5
0
    private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
    {
        if (changeEvent is LyricsChangedEvent)
        {
            return;
        }

        UpdateNoteOverviewImage();
    }
Example #6
0
 private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
 {
     if (lyricsAreaMode == LyricsAreaMode.ViewMode &&
         (changeEvent is LyricsChangedEvent ||
          changeEvent is LoadedMementoEvent))
     {
         UpdateLyrics();
     }
 }
Example #7
0
    private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
    {
        if (lyricsAreaMode == LyricsAreaMode.ViewMode &&
            (changeEvent is LyricsChangedEvent ||
             changeEvent is LoadedMementoEvent ||
             changeEvent is MovedNotesToVoiceEvent))
        {
            UpdateLyrics();
        }

        if (changeEvent is MovedNotesToVoiceEvent)
        {
            UpdateVoiceButtons();
        }
    }
Example #8
0
    private void OnSongMetaChanged(SongMetaChangeEvent changeEvent)
    {
        if (!(changeEvent is MovedNotesToVoiceEvent))
        {
            return;
        }

        IReadOnlyCollection <Note> notes = (changeEvent as MovedNotesToVoiceEvent).notes;

        foreach (Note note in notes)
        {
            if (note.Sentence != null)
            {
                RemoveNoteFromAllLayers(note);
            }
        }
    }