From c1169edb11660b6936ffcef49bc0543dfef17758 Mon Sep 17 00:00:00 2001 From: photonconvergence <116527579+photonconvergence@users.noreply.github.com> Date: Sat, 2 Dec 2023 17:19:38 -0800 Subject: [PATCH] Add watched checkmark to Series, align --- components/ListPoster.bs | 8 ++++++++ components/ListPoster.xml | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/components/ListPoster.bs b/components/ListPoster.bs index 2c9337a8..62b970d1 100644 --- a/components/ListPoster.bs +++ b/components/ListPoster.bs @@ -8,6 +8,10 @@ sub init() m.poster = m.top.findNode("poster") 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.backdrop = m.top.findNode("backdrop") @@ -65,6 +69,10 @@ sub itemContentChanged() as void end if end if + if isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played = true + m.playedIndicator.visible = true + end if + if itemData.json.lookup("Type") = "Episode" and isValid(itemData.json.IndexNumber) m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text diff --git a/components/ListPoster.xml b/components/ListPoster.xml index 391cb95b..8566ea2c 100644 --- a/components/ListPoster.xml +++ b/components/ListPoster.xml @@ -4,9 +4,10 @@ - + +