diff --git a/game.py b/game.py index 219bc88..7a569d9 100644 --- a/game.py +++ b/game.py @@ -164,7 +164,7 @@ if __name__ == "__main__": print( "Welp, seems that the game crashed, idk why. A common cause of this is pressing CTRL+C, which will cancel some UI stuff and just break the game. If you're on the desktop version, reopen it, if you're on the web version, reload, and don't use CTRL+C.\nOtherwise, great job! You found an issue in the game! If you can, please tell me." ) - ui.confirm("Press any key to quit.") + ui.press_any_key_to_continue("Press any key to quit.") else: print( "I think you did CTRL+C? I said not to I think. Well, here you are! Great job, not following instructions, I said it for a reason." diff --git a/systems/ui.py b/systems/ui.py index 98fd27f..c165f5b 100644 --- a/systems/ui.py +++ b/systems/ui.py @@ -70,3 +70,7 @@ def confirm(message, default=True): def filepath(message, default=True): return questionary.path(message, default=default, style=STYLE).ask() + + +def press_any_key_to_continue(message): + return questionary.press_any_key_to_continue(message).ask()