One icon frame, two animations?
#1
Quick question: I have an icon panel with two different frames, one of which is supposed to replace the other after a brief delay. I've got the replacement frame working (in that it fades in after the specified time) but the original one won't fade out. I'm assuming this is because I can't get away with having both a zoom and fade animation assigned to a single control.

I tried containing the control in a group but then it didn't appear at all. I'm assuming you can't use groups within focusedlayout tags.

Here's the offending code:

PHP Code:
    <focusedlayout height="143" width="101">

              <
control type="image">

                  <
posx>10</posx>

                  <
posy>10</posy>

                  <
width>101</width>

                  <
height>143</height>

                  <
info>ListItem.Thumb</info>

                  <
texture>defaulticonphoto.png</texture>

                  <
aspectratio aligny="center">scale</aspectratio>

                  <
animation effect="zoom" end="-12,-20,144,204" time="200">Focus</animation>

              </
control>
              <
control type="image">

                  <
posx>0</posx>

                  <
posy>0</posy>

                  <
width>121</width>

                  <
height>163</height>

                  <
texture>photowallframe.png</texture>
                  <
animation effect="zoom" end="-32,-46,184,258" time="200">Focus</animation>
                  <
animation effect="fade" start="100" end="0" time="200" delay="4000">Visible</animation>
              </
control>
              <
control type="image">

                  <
posx>-32</posx>

                  <
posy>-46</posy>

                  <
width>392</width>

                  <
height>258</height>

                  <
texture>photowallframefull.png</texture>

                  <
animation effect="fade" end="100" time="200" delay="4000">Focus</animation>

              </
control>

         </
focusedlayout
Reply
#2
The visibility state of the control hasn't changed so it won't trigger it.

Just have a multiple anim using:

<animation type="focus">
<effect type="zoom" blah />
<effect type="fade" blah />
</animation>

See the online manual for the exact syntax.

And no, groups don't work within lists.

Cheers,
Jonathan
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
Is the multiple anims feature supported in the Linux build? If so, when was it added? I ask because it doesn't seem to be working here.
Reply
#4
It should be, yes. The commit to trunk was here:

http://xbmc.svn.sourceforge.net/viewvc/x...sion=11114

The commit to branch would have been the next merge.
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
#5
I tested multiple anims recently (Linux) and they seemed to work. Are they not working as expected or are they not working at all?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#6
Not at all. Here's the code:

PHP Code:
        <control type="image">

                  <
posx>0</posx>

                  <
posy>0</posy>

                  <
width>121</width>

                  <
height>163</height>

                  <
texture>photowallframe.png</texture>
                  <
animation type="focus">
                <
effect type="zoom" end="-32,-46,184,258" time="200" />
                    <
effect type="fade" end="0" time="200" delay="4000" />
                  </
animation>
              </
control
Reply
#7
If I take one of the effect strings out but leave the rest of the code unchanged, it'll play the one remaining animation fine. But when I put two in it plays neither.
Reply
#8
Never mind - fixed it. I needed a start opacity for the fade anim.
Reply

Logout Mark Read Team Forum Stats Members Help
One icon frame, two animations?0