Skip to content

Commit 55ea8ff

Browse files
committed
Update code docs
1 parent f1d9ae6 commit 55ea8ff

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

docs/components_ItemGrid_GridItemSmall.bs.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
m.posterText = m.top.findNode("posterText")
99
initTitle()
1010
m.backdrop = m.top.findNode("backdrop")
11-
m.playedIndicator = m.top.findNode("playedIndicator")
1211

1312
m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged")
1413

@@ -41,9 +40,18 @@
4140
itemData = m.top.itemContent
4241

4342
if not isValid(itemData) then return
44-
45-
if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played
46-
m.playedIndicator.visible = true
43+
userSettings = m.global.session.user.settings
44+
45+
if isValid(itemData.json)
46+
if not userSettings["ui.tvshows.disableUnwatchedEpisodeCount"]
47+
if isValid(itemData.json.UserData)
48+
if isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played = true
49+
m.itemPoster.isWatched = true
50+
else if isValid(itemData.json.UserData.UnplayedItemCount) and itemData.json.UserData.UnplayedItemCount > 0
51+
m.itemPoster.unplayedCount = itemData.json.UserData.UnplayedItemCount
52+
end if
53+
end if
54+
end if
4755
end if
4856

4957
m.itemPoster.uri = itemData.PosterUrl

docs/components_JROverhang.bs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
sub isVisibleChanged()
1818
if m.top.disableMoveAnimation
19-
m.top.translation = [54, 0]
19+
m.top.translation = [0, 0]
2020
return
2121
end if
2222
if m.top.isVisible

docs/components_ui_poster_JRPoster.bs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
textLength = len(m.unplayedVideosCount.text)
120120
fontSize = m.unplayedVideosCount.font.size
121121

122-
charWidth = fontSize * 0.6
122+
charWidth = fontSize * 0.64
123123
dataWidth = textLength * charWidth
124124

125125
if dataWidth < 27 then dataWidth = 27

0 commit comments

Comments
 (0)