joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2018
01:57 PM
Re: Newbie Q: Understanding How to Bring Up New Screens
usually screens are visible by default and the way to bring them up is to create and attach them to the scene.
aspiring
VikR0001
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2018
02:01 PM
Re: Newbie Q: Understanding How to Bring Up New Screens
Thanks for this info, Joe. Could you provide some additional info on the functions used?
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2018
06:22 PM
Re: Newbie Q: Understanding How to Bring Up New Screens
In the example I'm looking at "Simple Grid and Video" it has HomeScene.xml that has child components such as "GridScreen", an overhang, "Video".
You can create a new screen like this
(of course you would need an XML and accompanying brs that defines your custom component "MyScreenComponent" as a full screen component, maybe extending Group)
then if it's created elsewhere, you need to pass that screen node to the HomeScene through a new field defined in HomeScene.xml:
and have HomeScene append it as it's last child so it appears over top of anything on screen. in HomeScene.brs:
You can create a new screen like this
newscreen = createObject("roSGNode","MyScreenComponent")
(of course you would need an XML and accompanying brs that defines your custom component "MyScreenComponent" as a full screen component, maybe extending Group)
then if it's created elsewhere, you need to pass that screen node to the HomeScene through a new field defined in HomeScene.xml:
<field id="myScreenNode" type="node" alwaysnotify="true" onChange="newScreenSet"/>
and have HomeScene append it as it's last child so it appears over top of anything on screen. in HomeScene.brs:
sub newScreenSet()
newScreen = m.top.myScreenNode
if newScreen <> invalid
m.top.appendChild(newScreen)
end if
end sub
aspiring
VikR0001
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2018
08:10 PM
Re: Newbie Q: Understanding How to Bring Up New Screens
Awesome. Thanks, @joetesta.
- « Previous
-
- 1
- 2
- Next »