Startmenü implementiert und Spielmenü Stummel erstellt

This commit is contained in:
Yvonne Schmidt
2024-11-12 23:30:44 +01:00
parent 3ef2459ad0
commit 17533112a1
9 changed files with 203 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ public class DialogManager {
*
* @param dialog the dialog to open
*/
void open(Dialog dialog) {
public void open(Dialog dialog) {
dialogStack.push(dialog);
dialog.update();
app.getGuiNode().attachChild(dialog);
@@ -133,7 +133,7 @@ public class DialogManager {
* @param dialog the dialog to close
* @throws IllegalArgumentException if the specified dialog is not the top dialog
*/
void close(Dialog dialog) {
public void close(Dialog dialog) {
if (!isTop(dialog))
throw new IllegalArgumentException(dialog + " is not the top dialog");
dialogStack.pop();