m_bagForm.getContentPane().setY(m_bagForm.getContentPane().getY() + 1);
m_bagForm.setBackground(new Color(0, 0, 0, 70));
m_bagForm.setResizable(false);
m_bagForm.setDraggable(false);
m_bagForm.setTitle(" Bag");
BagDialog pane = new BagDialog(
GameClient.getInstance().getOurPlayer().getItems()) {
public void itemClicked(PlayerItem item) {
GameClient.getInstance().getPacketGenerator().writeTcpMessage("u" +
item.getItem().getName());
}
public void cancelled() {
getDisplay().remove(m_bagForm);
m_bagForm = null;
}
public void loadBag() {
getDisplay().remove(m_bagForm);
m_bagForm = null;
m_bag = new BigBagDialog();
getDisplay().add(m_bag);
}
};
pane.setSize(80, 246);
pane.pack();
m_bagForm.getTitleBar().getCloseButton().setVisible(false);
m_bagForm.getContentPane().add(pane);
m_bagForm.setSize(pane.getWidth(),
pane.getHeight() + m_bagForm.getTitleBar().getHeight());
getDisplay().add(m_bagForm);
m_bagForm.setLocation(m_buttons[2].getX(), 67 - getTitleBar().getHeight());
m_bagForm.setDraggable(false);
}
}