Moved Audio Manual to a button as requested by Alando1.

This commit is contained in:
Storm Dragon 2025-01-22 01:12:47 -05:00
parent 6cd034c594
commit 02b598e987

View File

@ -866,21 +866,26 @@ class DoomLauncher(QMainWindow):
self.deathMatchBtn = QPushButton("&Deathmatch")
self.customDeathMatchBtn = QPushButton("C&ustom Deathmatch") # Alt+U
self.coopBtn = QPushButton("&Co-op")
self.audioManualBtn = QPushButton("&Audio Manual") # Alt+A
self.singlePlayerBtn.clicked.connect(self.launch_single_player)
self.deathMatchBtn.clicked.connect(self.show_deathmatch_dialog)
self.customDeathMatchBtn.clicked.connect(self.show_custom_deathmatch_dialog) # New line
self.coopBtn.clicked.connect(self.show_coop_dialog)
self.audioManualBtn.clicked.connect(self.show_audio_manual)
self.singlePlayerBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.singlePlayerBtn)
self.deathMatchBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.deathMatchBtn)
self.customDeathMatchBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.customDeathMatchBtn) # New line
self.coopBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.coopBtn)
self.singlePlayerBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.singlePlayerBtn)
self.audioManualBtn.keyPressEvent = lambda e: self.handle_button_keypress(e, self.audioManualBtn)
mainLayout.addWidget(self.singlePlayerBtn)
mainLayout.addWidget(self.deathMatchBtn)
mainLayout.addWidget(self.customDeathMatchBtn) # New line
mainLayout.addWidget(self.customDeathMatchBtn)
mainLayout.addWidget(self.coopBtn)
mainLayout.addWidget(self.audioManualBtn)
def get_narration_type(self) -> int:
"""Get the current narration type from config file"""
@ -979,8 +984,7 @@ class DoomLauncher(QMainWindow):
"Toby Heretic",
"Classic Hexen",
"Toby Hexen",
"Custom Game",
"Audio Manual"
"Custom Game"
]
for gameName in gameList: