plugins: Use shared clue arrow and reset images

These images are used throughout multiple plugins, thus are moved to a
new utility directory.
This commit is contained in:
Jordan Atwood
2018-07-17 19:56:59 -07:00
parent d6e465877e
commit ff31ffef01
8 changed files with 4 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ public class ClueScrollPlugin extends Plugin
synchronized (ImageIO.class)
{
CLUE_SCROLL_IMAGE = ImageIO.read(ClueScrollPlugin.class.getResourceAsStream("clue_scroll.png"));
MAP_ARROW = ImageIO.read(ClueScrollPlugin.class.getResourceAsStream("clue_arrow.png"));
MAP_ARROW = ImageIO.read(ClueScrollPlugin.class.getResourceAsStream("/util/clue_arrow.png"));
EMOTE_IMAGE = ImageIO.read(ClueScrollPlugin.class.getResourceAsStream("emote.png"));
SPADE_IMAGE = ImageIO.read(ClueScrollPlugin.class.getResourceAsStream("spade.png"));
}

View File

@@ -45,7 +45,7 @@ class DeathWorldMapPoint extends WorldMapPoint
{
synchronized (ImageIO.class)
{
MAP_ARROW = ImageIO.read(DeathWorldMapPoint.class.getResourceAsStream("clue_arrow.png"));
MAP_ARROW = ImageIO.read(DeathWorldMapPoint.class.getResourceAsStream("/util/clue_arrow.png"));
}
}
catch (IOException e)

View File

@@ -71,7 +71,7 @@ class KourendLibraryPanel extends PluginPanel
{
synchronized (ImageIO.class)
{
BufferedImage resetIcon = ImageIO.read(KourendLibraryPanel.class.getResourceAsStream("reset.png"));
BufferedImage resetIcon = ImageIO.read(KourendLibraryPanel.class.getResourceAsStream("/util/reset.png"));
RESET_ICON = new ImageIcon(resetIcon);
RESET_CLICK_ICON = new ImageIcon(ImageUtil.alphaOffset(resetIcon, -100));
}

View File

@@ -55,7 +55,7 @@ public class AlchemyRoomTimer extends Timer
{
synchronized (ImageIO.class)
{
image = ImageIO.read(AlchemyRoomTimer.class.getResourceAsStream("reset.png"));
image = ImageIO.read(AlchemyRoomTimer.class.getResourceAsStream("/util/reset.png"));
}
}
catch (IOException ex)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB