2022-05-14 15:47:44 +00:00
|
|
|
sub init()
|
|
|
|
m.top.content = getData()
|
|
|
|
m.top.setfocus(true)
|
|
|
|
end sub
|
|
|
|
|
|
|
|
function getData()
|
|
|
|
if m.top.MusicArtistAlbumData = invalid
|
|
|
|
data = CreateObject("roSGNode", "ContentNode")
|
|
|
|
return data
|
|
|
|
end if
|
|
|
|
|
2022-05-14 21:14:15 +00:00
|
|
|
albumData = m.top.MusicArtistAlbumData
|
2022-05-14 15:47:44 +00:00
|
|
|
data = CreateObject("roSGNode", "ContentNode")
|
2022-05-14 23:25:17 +00:00
|
|
|
|
2022-05-14 21:14:15 +00:00
|
|
|
for each song in albumData.items
|
|
|
|
songcontent = data.createChild("ContentNode")
|
|
|
|
songcontent.title = song.title
|
2022-05-14 15:47:44 +00:00
|
|
|
end for
|
|
|
|
|
|
|
|
m.top.content = data
|
|
|
|
|
|
|
|
return data
|
2022-05-31 20:27:26 +00:00
|
|
|
end function
|