add the View Deck List option to the dock. Added this to the skin, but still need an actual icon for it. Not sure how to add the image itself to the skin in sprite.png?

This commit is contained in:
slapshot5
2011-12-02 08:46:13 +00:00
parent bf7fa5e2c5
commit c0b4aceb85
4 changed files with 127 additions and 84 deletions

View File

@@ -88,6 +88,7 @@ public class FSkin {
private ImageIcon icoSettings = null;
private ImageIcon icoConcede = null;
private ImageIcon icoEndTurn = null;
private ImageIcon icoViewDeckList = null;
/** Base color used in skin. */
private Color clrTheme = Color.red;
@@ -219,6 +220,7 @@ public class FSkin {
this.setIconPlus(image.getSubimage(80, 80, 40, 40));
this.setIconShortcuts(image.getSubimage(160, 0, 80, 80));
this.setIconEndTurn(image.getSubimage(160, 80, 80, 80));
this.setIconViewDeckList(image.getSubimage(60, 140, 20, 20));
this.setIconSettings(image.getSubimage(80, 0, 80, 80));
this.setIconConcede(image.getSubimage(80, 80, 80, 80));
} catch (final IOException e) {
@@ -932,4 +934,23 @@ public class FSkin {
public ImageIcon getIconEndTurn() {
return this.icoEndTurn;
}
/**
* Sets the icon view deck list.
*
* @param bi0
*   BufferedImage
*/
public void setIconViewDeckList(final BufferedImage bi0) {
this.icoViewDeckList = new ImageIcon(bi0);
}
/**
* Gets the icon view deck list.
*
* @return ImageIcon
*/
public ImageIcon getIconViewDeckList() {
return this.icoViewDeckList;
}
}