Making 2 labels fade "into" each other
#1
I have 2 labels placed on top of each other, of which I would like one appearing at a time. Every 8 seconds, the current one should fade out and the new one fade in. How would I go about accomplishing this? I'm currently trying

Code:
            <control type="grouplist" id="26">
                <animation effect="fade" start="0" end="100" time="200" condition="!IsEmpty(MusicPlayer.offset(-1).Title) + !IsEmpty(MusicPlayer.offset(1).Title) + Control.IsVisible(25)">Conditional</animation>
                <animation effect="fade" start="100" end="0" time="200" delay="8000" condition="!IsEmpty(MusicPlayer.offset(-1).Title) + !IsEmpty(MusicPlayer.offset(1).Title) + !Control.IsVisible(26)">Conditional</animation>
                <posx>30</posx>
                <posy>38</posy>
                <width>600</width>
                <height>40</height>
                <itemgap>6</itemgap>
                <align>left</align>
                <orientation>horizontal</orientation>
                <visible>!IsEmpty(MusicPlayer.offset(-1).Title)</visible>
                <control type="label">
                    <width min="10" max="600">auto</width>
                    <height>38</height>
                    <aligny>center</aligny>
                    <font>Font_OSDInfoLabelHeading</font>
                    <textcolor>OSDInfo</textcolor>
                    <label>[b]$LOCALIZE[210]:[/b]</label>
                </control>
                <control type="fadelabel">
                    <width min="10" max="600">auto</width>
                    <height>40</height>
                    <aligny>center</aligny>
                    <scrollout>false</scrollout>
                    <pauseatend>3800</pauseatend>
                    <scrollspeed>80</scrollspeed>
                    <scroll>true</scroll>
                    <font>Font_OSDInfoLabel</font>
                    <textcolor>OSDInfo</textcolor>
                    <label>$INFO[MusicPlayer.offset(-1).Title]</label>
                </control>
            </control>

            <control type="grouplist" id="25">
                <animation effect="fade" start="0" end="100" time="200" condition="!IsEmpty(MusicPlayer.offset(-1).Title) + !IsEmpty(MusicPlayer.offset(1).Title) + !Control.IsVisible(26)">Conditional</animation>
                <animation effect="fade" start="100" end="0" time="200" delay="8000" condition="!IsEmpty(MusicPlayer.offset(-1).Title) + !IsEmpty(MusicPlayer.offset(1).Title) + Control.IsVisible(25)">Conditional</animation>
                <posx>30</posx>
                <posy>38</posy>
                <width>600</width>
                <height>40</height>
                <itemgap>6</itemgap>
                <align>left</align>
                <orientation>horizontal</orientation>
                <visible>!IsEmpty(MusicPlayer.offset(1).Title)</visible>
                <control type="label">
                    <width min="10" max="600">auto</width>
                    <height>38</height>
                    <aligny>center</aligny>
                    <font>Font_OSDInfoLabelHeading</font>
                    <textcolor>OSDInfo</textcolor>
                    <label>[b]$LOCALIZE[209]:[/b]</label>
                </control>
                <control type="fadelabel">
                    <width min="10" max="600">auto</width>
                    <height>40</height>
                    <aligny>center</aligny>
                    <scrollout>false</scrollout>
                    <pauseatend>3800</pauseatend>
                    <scrollspeed>80</scrollspeed>
                    <scroll>true</scroll>
                    <font>Font_OSDInfoLabel</font>
                    <textcolor>OSDInfo</textcolor>
                    <label>$INFO[MusicPlayer.offset(1).Title]</label>
                </control>
            </control>

But it doesn't work - try it to see.
Reply
#2
Fade Label http://wiki.xbmc.org/index.php?title=Fade_Label_Control
all found here http://wiki.xbmc.org/?title=Controls
Reply

Logout Mark Read Team Forum Stats Members Help
Making 2 labels fade "into" each other0