added key bindings help screen, reachable via menu

This commit is contained in:
2024-06-06 19:55:16 +02:00
parent 63f4aa839d
commit 4695338323
5 changed files with 125 additions and 0 deletions

View File

@@ -104,6 +104,11 @@ func (scene *SceneMenu) Init() {
scene.SetNext(Options)
})
bindings := NewMenuButton("Show Key Bindings",
func(args *widget.ButtonClickedEventArgs) {
scene.SetNext(Keybindings)
})
separator1 := NewSeparator(3)
separator2 := NewSeparator(3)
separator3 := NewSeparator(10)
@@ -123,6 +128,7 @@ func (scene *SceneMenu) Init() {
rowContainer.AddChild(separator1)
rowContainer.AddChild(options)
rowContainer.AddChild(copy)
rowContainer.AddChild(bindings)
rowContainer.AddChild(separator2)
rowContainer.AddChild(cancel)
rowContainer.AddChild(separator3)