Add verse and music counter, plus image

master
ShawnieBoy 2014-10-28 15:44:15 +00:00
parent a93a7d339a
commit b4aab2ef3e
3 changed files with 12 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -2,6 +2,8 @@ package magic.data;
import javax.swing.ImageIcon;
import org.omg.CORBA.PUBLIC_MEMBER;
import java.awt.image.BufferedImage;
public class IconImages {
@ -167,6 +169,8 @@ public class IconImages {
public static final ImageIcon TIDECOUNTER=loadIcon("tide-counter.png");
public static final ImageIcon GEMCOUNTER=loadIcon("gem-counter.png");
public static final ImageIcon PRESSURECOUNTER=loadIcon("pressure-counter.png");
public static final ImageIcon VERSECOUNTER=loadIcon("verse-counter.png");
public static final ImageIcon MUSICCOUNTER=loadIcon("verse-counter.png");
public static final ImageIcon ANY_MANA=loadIcon("anymana.gif");
public static final ImageIcon TAPPED=loadSymbolIcon(50, false);

View File

@ -313,6 +313,14 @@ public class ImageDrawingUtils {
g.drawImage(IconImages.PRESSURECOUNTER.getImage(),ax,ay,observer);
if (amount > 1){drawStringWithOutline(g, str, ax+6, ay+14, observer);}
ax+=inc;
} else if (counterType == MagicCounterType.Verse) {
g.drawImage(IconImages.VERSECOUNTER.getImage(),ax,ay,observer);
if (amount > 1){drawStringWithOutline(g, str, ax+6, ay+14, observer);}
ax+=inc;
} else if (counterType == MagicCounterType.Music) {
g.drawImage(IconImages.MUSICCOUNTER.getImage(),ax,ay,observer);
if (amount > 1){drawStringWithOutline(g, str, ax+6, ay+14, observer);}
ax+=inc;
}
}
}