What could make a dialog box in the Main loop not show up? To make a long story short, I set up the dialog box to display with animation in a bunch of places, but in one "if/then" section, it just doesn't open. So I removed from everywhere else, and it still didn't work in this one else if then statement. So I stuck in another dialog.setmessageport(port) in front of the dialog.show() line and it worked - the first time through, but after that it doesn't work.
The whole point of sticking this in was there is a weird thing going on with this particular section where if I click "previous" or "next" and then quickly go to another section while it loads and do the same thing, one section (category filter posterlist) will replace the other one, even though the index is different. Very odd. So I wanted to quick-fix it by preventing anyone from changing category-filter sections while it loaded. That is when I encountered the weird dialog.show() issue. I'm sure the two are related, but I'm not sure how.
'm.li is global msg.GetIndex() var updated whenever msg.getmessage=isListFocused() orIslistSelected()
'itemindex is updated whenever IsListItemSelected()
else if m.li = 3 and mainposter[m.li].poster[itemindex].action="previous"
dialog.setmessageport(port)
dialog.show()
?"dialog should be showing"
m.co[3]=m.co[3]-m.limit 'page backwards
? "new offset"
?m.co[3]
?m.li
mainposter[3]=ReloadTracks(mainposter[3],PrepLatestTracks(m.co[3],m.limit))
?"close dialog"
dialog.close()
?"dialog should be closed"
else if m.li = 3 and mainposter[m.li].poster[itemindex].action="next"
dialog.setmessageport(port)
dialog.show()
?"Latest tracks section and a Page Forward item has been selected"
m.co[m.li]=m.co[m.li]+m.limit 'page forwards
? "new offset"
?m.co[m.li]
?m.li
mainposter[3]=ReloadTracks(mainposter[3],PrepLatestTracks(m.co[3],m.limit))
dialog.close()
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!