Notify the user rather than debug about missing features

This commit is contained in:
Nick Bisby 2019-03-17 12:38:21 -05:00
parent 8c4be5b3b9
commit 04fc7e71be
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36
2 changed files with 18 additions and 2 deletions

View File

@ -40,3 +40,12 @@ function leftPad(base as string, fill as string, length as integer) as string
end while
return base
end function
function make_dialog(message="" as string)
dialog = createObject("roSGNode", "Dialog")
dialog.id = "popup"
dialog.buttons = ["OK"]
dialog.message = message
return dialog
end function

View File

@ -6,7 +6,7 @@ sub ShowServerSelect()
screen.show()
themeScene(scene)
scene.findNode("prompt").text = "Connect to Serviette"
scene.findNode("prompt").text = "Connect to Server"
config = scene.findNode("configOptions")
items = [
@ -116,8 +116,15 @@ sub ShowLibrarySelect()
else if target.libraryType = "tvshows"
ShowTVShowOptions(target.data)
else
print Substitute("Library type {0} is not yet implemented", target.libraryType)
scene.dialog = make_dialog("This library type is not yet implemented")
scene.dialog.observeField("buttonSelected", port)
end if
else if nodeEventQ(msg, "buttonSelected")
if msg.getNode() = "popup"
msg.getRoSGNode().close = true
end if
else
print msg
end if
end while
end sub