Commiting for C&C

This commit is contained in:
2023-01-25 16:51:41 -06:00
parent 56f12e4a58
commit e0affc82d4
4 changed files with 215 additions and 36 deletions

View File

@@ -29,7 +29,7 @@ func (s *settingsScreen) Init() wandle.Cmd {
// Set up the top menu
fileMenu := s.menu.NewSubMenu("File")
quitOption := widdles.NewMenuItem("Quit")
quitOption.Hotkey = termbox.KeyCtrlC
quitOption.SetHotkey(widdles.NewHotkey(termbox.KeyCtrlC))
quitOption.SetCommand(func() wandle.Msg { return wandle.Quit() })
fileMenu.AddOption(quitOption)
gotoMenu := s.menu.NewSubMenu("Goto")