jf-roku/components/tvshows/details.xml

58 lines
1.6 KiB
XML
Raw Normal View History

2019-03-14 17:11:51 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<component name="TVShowItemDetailScene" extends="Scene">
<children>
2019-03-31 03:15:53 +00:00
<PanelSet id="panelset">
<Panel id="panel-desc">
<TVShowDescription id="description" />
</Panel>
<Panel id="panel-seasons">
<TVSeasonRow id="seasons" />
</Panel>
</PanelSet>
2019-03-14 17:11:51 +00:00
</children>
<interface>
<field id="itemData" type="node" alias="description.itemContent" />
<field id="seasonData" type="associativearray" alias="seasons.TVSeasonData" />
<field id="panelFocused"
alias="panelset.leftPanelIndex"
type="integer"
onChange="panelFocusChanged" />
2019-03-14 17:11:51 +00:00
</interface>
<script type="text/brightscript">
<![CDATA[
2019-03-31 03:15:53 +00:00
sub init()
set = m.top.findNode("panelset")
set.height = 1080
panel = set.findNode("panel-desc")
panel.panelSize = "full"
panel.hasNextPanel = true
panel.isFullScreen = true
panel.leftPosition = 150
panel2 = set.findNode("panel-seasons")
panel2.panelSize = "full"
panel2.hasNextPanel = false
panel2.isFullScreen = true
panel2.leftPosition = 150
' TODO - set the bounds so seasons dont go off the edge of the screen
2019-03-31 03:15:53 +00:00
end sub
2019-03-14 17:11:51 +00:00
sub panelFocusChanged()
set = m.top.findNode("panelset")
index = m.top.panelFocused
if index = 0
' Description page
' TODO - get the buttons to actually take focus back
set.findNode("description").findNode("buttons").setFocus(true)
else if index = 1
' Seasons page
set.findNode("seasons").setFocus(true)
2019-03-31 03:15:53 +00:00
end if
2019-03-31 03:15:53 +00:00
end sub
2019-03-14 17:11:51 +00:00
]]>
</script>
</component>