/** * Toggles the portrait display of the instrument index. * * @param i The index at which we want to modify. * @param b If we want note extensions, the box will be of a different color. */ private void changePortrait(int i, boolean b) { if (!b) { buttons .get(i) .setImage(il.getSpriteFX(ImageIndex.valueOf(instrumentLineImages.get(i) + "_SM"))); } else { buttons .get(i) .setImage(il.getSpriteFX(ImageIndex.valueOf(instrumentLineImages.get(i) + "_SM").alt())); } }
/** * Gets the images for the <code>pressed</code> and <code>notPressed</code> versions of the * button. */ protected void getImages(ImageIndex pr, ImageIndex notPr) { pressed = ImageLoader.getSpriteFX(pr); notPressed = ImageLoader.getSpriteFX(notPr); }