diff --git a/components/ItemGrid/GridItem.bs b/components/ItemGrid/GridItem.bs index 0015a8ea5..e20e27cc4 100644 --- a/components/ItemGrid/GridItem.bs +++ b/components/ItemGrid/GridItem.bs @@ -15,6 +15,10 @@ sub init() m.unplayedCount = m.top.findNode("unplayedCount") m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount") + m.playedIndicator = m.top.findNode("playedIndicator") + m.checkmark = m.top.findNode("checkmark") + m.checkmark.width = 90 + m.checkmark.height = 60 m.itemText.translation = [0, m.itemPoster.height + 7] @@ -44,6 +48,10 @@ sub itemContentChanged() if itemData = invalid then return if itemData.type = "Movie" + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played + m.playedIndicator.visible = true + end if + m.itemPoster.uri = itemData.PosterUrl m.itemIcon.uri = itemData.iconUrl m.itemText.text = itemData.Title @@ -59,6 +67,9 @@ sub itemContentChanged() end if end if end if + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played = true + m.playedIndicator.visible = true + end if m.itemPoster.uri = itemData.PosterUrl m.itemIcon.uri = itemData.iconUrl diff --git a/components/ItemGrid/GridItem.xml b/components/ItemGrid/GridItem.xml index 51cbd9655..06575753a 100644 --- a/components/ItemGrid/GridItem.xml +++ b/components/ItemGrid/GridItem.xml @@ -7,6 +7,7 @@ +