mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Made it so that it indicates with the play/pause button if its paused or played
This commit is contained in:
@@ -52,6 +52,12 @@ public class SongDisplay extends VBox {
|
||||
|
||||
pauseButton.setOnAction(event -> {
|
||||
GlobalEventBus.post(new AudioEvents.PauseMusic());
|
||||
if (pauseButton.getText().equals("⏸")) {
|
||||
pauseButton.setText("▶");
|
||||
}
|
||||
else if (pauseButton.getText().equals("▶")) {
|
||||
pauseButton.setText("⏸");
|
||||
}
|
||||
});
|
||||
|
||||
previousButton.setOnAction( event -> {
|
||||
|
||||
Reference in New Issue
Block a user