Skip to content

Commit 93fa783

Browse files
committed
Hooked up the exit menu item... just that easy.
1 parent db95f96 commit 93fa783

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sim-eth-basic/src/main/java/example/InGameMenuState.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ protected void disconnect() {
8484

8585
protected void exitGame() {
8686
log.info("exitGame()");
87+
getState(OptionPanelState.class).show("Exit Game?", "Really exit the whole game?",
88+
new CallMethodAction("Yes",
89+
getApplication(),
90+
"stop"),
91+
new EmptyAction("No"),
92+
new EmptyAction("Cancel"));
8793
}
8894

8995
public List<Action> getSessionActions() {

0 commit comments

Comments
 (0)