mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-01 02:10:47 +00:00
a33ce8bd57
* Add TV Episode Shuffle * Reuse playback info * Get Subtitle Popup working * Get Subtitle Popup working * Get Resume/Restart popup working * Playlist poster, bug fixes * Remove commented out code * Start from beginning if playing queue * Fix Playback Info issue * Remove optional chaining to fix formatter * Fix playlist content list. Code cleanup. * Remove commented out code
37 lines
916 B
Plaintext
37 lines
916 B
Plaintext
sub init()
|
|
m.content = m.top.findNode("content")
|
|
m.top.observeField("contentData", "onContentDataChanged")
|
|
|
|
m.top.id = "OKDialog"
|
|
m.top.height = 900
|
|
m.top.title = "What's New?"
|
|
m.top.buttons = [tr("OK")]
|
|
|
|
m.dialogStyles = {
|
|
"default": {
|
|
"fontSize": 27,
|
|
"fontUri": "font:BoldSystemFontFile",
|
|
"color": "#EFEFEFFF"
|
|
},
|
|
"b": {
|
|
"fontSize": 27,
|
|
"fontUri": "font:SystemFontFile",
|
|
"color": "#999999"
|
|
},
|
|
"header": {
|
|
"fontSize": 35,
|
|
"fontUri": "font:SystemFontFile",
|
|
"color": "#00a4dcFF"
|
|
}
|
|
}
|
|
|
|
end sub
|
|
|
|
sub onContentDataChanged()
|
|
for each item in m.top.contentData.data
|
|
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
|
|
textLine.drawingStyles = m.dialogStyles
|
|
textLine.text = item
|
|
end for
|
|
end sub
|