*
* Add filler to shift the hand slots down. Shift * 2 because centering
* the column uses the other half at the bottom.
*/
left.add(Box.createVerticalStrut(HAND_YSHIFT * 2));
SpriteStore store = SpriteStore.get();
ItemPanel panel = new ItemPanel("rhand", store.getSprite("data/gui/weapon-slot.png"));
slotPanels.put("rhand", panel);
left.add(panel);
panel = new ItemPanel("finger", store.getSprite("data/gui/ring-slot.png"));
slotPanels.put("finger", panel);
left.add(panel);
// Fill the middle column
panel = new ItemPanel("head", store.getSprite("data/gui/helmet-slot.png"));
slotPanels.put("head", panel);
middle.add(panel);
panel = new ItemPanel("armor", store.getSprite("data/gui/armor-slot.png"));
slotPanels.put("armor", panel);
middle.add(panel);
panel = new ItemPanel("legs", store.getSprite("data/gui/legs-slot.png"));
slotPanels.put("legs", panel);
middle.add(panel);
panel = new ItemPanel("feet", store.getSprite("data/gui/boots-slot.png"));
slotPanels.put("feet", panel);
middle.add(panel);
/*
* Fill the right column
*
* Add filler to shift the hand slots down. Shift * 2 because centering
* the column uses the other half at the bottom.
*/
right.add(Box.createVerticalStrut(HAND_YSHIFT * 2));
panel = new ItemPanel("lhand", store.getSprite("data/gui/shield-slot.png"));
slotPanels.put("lhand", panel);
right.add(panel);
panel = new ItemPanel("cloak", store.getSprite("data/gui/cloak-slot.png"));
slotPanels.put("cloak", panel);
right.add(panel);
setContent(row);
}