Controls menu

This commit is contained in:
2026-04-02 18:51:17 +02:00
parent 589b225ab0
commit 10316d3075
6 changed files with 60 additions and 3 deletions

View File

@@ -84,6 +84,12 @@ function MenuWindow.exit()
exit()
end
--- Opens the controls screen.
--- @within MenuWindow
function MenuWindow.controls()
Window.set_current("controls")
end
--- Opens the audio test menu.
--- @within MenuWindow
function MenuWindow.audio_test()
@@ -117,6 +123,7 @@ function MenuWindow.refresh_menu_items()
table.insert(_menu_items, {label = "New Game", decision = MenuWindow.new_game})
table.insert(_menu_items, {label = "Load Game", decision = MenuWindow.load_game})
table.insert(_menu_items, {label = "Controls", decision = MenuWindow.controls})
if Context.test_mode then
table.insert(_menu_items, {label = "Audio Test", decision = MenuWindow.audio_test})