fix
This commit is contained in:
2
game.py
2
game.py
@@ -164,7 +164,7 @@ if __name__ == "__main__":
|
|||||||
print(
|
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."
|
"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:
|
else:
|
||||||
print(
|
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."
|
"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."
|
||||||
|
|||||||
@@ -70,3 +70,7 @@ def confirm(message, default=True):
|
|||||||
|
|
||||||
def filepath(message, default=True):
|
def filepath(message, default=True):
|
||||||
return questionary.path(message, default=default, style=STYLE).ask()
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user