Another fadelabel question/request
#1
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.
Reply
#2
Hmm, I don't see any particular problem with doing that - it makes sense.

Anyone else have any issues?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Here's a way to test it on Confluence.

Open the ViewsVideoLibrary.xml and change this group
Code:
<control type="label">
    <posx>0</posx>
    <posy>550</posy>
    <width>1280</width>
    <height>35</height>
    <font>font30</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <scroll>true</scroll>
    <align>center</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Year]</label>
</control>
at line 146 to
Code:
<control type="fadelabel">
    <posx>0</posx>
    <posy>550</posy>
    <width>1280</width>
    <height>35</height>
    <font>font30</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <scroll>true</scroll>
    <align>center</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Year]</label>
    <label>$INFO[ListItem.TVShowTitle]</label>
    <label>$INFO[ListItem.Title]</label>
    <textcolor>FFFFFFFF</textcolor>
    <scrollout>false</scrollout>
    <pauseatend>3800</pauseatend>
    <scrollspeed>28</scrollspeed>
</control>
Then switch to Poster Wrap in Movies and watch the Year label.
Reply
#4
No issues from me silly showing an empty label anyway I'd call it a bug
Reply
#5
This only shows up if the first label is empty, right?

Any other empty label in the list is correctly skipped.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
r26740 should fix it up for missing first labels. As far as I can tell it was already working just fine for later labels.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
It was actually later ones I was having trouble with but I'll test again as soon as I can.

Thanks.
Reply
#8
Sorry, still not skipping later labels.
Reply
#9
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).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#10
My apologies Jonathan, you're correct it is working - I've no idea why it wasn't this morning. Blush

Now that it is working, any idea on when we'll be able get more than one Audio & Subtitle Language? Wink

Thanks.
Reply
#11
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
Reply
#12
did you try

$INFO[Window.Property(SubtitleLanguage.1),[UPPERCASE][ B],[/UPPERCASE][/B]] ?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#13
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. Nod
Reply
#14
It seems XBMC isn't ignoring the formatting and so those labels aren't empty even though the property is!
Reply

Logout Mark Read Team Forum Stats Members Help
Another fadelabel question/request0