i have this code and i need put highlight image and color in the text in rolist.
i need this conf:
ListItemHighlightHD pkg:/images/listitem_highlight_hd.png
ListItemHighlightSD pkg:/images/listitem_highlight_sd.png
ListItemHighlightText #CCCC00
ListItemText Gr Li Po #00CC00
ListScreenDescriptionText #00CC00
code
Function _DEBUG () As Boolean : Return True : End Function ' Return False in production code
' Main entry point
Sub Main ()
' Get main playlist index (can specify a local file or a url, and an optional timeout)
indexString = getPathToString ("pkg:/data/index.m3u8")
' Parse the index file returning a list of m3u8 playlist files
indexList = parseIndex (indexString)
' Display the list
displayIndexList (indexList)
End Sub
' Display a list of media items
Function displayIndexList (contentList As Object) As Void
app = CreateObject("roAppManager")
port = CreateObject ("roMessagePort")
ui = CreateObject ("roListScreen")
ui.SetMessagePort (port)
ui.SetContent (contentList)
ui.Show ()
While True
msg = Wait (0, port)
If Type (msg) = "roListScreenEvent"
If msg.IsScreenClosed ()
Exit While
Else If msg.IsListItemSelected ()
index = msg.GetIndex ()
displayItem (contentList [index])
Endif
Endif
End While
End Function
' Play an individual media item
Function displayItem (content As Object) As Void
port = CreateObject ("roMessagePort")
ui = CreateObject ("roVideoScreen")
ui.SetMessagePort (port)
ui.SetContent (content)
ui.Show ()
While True
msg = Wait (0, port)
logEvent ("displayItem", msg)
If Type (msg) = "roVideoScreenEvent"
print "showHomeScreen | msg = "; msg.getMessage() " | index = "; msg.GetIndex()
if msg.isScreenClosed()
print "Screen closed"
exit while
elseif msg.isRequestFailed()
print "Video request failure: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isStatusMessage()
print "Video status: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isButtonPressed()
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isPlaybackPosition() then
nowpos = msg.GetIndex()
RegWrite(episode.ContentId, nowpos.toStr())
else
print "Unexpected event type: "; msg.GetType()
end if
else
print "Unexpected message class: "; type(msg)
end if
end while
End Function]