Skip to content

Commit 1831a75

Browse files
committed
Update code docs
1 parent 4eeb3e6 commit 1831a75

10 files changed

Lines changed: 93 additions & 209 deletions

docs/components_Clock.bs.html

Lines changed: 42 additions & 80 deletions
Large diffs are not rendered by default.

docs/components_JROverhang.bs.html

Lines changed: 34 additions & 110 deletions
Large diffs are not rendered by default.

docs/components_home_HomeRows.bs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353

5454
if isValid(uiRowLayout)
5555
if uiRowLayout = "fullwidth"
56-
m.top.translation = [0, 170]
56+
m.top.translation = [0, 150]
5757
' rows take up full width of the screen
5858
m.top.itemSize = [1920, 330]
5959
' align with edge of "action" safe zone
6060
m.top.focusXOffset = [96]
6161
m.top.rowLabelOffset = [96, 30]
6262
else
6363
' original layout
64-
m.top.translation = [111, 170]
64+
m.top.translation = [111, 150]
6565
m.top.itemSize = [1703, 330]
6666
' reset to defaults
6767
m.top.focusXOffset = []

docs/components_video_OSD.bs.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
m.videoRemainingTime = m.top.findNode("videoRemainingTime")
1616
m.progressBar = m.top.findNode("progressBar")
1717
m.progressBarBackground = m.top.findNode("progressBarBackground")
18+
m.clock = m.top.findNode("clock")
19+
m.isFirstRun = true
1820

1921
m.top.observeField("json", "setFields")
2022
m.top.observeField("visible", "onVisibleChanged")
@@ -398,6 +400,14 @@
398400
m.videoSubtitleGroup.appendChild(node)
399401
end sub
400402

403+
sub OnScreenShown()
404+
if m.isFirstRun
405+
m.isFirstRun = false
406+
else
407+
m.clock.callFunc("resetTime")
408+
end if
409+
end sub
410+
401411
function onKeyEvent(key as string, press as boolean) as boolean
402412
if not press then return false
403413

docs/data/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-Clock.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-JROverhang.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-OSD.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-misc.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/source_utils_misc.bs.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -595,18 +595,6 @@
595595
return array
596596
end function
597597

598-
' Create and return a logo poster node
599-
function createLogoPoster()
600-
logoPoster = createObject("roSGNode", "Poster")
601-
logoPoster.id = "overlayLogo"
602-
logoPoster.uri = "pkg:/images/branding/logo.png"
603-
logoPoster.translation = "[70, 53]"
604-
logoPoster.width = "180"
605-
logoPoster.height = "39"
606-
607-
return logoPoster
608-
end function
609-
610598
' convert value to boolean and return value
611599
function toBoolean(value as dynamic) as dynamic
612600
if not isValid(value) then return invalid

0 commit comments

Comments
 (0)