Allow menu records to be processed hierarchically by the UI driver
Nothing is actually processed in this way yet, but there is a new assertion forbidding certain types of records from having children. Because of this new assertion, our menutype tweaks must be moved up a layer into internal/menus. They fit better there anyway.
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
registerBuilder(menus.TypeCheckbox, registerCheckbox)
|
||||
registerBuilder(menus.TypeSlider, registerSlider)
|
||||
registerBuilder(menus.TypeInventorySelect, registerInventorySelect)
|
||||
registerBuilder(menus.TypeCheckbox, noChildren(registerCheckbox))
|
||||
registerBuilder(menus.TypeSlider, noChildren(registerSlider))
|
||||
registerBuilder(menus.TypeInventorySelect, noChildren(registerInventorySelect))
|
||||
}
|
||||
|
||||
// A checkbox can be a fancy button
|
||||
|
Reference in New Issue
Block a user