MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Skins


Skins You are working on a new Skin? Post it here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-01-30, 08:23   #1 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 313
Thanks: 0
Thanked 8 Times in 4 Posts


Default how to repeat animations

i wanted to create a background animation for my skin.
for that i need an image to fade in and out forever.
i have searched the wiki, but i could not find anything.
how can i make an animation repeat itself forever?

if this isnt implemented, it would be nice to implement something like
repeatafter="time_in_msecs"
wertzui is offline   Reply With Quote
Old 2007-01-30, 12:21   #2 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 313
Thanks: 0
Thanked 8 Times in 4 Posts


Default

another idea for animations:
make it possible to animate an image on top of a control (ie have a gutton that is blue and a white picture fading on top of it, creates a nice effect)
wertzui is offline   Reply With Quote
Old 2007-01-30, 13:57   #3 (permalink)
Portal Designer
 
Harley's Avatar
 
Join Date: May 2004
Location: Germany
Posts: 930
Thanks: 99
Thanked 214 Times in 52 Posts

Country:


Default

Hi.

you can do it with this :

<control>
<type>multiimage</type>
<id>1</id>
<width>720</width>
<height>576</height>
<imagepath>back</imagepath>
<timeperimage>150</timeperimage>
<fadetime>100</fadetime>
<loop>yes</loop>
<randomize>false</randomize>
<animation effect="fade" time="200">VisibleChange</animation>
</control>




For a animation on top for a button you can create a common.ButtonAnimation.xml like this:

<window>
- <controls>
- <control>
<description>ButtonAnimation</description>
<type>animation</type>
<textures>Animations\Button000014.png;Animations\B utton000013.png;Animations\Button000012.png;Animat ions\Button000011.png</textures>
<Duration>0:0:04</Duration>
<RepeatBehavior>Forever</RepeatBehavior>
<FillBehavior>HoldEnd</FillBehavior>
</control>
</controls>
</window>

and import it to your buttoncontrol like this:

<control>
<description>default button</description>
<type>button</type>
<id>1</id>
<posX>300</posX>
<posY>200</posY>
<width>190</width>
<height>32</height>
<textXOff>10</textXOff>
<textYOff>5</textYOff>
<textureFocus>common.ButtonAnimation.xml</textureFocus>
<textureNoFocus>menu_list_nofocus.png</textureNoFocus>
<font>font13</font>
<textcolor>ffffffff</textcolor>
<colordiffuse>ffffffff</colordiffuse>
<disabledcolor>60ffffff</disabledcolor>
</control>

Greetings Harley

Last edited by Harley; 2007-01-30 at 14:08.
Harley is online now   Reply With Quote
Old 2007-01-30, 14:07   #4 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 313
Thanks: 0
Thanked 8 Times in 4 Posts


Default

<loop>yes</loop> doesnt work for me.

here is my code:
Code:
     <control>
       <animation effect="fade" time="3000" repeat="2">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="18000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>image</type>
       <description>background image1</description>
       <id>2</id>
       <posX>470</posX>
       <posY>10</posY>
       <width>250</width>
       <height>576</height>
       <texture>COMMON.BACKGROUND.LAYER1.PNG</texture>
     </control>
     <control>
       <animation effect="fade" time="3000" repeat="2" delay="3000">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="15000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>image</type>
       <description>background image2</description>
       <id>2</id>
       <posX>250</posX>
       <posY>0</posY>
       <width>470</width>
       <height>576</height>
       <texture>COMMON.BACKGROUND.LAYER2.PNG</texture>
     </control>
     <control>
       <animation effect="fade" time="3000" repeat="2" delay="6000">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="12000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>image</type>
       <description>background image3</description>
       <id>2</id>
       <posX>10</posX>
       <posY>370</posY>
       <width>670</width>
       <height>200</height>
       <texture>COMMON.BACKGROUND.LAYER3.PNG</texture>
     </control>
and do you have an idea how to animate an image over a button without having to create a lot of pngs?
when the button is selected, i want it to display the selectedtexture and have a fading animation with another image on top of that.
wertzui is offline   Reply With Quote
Old 2007-01-30, 14:09   #5 (permalink)
Portal Designer
 
Harley's Avatar
 
Join Date: May 2004
Location: Germany
Posts: 930
Thanks: 99
Thanked 214 Times in 52 Posts

Country:


Default

..take a look at my code you must use the multiimagefunktion

and for animation on top see my edit.

