Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Apr 29, 2016
2 parents cc671bf + df1a908 commit 0d5c4b0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/view/GameEventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,15 @@ public void actionPerformed(ActionEvent e) {
System.exit(0);
} else if (e.getActionCommand().equals("Instructions")) {
// TODO: Create an instructions dialog box, this is just for testing
JOptionPane.showMessageDialog(null, "<html><ol><li>instr 1</li>"
+ "</ol></html>", "Instructions", JOptionPane.INFORMATION_MESSAGE);
String instructions = ""
+ "<html>"
+ "<ol>"
+ "<li>Click the piece you want to move.</li>"
+ "<li>Click the place you want to move to.</li>"
+ "<li>Try not to lose.</li>"
+ "</ol>"
+ "</html>";
JOptionPane.showMessageDialog(null, instructions, "Instructions", JOptionPane.INFORMATION_MESSAGE);
}
}
}
Expand Down

0 comments on commit 0d5c4b0

Please sign in to comment.