2019-05-03 12:48:59 +00:00
|
|
|
sub init()
|
|
|
|
m.top.itemComponentName = "ListPoster"
|
|
|
|
m.top.content = getData()
|
|
|
|
|
2019-12-07 02:49:37 +00:00
|
|
|
m.top.rowFocusAnimationStyle = "floatingFocus"
|
2019-05-03 12:48:59 +00:00
|
|
|
'm.top.vertFocusAnimationStyle = "floatingFocus"
|
|
|
|
|
2019-12-07 02:49:37 +00:00
|
|
|
m.top.showRowLabel = [false]
|
|
|
|
m.top.showRowCounter = [true]
|
|
|
|
m.top.rowLabelOffset = [0, 5]
|
2019-05-03 12:48:59 +00:00
|
|
|
|
|
|
|
updateSize()
|
|
|
|
|
|
|
|
m.top.setfocus(true)
|
|
|
|
end sub
|
|
|
|
|
|
|
|
sub updateSize()
|
2019-05-10 04:24:19 +00:00
|
|
|
textHeight = 80
|
2019-12-07 02:49:37 +00:00
|
|
|
itemWidth = 200
|
|
|
|
itemHeight = 380 ' width * 1.5 + text
|
2019-05-03 12:48:59 +00:00
|
|
|
|
|
|
|
m.top.visible = true
|
|
|
|
|
|
|
|
' size of the whole row
|
2020-06-25 10:37:18 +00:00
|
|
|
m.top.itemSize = [1700, itemHeight]
|
2019-05-03 12:48:59 +00:00
|
|
|
' spacing between rows
|
2019-12-07 02:49:37 +00:00
|
|
|
m.top.itemSpacing = [ 0, 0 ]
|
2019-05-03 12:48:59 +00:00
|
|
|
|
|
|
|
' size of the item in the row
|
|
|
|
m.top.rowItemSize = [ itemWidth, itemHeight ]
|
|
|
|
' spacing between items in a row
|
|
|
|
m.top.rowItemSpacing = [ 0, 0 ]
|
|
|
|
end sub
|
|
|
|
|
|
|
|
function getData()
|
|
|
|
if m.top.TVSeasonData = invalid then
|
|
|
|
data = CreateObject("roSGNode", "ContentNode")
|
|
|
|
return data
|
|
|
|
end if
|
|
|
|
|
|
|
|
seasonData = m.top.TVSeasonData
|
|
|
|
rowsize = m.top.rowSize
|
|
|
|
data = CreateObject("roSGNode", "ContentNode")
|
|
|
|
row = data.CreateChild("ContentNode")
|
|
|
|
row.title = "Seasons"
|
|
|
|
for each item in seasonData.items
|
|
|
|
row.appendChild(item)
|
|
|
|
end for
|
|
|
|
m.top.content = data
|
|
|
|
return data
|
2019-07-23 03:11:13 +00:00
|
|
|
end function
|