mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
update function definitions
This commit is contained in:
parent
b41e08f232
commit
7b37ca11db
@ -157,8 +157,7 @@ sub clearErrorMessage()
|
|||||||
m.top.errorMessage = ""
|
m.top.errorMessage = ""
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' JFScreen hook.
|
' JFScreen hook called when the screen is displayed by the screen manager
|
||||||
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
|
|
||||||
sub OnScreenShown()
|
sub OnScreenShown()
|
||||||
scene = m.top.getScene()
|
scene = m.top.getScene()
|
||||||
overhang = scene.findNode("overhang")
|
overhang = scene.findNode("overhang")
|
||||||
|
@ -30,8 +30,7 @@ sub loadLibraries()
|
|||||||
m.fadeInFocusBitmap.control = "start"
|
m.fadeInFocusBitmap.control = "start"
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' JFScreen hook.
|
' JFScreen hook called when the screen is displayed by the screen manager
|
||||||
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
|
|
||||||
sub OnScreenShown()
|
sub OnScreenShown()
|
||||||
scene = m.top.getScene()
|
scene = m.top.getScene()
|
||||||
overhang = scene.findNode("overhang")
|
overhang = scene.findNode("overhang")
|
||||||
@ -61,8 +60,7 @@ sub OnScreenShown()
|
|||||||
end if
|
end if
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' JFScreen hook.
|
' JFScreen hook called when the screen is hidden by the screen manager
|
||||||
' Remove the Jellyfin logo and left seperator from the overhang
|
|
||||||
sub OnScreenHidden()
|
sub OnScreenHidden()
|
||||||
scene = m.top.getScene()
|
scene = m.top.getScene()
|
||||||
overhang = scene.findNode("overhang")
|
overhang = scene.findNode("overhang")
|
||||||
|
@ -94,7 +94,12 @@ sub processUserSections()
|
|||||||
' Add home sections in order based on user settings
|
' Add home sections in order based on user settings
|
||||||
loadedSections = 0
|
loadedSections = 0
|
||||||
for i = 0 to 6
|
for i = 0 to 6
|
||||||
sectionName = LCase(m.global.session.user.settings["homesection" + i.toStr()])
|
sectionName = m.global.session.user.settings["homesection" + i.toStr()]
|
||||||
|
if isValid(sectionName)
|
||||||
|
sectionName = LCase(sectionName)
|
||||||
|
else
|
||||||
|
exit for
|
||||||
|
end if
|
||||||
sectionLoaded = false
|
sectionLoaded = false
|
||||||
if sectionName <> "none"
|
if sectionName <> "none"
|
||||||
sectionLoaded = addHomeSection(sectionName)
|
sectionLoaded = addHomeSection(sectionName)
|
||||||
|
@ -24,8 +24,7 @@ sub redraw()
|
|||||||
m.top.findNode("UserRow").translation = [leftBorder, topBorder]
|
m.top.findNode("UserRow").translation = [leftBorder, topBorder]
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' JFScreen hook.
|
' JFScreen hook called when the screen is displayed by the screen manager
|
||||||
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
|
|
||||||
sub OnScreenShown()
|
sub OnScreenShown()
|
||||||
scene = m.top.getScene()
|
scene = m.top.getScene()
|
||||||
overhang = scene.findNode("overhang")
|
overhang = scene.findNode("overhang")
|
||||||
|
Loading…
Reference in New Issue
Block a user