implement hover and hide in musicartists
This commit is contained in:
parent
1eba4cb5a9
commit
21de119ff7
|
@ -1,5 +1,6 @@
|
|||
sub init()
|
||||
m.itemPoster = m.top.findNode("itemPoster")
|
||||
m.postTextBackground = m.top.findNode("postTextBackground")
|
||||
m.posterText = m.top.findNode("posterText")
|
||||
m.posterText.font.size = 30
|
||||
m.backdrop = m.top.findNode("backdrop")
|
||||
|
@ -14,6 +15,10 @@ sub init()
|
|||
m.itemPoster.loadDisplayMode = m.topParent.imageDisplayMode
|
||||
end if
|
||||
|
||||
m.gridTitles = get_user_setting("itemgrid.gridTitles")
|
||||
m.posterText.visible = m.gridTitles = "showalways"
|
||||
m.postTextBackground.visible = m.posterText.visible
|
||||
|
||||
end sub
|
||||
|
||||
sub itemContentChanged()
|
||||
|
@ -40,6 +45,14 @@ sub itemContentChanged()
|
|||
end if
|
||||
end sub
|
||||
|
||||
'Display or hide title Visibility on focus change
|
||||
sub focusChanged()
|
||||
if m.gridTitles = "showonhover"
|
||||
m.posterText.visible = m.top.itemHasFocus
|
||||
m.postTextBackground.visible = m.posterText.visible
|
||||
end if
|
||||
end sub
|
||||
|
||||
'Hide backdrop and text when poster loaded
|
||||
sub onPosterLoadStatusChanged()
|
||||
if m.itemPoster.loadStatus = "ready"
|
||||
|
|
Loading…
Reference in New Issue
Block a user