Merge pull request #1674 from 1hitsong/fullDescriptionPopup
Create popup with full TV series description
This commit is contained in:
commit
5ff768bb07
|
@ -22,6 +22,11 @@ sub init()
|
|||
"fontSize": 35,
|
||||
"fontUri": "font:SystemFontFile",
|
||||
"color": "#00a4dcFF"
|
||||
},
|
||||
"p": {
|
||||
"fontSize": 27,
|
||||
"fontUri": "font:SystemFontFile",
|
||||
"color": "#EFEFEFFF"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ sub init()
|
|||
m.Shuffle = m.top.findNode("Shuffle")
|
||||
m.extrasSlider.visible = true
|
||||
m.seasons = m.top.findNode("seasons")
|
||||
m.overview = m.top.findNode("overview")
|
||||
|
||||
m.overview.ellipsisText = tr(" ... (Press * to read more)")
|
||||
end sub
|
||||
|
||||
sub itemContentChanged()
|
||||
|
@ -194,11 +197,20 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
|||
|
||||
if not press then return false
|
||||
|
||||
overview = m.top.findNode("overview")
|
||||
if key = "options"
|
||||
if m.overview.isTextEllipsized
|
||||
if isAllValid([m.top.itemContent.json.name, m.top.itemContent.json.overview])
|
||||
m.global.sceneManager.callFunc("standardDialog", m.top.itemContent.json.name, { data: ["<p>" + m.top.itemContent.json.overview + "</p>"] })
|
||||
return true
|
||||
end if
|
||||
end if
|
||||
return false
|
||||
end if
|
||||
|
||||
topGrp = m.top.findNode("seasons")
|
||||
bottomGrp = m.top.findNode("extrasGrid")
|
||||
|
||||
if key = "down" and overview.hasFocus()
|
||||
if key = "down" and m.overview.hasFocus()
|
||||
m.Shuffle.setFocus(true)
|
||||
return true
|
||||
else if key = "down" and m.Shuffle.hasFocus()
|
||||
|
@ -222,7 +234,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
|||
m.Shuffle.setFocus(true)
|
||||
return true
|
||||
else if key = "up" and m.Shuffle.hasFocus()
|
||||
overview.setFocus(true)
|
||||
m.overview.setFocus(true)
|
||||
return true
|
||||
else if key = "play" and m.seasons.hasFocus()
|
||||
print "play was pressed from the seasons row"
|
||||
|
|
|
@ -1251,5 +1251,10 @@
|
|||
<translation>Random</translation>
|
||||
<extracomment>General use word when we want to randomize data</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source> ... (Press * to read more)</source>
|
||||
<translation> ... (Press * to read more)</translation>
|
||||
<extracomment>Ellipsis Text for when text overflows its container</extracomment>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Loading…
Reference in New Issue
Block a user