m_sell.setVisible(false);
m_cancel.setVisible(false);
m_categoryButtons = new Button[4];
m_categoryLabels = new Label[4];
m_categoryButtons[0] = new Button(" ");
LoadingList.setDeferredLoading(true);
String respath = System.getProperty("res.path");
if(respath==null)
respath="";
try{
m_categoryButtons[0].setImage(new Image(FileLoader.loadFile(respath+"res/ui/shop/pokeball.png"),
respath+"res/ui/shop/pokeball.png", false));
}catch(Exception e){
e.printStackTrace();
}
LoadingList.setDeferredLoading(false);
m_categoryButtons[0].setSize(150, 160);
m_categoryButtons[0].setLocation(0,0);
m_categoryButtons[0].setFont(GameClient.getFontLarge());
m_categoryButtons[0].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
categoryClicked(0);
}
});
getContentPane().add(m_categoryButtons[0]);
m_categoryLabels[0] = new Label("Pokeballs");
m_categoryLabels[0].setLocation(0,0);
m_categoryLabels[0].setGlassPane(true);
m_categoryLabels[0].setZIndex(1000);
m_categoryLabels[0].setSize(150,10);
m_categoryLabels[0].setFont(GameClient.getFontLarge());
getContentPane().add(m_categoryLabels[0]);
m_categoryButtons[1] = new Button(" ");
LoadingList.setDeferredLoading(true);
try{
m_categoryButtons[1].setImage(new Image(FileLoader.loadFile(respath+"res/ui/shop/potion.png"),
respath+"res/ui/shop/potion.png", false));
}catch(Exception e){
e.printStackTrace();
}
LoadingList.setDeferredLoading(false);
m_categoryButtons[1].setSize(150, 160);
m_categoryButtons[1].setLocation(151, 0);
m_categoryButtons[1].setFont(GameClient.getFontLarge());
m_categoryButtons[1].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
categoryClicked(1);
}
});
getContentPane().add(m_categoryButtons[1]);
m_categoryLabels[1] = new Label("Potions");
m_categoryLabels[1].setLocation(151,0);
m_categoryLabels[1].setGlassPane(true);
m_categoryLabels[1].setFont(GameClient.getFontLarge());
m_categoryLabels[1].setZIndex(1000);
m_categoryLabels[1].setSize(150,10);
getContentPane().add(m_categoryLabels[1]);
m_categoryButtons[2] = new Button(" ");
LoadingList.setDeferredLoading(true);
try{
m_categoryButtons[2].setImage(new Image(FileLoader.loadFile(respath+"res/ui/shop/status.png"),
respath+"res/ui/shop/status.png", false));
}catch(Exception e){
e.printStackTrace();
}
LoadingList.setDeferredLoading(false);
m_categoryButtons[2].setSize(150, 160);
m_categoryButtons[2].setLocation(0,161);
m_categoryButtons[2].setFont(GameClient.getFontLarge());
m_categoryButtons[2].setEnabled(true);
m_categoryButtons[2].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
categoryClicked(2);
}
});
getContentPane().add(m_categoryButtons[2]);
m_categoryLabels[2] = new Label("Status Heals");
m_categoryLabels[2].setLocation(0,161);
m_categoryLabels[2].setGlassPane(true);
m_categoryLabels[2].setFont(GameClient.getFontLarge());
m_categoryLabels[2].setZIndex(1000);
m_categoryLabels[2].setSize(150,10);
getContentPane().add(m_categoryLabels[2]);
m_categoryButtons[3] = new Button(" ");
LoadingList.setDeferredLoading(true);
try{
m_categoryButtons[3].setImage(new Image(FileLoader.loadFile(respath+"res/ui/shop/field.png"),
respath+"res/ui/shop/field.png", false));
}catch(Exception e){
e.printStackTrace();
}
LoadingList.setDeferredLoading(false);
m_categoryButtons[3].setSize(150, 160);
m_categoryButtons[3].setLocation(151,161);
m_categoryButtons[3].setFont(GameClient.getFontLarge());
m_categoryButtons[3].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
categoryClicked(3);
}
});
getContentPane().add(m_categoryButtons[3]);
m_categoryLabels[3] = new Label("Field Tools");
m_categoryLabels[3].setLocation(151,161);
m_categoryLabels[3].setGlassPane(true);
m_categoryLabels[3].setFont(GameClient.getFontLarge());
m_categoryLabels[3].setZIndex(1000);
m_categoryLabels[3].setSize(150,10);
getContentPane().add(m_categoryLabels[3]);
m_cancel = new Button("Cancel");
m_cancel.setSize(300,56);
m_cancel.setLocation(0,321);
m_cancel.setFont(GameClient.getFontLarge());
m_cancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {