2019-10-13 19:33:14 +00:00
|
|
|
sub init()
|
2021-07-09 20:08:32 +00:00
|
|
|
m.top.backgroundColor = "#262626" '"#101010"
|
|
|
|
m.top.backgroundURI = ""
|
2019-10-13 19:33:14 +00:00
|
|
|
end sub
|
|
|
|
|
|
|
|
function onKeyEvent(key as string, press as boolean) as boolean
|
2021-07-09 20:08:32 +00:00
|
|
|
if not press then return false
|
2019-10-13 19:33:14 +00:00
|
|
|
|
2021-07-09 20:08:32 +00:00
|
|
|
if key = "back"
|
2021-10-10 01:51:33 +00:00
|
|
|
m.global.sceneManager.callFunc("popScene")
|
2021-07-09 20:08:32 +00:00
|
|
|
return true
|
|
|
|
else if key = "options"
|
2021-10-10 01:51:33 +00:00
|
|
|
group = m.global.sceneManager.callFunc("getActiveScene")
|
2021-12-23 01:00:47 +00:00
|
|
|
if group <> invalid and group.optionsAvailable
|
2021-09-14 02:03:32 +00:00
|
|
|
group.lastFocus = group.focusedChild
|
|
|
|
panel = group.findNode("options")
|
|
|
|
panel.visible = true
|
|
|
|
panel.findNode("panelList").setFocus(true)
|
|
|
|
end if
|
2021-07-09 20:08:32 +00:00
|
|
|
return true
|
|
|
|
end if
|
2019-10-13 19:33:14 +00:00
|
|
|
|
2021-07-09 20:08:32 +00:00
|
|
|
return false
|
2019-10-13 19:33:14 +00:00
|
|
|
end function
|