diff options
Diffstat (limited to 'src/main/java/net/sowgro/npehero/editor/NotesEditor2.java')
-rw-r--r-- | src/main/java/net/sowgro/npehero/editor/NotesEditor2.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/net/sowgro/npehero/editor/NotesEditor2.java b/src/main/java/net/sowgro/npehero/editor/NotesEditor2.java index b6810d8..e3db0b1 100644 --- a/src/main/java/net/sowgro/npehero/editor/NotesEditor2.java +++ b/src/main/java/net/sowgro/npehero/editor/NotesEditor2.java @@ -173,6 +173,12 @@ public class NotesEditor2 extends Page { throw new RuntimeException(e); } diff.endTime = newEndTime.get(); + diff.bpm = 0.0; + try { + diff.readMetadata(); + } catch (IOException e) { + // TODO + } Sound.playSfx(Sound.BACKWARD); Driver.setMenu(new DiffEditor(diff, prev.prev)); }); @@ -333,6 +339,15 @@ public class NotesEditor2 extends Page { newEndTime.set(tmp); } }); + + activeNotes.addListener((_, _, _) -> { + if (activeNotes.isEmpty()) { + selectionLabel.setText("Selection"); + } + else { + selectionLabel.setText("Selection (" + activeNotes.size() + ")"); + } + }); } @Override |