diff --git a/components/ItemGrid2/GridItem.brs b/components/ItemGrid2/GridItem.brs index f5bfbac3..f9ecd081 100644 --- a/components/ItemGrid2/GridItem.brs +++ b/components/ItemGrid2/GridItem.brs @@ -1,6 +1,9 @@ sub init() + m.posterMask = m.top.findNode("posterMask") m.itemPoster = m.top.findNode("itemPoster") m.itemText = m.top.findNode("itemText") + + m.itemText.translation = [0, m.itemPoster.height + 7] end sub sub itemContentChanged() @@ -9,14 +12,12 @@ sub itemContentChanged() if itemData = invalid then return - itemPoster = m.top.findNode("itemPoster") - if itemData.type = "Movie" then - itemPoster.uri = itemData.PosterUrl + m.itemPoster.uri = itemData.PosterUrl m.itemText.text = itemData.Title return else if itemData.type = "Series" then - itemPoster.uri = itemData.PosterUrl + m.itemPoster.uri = itemData.PosterUrl m.itemText.text = itemData.Title return end if @@ -28,8 +29,8 @@ end sub ' 'Use FocusPercent to animate scaling of Poser Image sub focusChanging() - scaleFactor = 1 + (m.top.focusPercent * 0.17333) - m.itemPoster.scale = [scaleFactor, scaleFactor] + scaleFactor = 0.85 + (m.top.focusPercent * 0.15) + m.posterMask.scale = [scaleFactor, scaleFactor] end sub ' diff --git a/components/ItemGrid2/GridItem.xml b/components/ItemGrid2/GridItem.xml index 8fcf9fd9..fb9d803e 100644 --- a/components/ItemGrid2/GridItem.xml +++ b/components/ItemGrid2/GridItem.xml @@ -1,8 +1,10 @@ - - + + + + diff --git a/images/postermask.png b/images/postermask.png new file mode 100644 index 00000000..1984f9a7 Binary files /dev/null and b/images/postermask.png differ