Update code for objects

This commit is contained in:
2024-06-11 16:40:35 -04:00
parent 5d2a366a62
commit 460733c8f3
15 changed files with 0 additions and 19 deletions

View File

@@ -41,7 +41,6 @@ func NewMenu (anchor tomo.Object, items ...tomo.Object) (*Menu, error) {
if !menu.torn {
menu.tearLine = tomo.NewBox()
menu.tearLine.SetRole(tomo.R("objects", "TearLine", ""))
tomo.Apply(menu.tearLine)
menu.tearLine.SetFocusable(true)
menu.tearLine.OnKeyUp(func (key input.Key, numberPad bool) {
if key != input.KeyEnter && key != input.Key(' ') { return }
@@ -67,7 +66,6 @@ func NewMenu (anchor tomo.Object, items ...tomo.Object) (*Menu, error) {
}
}
menu.rootContainer.SetRole(tomo.R("objects", "Container", "menu"))
tomo.Apply(menu.rootContainer)
menu.Window.SetRoot(menu.rootContainer)
return menu, nil