Update API docs
This commit is contained in:
parent
5ff768bb07
commit
cdbe7655d6
|
@ -24,6 +24,11 @@
|
||||||
"fontSize": 35,
|
"fontSize": 35,
|
||||||
"fontUri": "font:SystemFontFile",
|
"fontUri": "font:SystemFontFile",
|
||||||
"color": "#00a4dcFF"
|
"color": "#00a4dcFF"
|
||||||
|
},
|
||||||
|
"p": {
|
||||||
|
"fontSize": 27,
|
||||||
|
"fontUri": "font:SystemFontFile",
|
||||||
|
"color": "#EFEFEFFF"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@ sub init()
|
||||||
m.Shuffle = m.top.findNode("Shuffle")
|
m.Shuffle = m.top.findNode("Shuffle")
|
||||||
m.extrasSlider.visible = true
|
m.extrasSlider.visible = true
|
||||||
m.seasons = m.top.findNode("seasons")
|
m.seasons = m.top.findNode("seasons")
|
||||||
|
m.overview = m.top.findNode("overview")
|
||||||
|
|
||||||
|
m.overview.ellipsisText = tr(" ... (Press * to read more)")
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
sub itemContentChanged()
|
sub itemContentChanged()
|
||||||
|
@ -196,11 +199,20 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
|
|
||||||
if not press then return false
|
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")
|
topGrp = m.top.findNode("seasons")
|
||||||
bottomGrp = m.top.findNode("extrasGrid")
|
bottomGrp = m.top.findNode("extrasGrid")
|
||||||
|
|
||||||
if key = "down" and overview.hasFocus()
|
if key = "down" and m.overview.hasFocus()
|
||||||
m.Shuffle.setFocus(true)
|
m.Shuffle.setFocus(true)
|
||||||
return true
|
return true
|
||||||
else if key = "down" and m.Shuffle.hasFocus()
|
else if key = "down" and m.Shuffle.hasFocus()
|
||||||
|
@ -224,7 +236,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
m.Shuffle.setFocus(true)
|
m.Shuffle.setFocus(true)
|
||||||
return true
|
return true
|
||||||
else if key = "up" and m.Shuffle.hasFocus()
|
else if key = "up" and m.Shuffle.hasFocus()
|
||||||
overview.setFocus(true)
|
m.overview.setFocus(true)
|
||||||
return true
|
return true
|
||||||
else if key = "play" and m.seasons.hasFocus()
|
else if key = "play" and m.seasons.hasFocus()
|
||||||
print "play was pressed from the seasons row"
|
print "play was pressed from the seasons row"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user