Posts: 17,418
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,418
If one of the info tabs is empty it still shows that (empty) label for the set time limit before showing the next in the list. I've got around this by using multiple fadelabels with visible conditions based on the info but wouldn't it better to get the fadelabel to skip any infos that are empty?
Thanks.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Hmm, I don't see any particular problem with doing that - it makes sense.
Anyone else have any issues?
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
No issues from me silly showing an empty label anyway I'd call it a bug
Posts: 26,215
Joined: Oct 2003
Reputation:
187
This only shows up if the first label is empty, right?
Any other empty label in the list is correctly skipped.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
r26740 should fix it up for missing first labels. As far as I can tell it was already working just fine for later labels.
Posts: 17,418
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,418
It was actually later ones I was having trouble with but I'll test again as soon as I can.
Thanks.
Posts: 17,418
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,418
Sorry, still not skipping later labels.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
It worked perfectly here with your exact skin mod as far as I could tell. Year comes up then the movie title (as tvshowtitle is empty it's skipped).
Posts: 1,155
Joined: Aug 2008
Hmm, i'm playing with Black's video/subtitle language script and if the infolabels are each in their separate label tags it still renders the empty labels
PHP Code:
<control type="fadelabel">
<width>40</width>
<height>33</height>
<font>font12_title</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<scroll>true</scroll>
<align>left</align>
<aligny>center</aligny>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.1)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.2)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.3)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.4)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.5)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.6)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.7)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.8)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.9)][/B][/UPPERCASE]</label>
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.10)][/B][/UPPERCASE]</label>[/B]
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
<scrollspeed>30</scrollspeed>
<visible>!IsEmpty(Window.Property(SubtitleLanguage.1)) + !IsEmpty(Window.Property(SubtitleLanguage.2))</visible>
</control>
If i use it like this it skips the empty labels.
PHP Code:
<label>[UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.1)][/B][/UPPERCASE] [UPPERCASE][B]$INFO[Window.Property(SubtitleLanguage.2)][/B][/UPPERCASE]
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2013-03-03, 17:28
(This post was last modified: 2013-03-03, 17:28 by phil65.)
did you try
$INFO[Window.Property(SubtitleLanguage.1),[UPPERCASE][ B],[/UPPERCASE][/B]] ?
Posts: 1,155
Joined: Aug 2008
I don't know how you come up with these answers, that seems to solve it. Other solution would be to use (info) for this and do the formatting in the font.xml.
Hell, i don't even understand what it does but that's fine.
Posts: 17,418
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,418
It seems XBMC isn't ignoring the formatting and so those labels aren't empty even though the property is!