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