This commit is contained in:
Johannes Schmelz
2024-12-12 17:38:46 +01:00
parent 7c79bb77e7
commit e2db058fc7
78 changed files with 1087 additions and 369 deletions

View File

@@ -192,6 +192,11 @@ public class DialogManager {
dialogStack.peek().escape();
}
/**
* Updates all dialogs in the dialog stack.
*
* @param delta the time since the last update
*/
public void update(float delta) {
for (Dialog dialog : dialogStack)
dialog.update(delta);

View File

@@ -1,5 +1,10 @@
package pp.dialog;
/** An interface for tagging Dialogs as PopUps for handling in the DialogManager */
public interface PopupDialog {
/**
* Shows the popup.
*/
void show();
}