Making 2 labels fade "into" each other

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
GtwoK Offline
Junior Member
Posts: 30
Joined: Sep 2010
Reputation: 0
Post: #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.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #2
Fade Label http://wiki.xbmc.org/index.php?title=Fade_Label_Control
all found here http://wiki.xbmc.org/?title=Controls

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote