jf-roku/components/home/Home.brs
Charles Ewert bdfcac74e6
Implement global session var (#1224)
Co-authored-by: Jimi <jimi@thedodgefamily.com>
2023-06-01 08:43:27 -04:00

21 lines
656 B
Plaintext

import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.brs"
sub init()
m.top.overhangTitle = "Home"
m.top.optionsAvailable = true
if m.global.session.user.settings["ui.home.splashBackground"] = true
m.backdrop = m.top.findNode("backdrop")
m.backdrop.uri = buildURL("/Branding/Splashscreen?format=jpg&foregroundLayer=0.15&fillWidth=1280&width=1280&fillHeight=720&height=720&tag=splash")
end if
end sub
sub refresh()
m.top.findNode("homeRows").callFunc("updateHomeRows")
end sub
sub loadLibraries()
m.top.findNode("homeRows").callFunc("loadLibraries")
end sub