<script type="text/brightscript">
<![CDATA[
Sub Init()
m.Poster = m.top.findNode("poster")
m.landscapeRows = { "Search & Info": 0, "Featured" : 1 }
m.Poster.opacity = 0.2
m.Label = m.top.findNode("titleLabel")
m.Label.text = ""
End Sub
sub itemContentChanged()
m.top.itemContent.observeField("itemIsFocused", "onItemIsFocusedChange")
m.Label.text = ""
m.Label.visible = false
if m.landscapeRows[m.top.itemContent.category] <> invalid
if m.top.itemContent.category = "Featured"
m.Poster.width = 288
m.Poster.height = 188
if m.top.itemContent.landscape_img <> ""
m.Poster.uri = m.top.itemContent.landscape_img
else
m.Poster.uri = "pkg:/images/default_movie_image.jpg"
end if
m.Label.visible = true
m.Label.text = m.top.itemContent.title
end if
if m.top.itemContent.category = "Search & Info"
m.Poster.width = 127
m.Poster.height = 127
centerX = (270 - m.Poster.width) / 2
centerY = (196 - m.Poster.height) / 2
m.Poster.translation = [ centerX, centerY ]
m.Poster.uri = m.top.itemContent.HDPOSTERURL
m.Label.visible = true
m.Label.text = m.top.itemContent.title
end if
else
m.Poster.width = 188
m.Poster.height = 288
if m.top.itemContent.HDPOSTERURL <> ""
m.Poster.uri = m.top.itemContent.HDPOSTERURL
else
m.Poster.uri = "pkg:/images/default_movie_image.jpg"
end if
end if
end sub
sub onItemIsFocusedChange()
if m.top.itemContent.itemIsFocused
m.Poster.opacity = 1
m.Label.opacity = 1
else
m.Poster.opacity = 0.2
m.Label.opacity = 0.2
end if
end sub
]]>
</script>
<children>
<Poster id="poster" width="188" height="288" translation="[-13, 6]"
loadingBitmapUri="pkg:/images/default_movie_image.jpg"
failedBitmapUri="pkg:/images/default_movie_image.jpg"
loadDisplayMode="scaleToFill" />
<Label id="titleLabel" visible="false" translation="[-15, 205]">
<Font role="font" uri="pkg:/fonts/GothamNarrow-Medium.otf" size="22" />
</Label>
</children>