ignore empty values in fadelabel - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: ignore empty values in fadelabel (/showthread.php?tid=35427)
ignore empty values in fadelabel - Jeroen - 2008-07-31 23:47
I think it would be useful if fadelabels could have the option of skipping labels that are currently empty.
For instance in my music overlay I want to have a fadelabel switching between showing the currently playing track and the track next up in the playlist. If the last song of a playlist is playing or it has just 1 track it will switch between showing the playing track and showing..nothing
I also have a fadelabel showing lastfm related stuff, which are not always filled like the time left before submitting. Here this would be useful too.
- jmarshall - 2008-08-01 01:10
Hmm, thought it already did this. If not, seems like an easy addition (famous last words...)
- Jeroen - 2008-08-01 03:01
Nope, I definitely get empty space. Unless there's a magical tag I don't know about
- jmarshall - 2008-08-01 10:56
Revision 14625 may do the trick.
- Jeroen - 2008-08-01 12:41
Thanks Jonathan, working for me It does still refresh itself though (so the fading out and in of the label) even if there's just one value. That's not a big deal though.
One thing I failed to think of when posting my request though is this.
In the music overlay I want to have the two labels filled by these localized strings:
Now, in this case the "next track" label will show up even if there's no next track in the playlist. This of course makes total sense as the label isn't empty, it always has the static predefined text. Is there any way I could get around that? So to only display when the info management returns a "dynamic" value?
If not, I guess I could easily solve this should this request be implemented.
In any case thanks for your efforts
- jmarshall - 2008-08-02 01:04
You could try something like this:
- Jeroen - 2008-08-02 09:13
Heh, didn't know about that. That works perfectly