Forum Discussion

brocker's avatar
brocker
Visitor
15 years ago

Demos - initTheme()

Hey All,

So going through the demos, I'm trying to figure out how to get my images to display on the Roku channel I'm developing. I really only see one application that sets images beyond the default colors, and it's the SimpleVideoPlayer app. Looking at the code, I see the initTheme() called, which sets the images (in fact I see this method in most demos). When I copy this code into my project, no images are set when the project loads. Is there another step that needs to happen to get the images to display?

Here is what the initTheme() method does:

Sub initTheme()

app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangOffsetHD_X = "123"
theme.OverhangOffsetHD_Y = "48"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

app.SetTheme(theme)

End Sub


Thanks
Bud

14 Replies