Merge pull request #131 from cewert/fix-overhang-title
Set overhang title early, use real library names
This commit is contained in:
commit
2370d9f097
|
@ -3,7 +3,7 @@
|
|||
<interface>
|
||||
<field id="backPressed" type="boolean" alwaysNotify="true" />
|
||||
<field id="lastFocus" type="node" />
|
||||
<field id="overhangTitle" value="Jellyfin" type="string" />
|
||||
<field id="overhangTitle" type="string" />
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="JFGroup.brs" />
|
||||
</component>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<interface>
|
||||
<field id="id" type="string" />
|
||||
<field id="currentUser" type="string" onChange="updateUser" />
|
||||
<field id="title" value="Jellyfin" type="string" onChange="updateTitle" />
|
||||
<field id="title" type="string" onChange="updateTitle" />
|
||||
<field id="showOptions" value="true" type="boolean" onChange="updateOptions" />
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="JFOverhang.brs" />
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
sub init()
|
||||
m.top.overhangTitle = "Movie"
|
||||
main = m.top.findNode("main_group")
|
||||
dimensions = m.top.getScene().currentDesignResolution
|
||||
|
||||
main.translation=[50, 175]
|
||||
main.translation = [50, 175]
|
||||
|
||||
overview = m.top.findNode("overview")
|
||||
overview.width = dimensions.width - 100 - 400
|
||||
|
@ -104,7 +103,7 @@ end function
|
|||
sub setFavoriteColor()
|
||||
fave = m.top.itemContent.favorite
|
||||
fave_button = m.top.findNode("favorite-button")
|
||||
if fave <> invalid And fave
|
||||
if fave <> invalid and fave
|
||||
fave_button.textColor = "#00ff00ff"
|
||||
fave_button.focusedTextColor = "#269926ff"
|
||||
else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
sub init()
|
||||
m.top.overhangTitle = "Movies"
|
||||
|
||||
end sub
|
||||
|
||||
function onKeyEvent(key as string, press as boolean) as boolean
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
sub init()
|
||||
m.top.overhangTitle = "TV Show"
|
||||
main = m.top.findNode("toplevel")
|
||||
main.translation = [50, 175]
|
||||
end sub
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
sub init()
|
||||
m.top.overhangTitle = "TV Shows"
|
||||
|
||||
end sub
|
||||
|
||||
function onKeyEvent(key as string, press as boolean) as boolean
|
||||
|
|
|
@ -78,24 +78,27 @@ sub Main()
|
|||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = node.name
|
||||
group = CreateMovieListGroup(node)
|
||||
m.overhang.title = group.overhangTitle
|
||||
group.overhangTitle = node.name
|
||||
m.scene.appendChild(group)
|
||||
else if node.type = "tvshows"
|
||||
group.lastFocus = group.focusedChild
|
||||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = node.name
|
||||
group = CreateSeriesListGroup(node)
|
||||
m.overhang.title = group.overhangTitle
|
||||
group.overhangTitle = node.name
|
||||
m.scene.appendChild(group)
|
||||
else if node.type = "boxsets"
|
||||
group.lastFocus = group.focusedChild
|
||||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = node.name
|
||||
group = CreateCollectionsList(node)
|
||||
m.overhang.title = group.overhangTitle
|
||||
group.overhangTitle = node.name
|
||||
m.scene.appendChild(group)
|
||||
else
|
||||
' TODO - switch on more node types
|
||||
|
@ -108,8 +111,9 @@ sub Main()
|
|||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
group = CreateMovieListGroup(node)
|
||||
m.overhang.title = node.title
|
||||
group = CreateMovieListGroup(node)
|
||||
group.overhangTitle = node.title
|
||||
m.scene.appendChild(group)
|
||||
else if isNodeEvent(msg, "movieSelected")
|
||||
' If you select a movie from ANYWHERE, follow this flow
|
||||
|
@ -119,9 +123,10 @@ sub Main()
|
|||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = node.title
|
||||
group = CreateMovieDetailsGroup(node)
|
||||
group.overhangTitle = node.title
|
||||
m.scene.appendChild(group)
|
||||
m.overhang.title = group.overhangTitle
|
||||
else if isNodeEvent(msg, "seriesSelected")
|
||||
' If you select a TV Series from ANYWHERE, follow this flow
|
||||
node = getMsgPicker(msg, "picker")
|
||||
|
@ -130,9 +135,10 @@ sub Main()
|
|||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = node.title
|
||||
group = CreateSeriesDetailsGroup(node)
|
||||
group.overhangTitle = node.title
|
||||
m.scene.appendChild(group)
|
||||
m.overhang.title = group.overhangTitle
|
||||
else if isNodeEvent(msg, "seasonSelected")
|
||||
' If you select a TV Season from ANYWHERE, follow this flow
|
||||
ptr = msg.getData()
|
||||
|
@ -144,9 +150,9 @@ sub Main()
|
|||
group.setFocus(false)
|
||||
group.visible = false
|
||||
|
||||
m.overhang.title = series.overhangTitle + " - " + node.title
|
||||
group = CreateSeasonDetailsGroup(series.itemContent, node)
|
||||
m.scene.appendChild(group)
|
||||
m.overhang.title = group.overhangTitle
|
||||
else if isNodeEvent(msg, "episodeSelected")
|
||||
' If you select a TV Episode from ANYWHERE, follow this flow
|
||||
node = getMsgPicker(msg, "picker")
|
||||
|
|
Loading…
Reference in New Issue
Block a user