evilmax17
15 years agoVisitor
When is it valid/invalid to change the theme?(force repaint)
I'm noticing that sometimes when I try to change the theme, the changes don't seem to occur.
For example, If I call the above function in response to roPosterScreen::isListItemFocused, nothing changes. If I call initTheme after creating and showing another roPosterScreen, the changes DO occur.
Are there valid/invalid times to change the theme?
Sub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
'Create a noticeably different theme each time this function is called.
theme.OverhangOffsetHD_X = itostr( RND(1000) )
theme.OverhangOffsetHD_Y = "25"
theme.OverhangSliceHD = "pkg:/images/Overhang_Background_HD.png"
theme.OverhangLogoHD = "pkg:/images/Overhang_Logo_HD.png"
app.SetTheme(theme)
print "Theme changed."
theme = invalid
app = invalid
End Sub
For example, If I call the above function in response to roPosterScreen::isListItemFocused, nothing changes. If I call initTheme after creating and showing another roPosterScreen, the changes DO occur.
Are there valid/invalid times to change the theme?