Harley .)
Harley is online now   Reply With Quote
Old 2007-01-30, 14:16   #6 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 313
Thanks: 0
Thanked 8 Times in 4 Posts


Default

multiimage doesnt work either.

and for animation on top of a button, i mean a fade animation, not an an animation where i have to create every single image.

Code:
     <control>
       <animation effect="fade" time="3000" repeat="2">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="18000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>multiimage</type>
       <description>background image1</description>
       <id>2</id>
       <posX>470</posX>
       <posY>10</posY>
       <width>250</width>
       <height>576</height>
       <imagepath>COMMON.BACKGROUND.LAYER1.PNG</imagepath>
       <timeperimage>3000</timeperimage>
       <fadetime>3000</fadetime>
       <randomize>false</randomize>
     </control>
     <control>
       <animation effect="fade" time="3000" repeat="2" delay="3000">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="15000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>multiimage</type>
       <description>background image2</description>
       <id>2</id>
       <posX>250</posX>
       <posY>0</posY>
       <width>470</width>
       <height>576</height>
       <imagepath>COMMON.BACKGROUND.LAYER2.PNG</imagepath>
       <timeperimage>3000</timeperimage>
       <fadetime>3000</fadetime>
       <randomize>false</randomize>
     </control>
     <control>
       <animation effect="fade" time="3000" repeat="2" delay="6000">WindowOpen</animation>
       <animation effect="fade" time="3000" repeat="2" delay="12000" start="100" end="0">WindowOpen</animation>
       <loop>yes</loop>
       <type>multiimage</type>
       <description>background image3</description>
       <id>2</id>
       <posX>10</posX>
       <posY>370</posY>
       <width>670</width>
       <height>200</height>
       <imagepath>COMMON.BACKGROUND.LAYER3.PNG</imagepath>
       <timeperimage>3000</timeperimage>
       <fadetime>3000</fadetime>
       <randomize>false</randomize>
     </control>

Last edited by wertzui; 2007-01-30 at 14:42.
wertzui is offline   Reply With Quote
Old 2007-01-30, 14:52   #7 (permalink)
Portal Designer
 
Harley's Avatar
 
Join Date: May 2004
Location: Germany
Posts: 930
Thanks: 99
Thanked 214 Times in 52 Posts

Country:


Default

Wertzui,

you must use a Multiimage like this steps :

1. you create a control like this:

<control>
<type>multiimage</type>
<id>1</id>
<width>720</width>
<height>576</height>
<imagepath>back</imagepath>
<timeperimage>150</timeperimage>
<fadetime>100</fadetime>
<loop>yes</loop>
<randomize>false</randomize>
<animation effect="fade" time="200">VisibleChange</animation>
</control>

2. you must create a new folder, in this example with the Name "back", in the Folder Media/animations.

3. you must put your images for the animation in this Folder Media/animations/back.

The images in the Folder "back" will be used in the animation, in the steps like the names are set, for example: if you name your gfx Picture1, Picture2, Picture3.... It will play it in this sequence. 1,2,3

So you must use multiimages, then it works fine

Harley
Harley is online now   Reply With Quote
Old 2007-01-30, 15:17   #8 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 313
Thanks: 0
Thanked 8 Times in 4 Posts


Default

ok, thx, i will try that out, when im at home.

and do you have another idea on how to animate an image on top of a button?
wertzui is offline   Reply With Quote
Old 2007-01-30, 16:02   #9 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

I guess what wertui means is how to loop using the NEW animation options, such as fade/slide/zoom etc. These are much smoother and easier to create too.

Unless already in, perhaps a property could be added to allow for such looping? (*wink*wink* @ rtv ;-))

It would then be easy to do bg animations. You could even easily reverse the animations easily by creating another one in reverse but with the delay set to the time of the first animation.

Anyways...
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Reply

Bookmarks

Tags
animations, repeat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
repeat and shuffle support within MP Orco Improvement Suggestions 2 2006-12-16 09:46
Hauppauge remote, not working. Haplo General Support 17 2006-02-18 04:24
Hauppauge 45 Buttons in My Video Fullscreen/back button bug miljbee The old Bugreport Forum 4 2006-02-10 18:51
Loosing control using Hauppage remote slyhne General Support 8 2006-02-10 17:23
Repeat playback and Play count MungoBBQ Improvement Suggestions 0 2005-06-16 09:10


All times are GMT +1. The time now is 07:24.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress