Allow dialogues to be hidden or shown

To do this, MENU and SUBMENU are split into two types (at last), and
a Widget type is introduced. This should allow lots of code to be
removed at some point.
This commit is contained in:
2020-04-14 03:14:49 +01:00
parent dc131939f4
commit 786d261f98
18 changed files with 1034 additions and 847 deletions

View File

@@ -16,8 +16,8 @@ type Menu struct {
}
// FIXME: don't expose this
func (m *Menu) Records() []*menus.Record {
return m.raw.Records
func (m *Menu) Groups() []*menus.Group {
return m.raw.Groups
}
// FIXME: don't expose this