This commit is contained in:
Auric Vente 2024-07-22 22:11:20 -06:00
parent 85b6de1f7e
commit c5ade22578
1 changed files with 15 additions and 0 deletions

View File

@ -449,6 +449,7 @@ class Game:
restart = QAction("Restart") restart = QAction("Restart")
enable_all = QAction("Enable All") enable_all = QAction("Enable All")
disable_all = QAction("Disable All") disable_all = QAction("Disable All")
about = QAction("About")
def make(text: str, enabled: bool) -> QAction: def make(text: str, enabled: bool) -> QAction:
if enabled: if enabled:
@ -494,6 +495,7 @@ class Game:
words.triggered.connect(Settings.toggle_words_enabled) words.triggered.connect(Settings.toggle_words_enabled)
enable_all.triggered.connect(Settings.enable_all) enable_all.triggered.connect(Settings.enable_all)
disable_all.triggered.connect(Settings.disable_all) disable_all.triggered.connect(Settings.disable_all)
about.triggered.connect(Game.about)
menu.addAction(update) menu.addAction(update)
menu.addAction(restart) menu.addAction(restart)
@ -506,9 +508,22 @@ class Game:
menu.addSeparator() menu.addSeparator()
menu.addAction(enable_all) menu.addAction(enable_all)
menu.addAction(disable_all) menu.addAction(disable_all)
menu.addSeparator()
menu.addAction(about)
menu.exec_(QCursor.pos()) menu.exec_(QCursor.pos())
@staticmethod @staticmethod
def force_update() -> None: def force_update() -> None:
Game.get_status() Game.get_status()
Game.start_loop() Game.start_loop()
@staticmethod
def about() -> None:
lines = [
f"Cromulant v{Config.manifest["version"]}",
"Listen to the ants and watch them go.",
"Just run it and leave it open on your screen.",
"5% of revenue goes to the local ant shelter.",
]
Window.alert("\n\n".join(lines))