Skip to content

Commit 38fdc7e

Browse files
committed
Added a method to get the in-game menu's tab panel so that other
parts of the game might add their own custom tabs.
1 parent 93fa783 commit 38fdc7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public InGameMenuState( boolean enabled ) {
7171
sessionActions.add(new CallMethodAction("Exit", this, "exitGame"));
7272
}
7373

74+
/**
75+
* Returns the tabbed panel used in the in-game menu. This lets other
76+
* states potentially add their own in-game menu tabs.
77+
*/
78+
public TabbedPanel getTabs() {
79+
return tabs;
80+
}
7481

7582
protected void disconnect() {
7683
log.info("disconnect()");

0 commit comments

Comments
 (0)