Moved Audio Manual to a button as requested by Alando1.
This commit is contained in:
parent
6cd034c594
commit
02b598e987
@ -866,21 +866,26 @@ class DoomLauncher(QMainWindow):
|
|||||||
self.deathMatchBtn = QPushButton("&Deathmatch")
|
self.deathMatchBtn = QPushButton("&Deathmatch")
|
||||||
self.customDeathMatchBtn = QPushButton("C&ustom Deathmatch") # Alt+U
|
self.customDeathMatchBtn = QPushButton("C&ustom Deathmatch") # Alt+U
|
||||||
self.coopBtn = QPushButton("&Co-op")
|
self.coopBtn = QPushButton("&Co-op")
|
||||||
|
self.audioManualBtn = QPushButton("&Audio Manual") # Alt+A
|
||||||
|
|
||||||
self.singlePlayerBtn.clicked.connect(self.launch_single_player)
|
self.singlePlayerBtn.clicked.connect(self.launch_single_player)
|
||||||
self.deathMatchBtn.clicked.connect(self.show_deathmatch_dialog)
|
self.deathMatchBtn.clicked.connect(self.show_deathmatch_dialog)
|
||||||
self.customDeathMatchBtn.clicked.connect(self.show_custom_deathmatch_dialog) # New line
|
self.customDeathMatchBtn.clicked.connect(self.show_custom_deathmatch_dialog) # New line
|
||||||
self.coopBtn.clicked.connect(self.show_coop_dialog)
|
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.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.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.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.singlePlayerBtn)
|
||||||
mainLayout.addWidget(self.deathMatchBtn)
|
mainLayout.addWidget(self.deathMatchBtn)
|
||||||
mainLayout.addWidget(self.customDeathMatchBtn) # New line
|
mainLayout.addWidget(self.customDeathMatchBtn)
|
||||||
mainLayout.addWidget(self.coopBtn)
|
mainLayout.addWidget(self.coopBtn)
|
||||||
|
mainLayout.addWidget(self.audioManualBtn)
|
||||||
|
|
||||||
|
|
||||||
def get_narration_type(self) -> int:
|
def get_narration_type(self) -> int:
|
||||||
"""Get the current narration type from config file"""
|
"""Get the current narration type from config file"""
|
||||||
@ -979,8 +984,7 @@ class DoomLauncher(QMainWindow):
|
|||||||
"Toby Heretic",
|
"Toby Heretic",
|
||||||
"Classic Hexen",
|
"Classic Hexen",
|
||||||
"Toby Hexen",
|
"Toby Hexen",
|
||||||
"Custom Game",
|
"Custom Game"
|
||||||
"Audio Manual"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for gameName in gameList:
|
for gameName in gameList:
|
||||||
|
Loading…
Reference in New Issue
Block a user