Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit d55a513

Browse files
ExplvExplv
authored andcommitted
Update LodoutPanel to use ImageManager
1 parent b2eb193 commit d55a513

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

AIO/src/org/aio/gui/utils/LoadoutPanel.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.aio.activities.grand_exchange.item_guide.ItemGuide;
44
import org.aio.gui.fields.ItemField;
55
import org.aio.gui.styled_components.StyledJPanel;
6-
import org.aio.util.ResourceManager;
6+
import org.aio.util.file_managers.ImageManager;
77
import org.json.simple.JSONObject;
88
import org.json.simple.parser.JSONParser;
99
import org.osbot.rs07.api.ui.EquipmentSlot;
@@ -28,8 +28,8 @@
2828

2929
public class LoadoutPanel extends JPanel {
3030

31-
private static final String IMAGE_DIR = "loadout/";
32-
private static final BufferedImage SLOT_BACKGROUND_IMAGE = ResourceManager.getImage(IMAGE_DIR + "slot_background.png");
31+
private static final String IMAGE_DIR = "/loadout/";
32+
private static final BufferedImage SLOT_BACKGROUND_IMAGE = ImageManager.loadImage(IMAGE_DIR + "slot_background.png");
3333

3434
private Map<EquipmentSlot, String> equipmentMap = new HashMap<>();
3535

@@ -178,7 +178,7 @@ private JButton createButton(final EquipmentSlot equipmentSlot, final String ima
178178
button.setBorder(BorderFactory.createEmptyBorder());
179179
button.setFocusPainted(false);
180180

181-
button.setIcon(new ImageIcon(ResourceManager.getImage(IMAGE_DIR + imageName)));
181+
button.setIcon(new ImageIcon(ImageManager.loadImage(IMAGE_DIR + imageName)));
182182
button.addActionListener(new EquipmentButtonActionListener(equipmentSlot));
183183

184184
return button;

0 commit comments

Comments
 (0)