Make include directives work in .mnu files
This commit is contained in:
20
internal/ui/dialogue.go
Normal file
20
internal/ui/dialogue.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"code.ur.gs/lupine/ordoor/internal/menus"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Needed for Keyboard.mnu (main -> options -> keyboard).
|
||||
// Dialogues can be active(?) or not. If they're not, then they are hidden.
|
||||
// Dialogues seem to be modal in all cases?
|
||||
registerBuilder(menus.TypeDialogue, registerDebug("WIP Dialogue", registerDialogue))
|
||||
}
|
||||
|
||||
func registerDialogue(d *Driver, r *menus.Record) ([]*menus.Record, error) {
|
||||
// The dialogue itself has a sprite
|
||||
_, err := registerNoninteractive(d, r)
|
||||
|
||||
// TODO: we need to group these. Z levels seem overkill?
|
||||
return r.Children, err
|
||||
}
|
Reference in New Issue
Block a user