Commit 0087fb75 authored by Thomas Dupriez's avatar Thomas Dupriez

Removed useless buttons in SinglePlayer_MenuPanel.

Corrected GameWinPanel's statement
parent fa99c1c8
......@@ -28,7 +28,7 @@ public class GameWinPanel extends MenuPanel implements GameOverPanelAbstraction
winLabel.setFont(GUIColorsAndFonts.smallFont1);
winLabel.setForeground(GUIColorsAndFonts.fontColor1);
setTitlePanel("Game Over");
setTitlePanel("Game Won !");
addToCentralColumn(winLabel,1,1);
addToCentralColumn(ButtonMaker.makeButton("Return to main menu", returnButtonActionListener),1,1);
}
......
......@@ -29,9 +29,9 @@ public class SinglePlayer_MenuPanel extends MenuPanel implements SinglePlayer_Me
public SinglePlayer_MenuPanel(GraphicsMaster graphicsMaster){
super(graphicsMaster);
setTitlePanel("SinglePlayer Menu");
addToCentralColumn(ButtonMaker.makeButton("Create Game", createGameButton_ActionListener),1,1);
addToCentralColumn(ButtonMaker.makeButton("Load Game", loadGameButton), 1, 1);
JButton oldPlayButton = ButtonMaker.makeButton("Old play button", oldPlayButton_ActionListener);
// addToCentralColumn(ButtonMaker.makeButton("Create Game", createGameButton_ActionListener),1,1);
// addToCentralColumn(ButtonMaker.makeButton("Load Game", loadGameButton), 1, 1);
JButton oldPlayButton = ButtonMaker.makeButton("Play", oldPlayButton_ActionListener);
oldPlayButton.setBackground(new Color(174,0,0));
addToCentralColumn(oldPlayButton, 1, 1);
addToCentralColumn(ButtonMaker.makeButton("Back", backButton_ActionListener),1,1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment