Example #1
0
  public void updateMusicEnabled() {
    if (Model.playerMusicEnabled.containsKey(p.getName())) {
      if (Model.playerMusicEnabled.get(p.getName())) {
        nextSongButton.setText("Next Song");
        nextSongButton.setDirty(true);
        stopMusicButton.setVisible(true);
        stopMusicButton.setDirty(true);

      } else {
        nextSongButton.setText("Music On");
        nextSongButton.setDirty(true);
        stopMusicButton.setVisible(false);
        stopMusicButton.setDirty(true);
      }
    }
    this.setDirty(true);
  }