Animated png's does not rezise in Fullscreen Mode (1 Viewer)

mikael

Retired Team Member
  • Premium Supporter
  • April 30, 2005
    558
    94
    39
    Stockholm, Sweden
    Ok, this is what I want to do: add some animated png sequences to a skin. I add the following code to the xml file:
    Code:
    	<control>
    		<description>Animated png sequence</description>
    		<id>99999</id>
    		<posX>100</posX>
    		<posY>100</posY>
    		<type>animation</type>
     		<textures>1.png;2.png;3.png</textures>
    		<Duration>0:0:2</Duration>
    		<RepeatBehavior>Loop</RepeatBehavior>
    		<FillBehavior></FillBehavior>
    		<animation effect="fade" time="150">WindowOpen</animation>
    		<animation effect="fade" time="150">WindowClose</animation>
    	</control>

    This work seamless, but what happen when I press ALT+ENTER to enter the fullscreen mode in another resolution? All other gfx's and fonts are rezised to match the new screen resolution.... but not the animated sequence. Is this a bug or can I add a tag to allow this?
     

    Harley

    Retired Team Member
  • Premium Supporter
  • May 7, 2004
    2,053
    1,993
    Germany
    Home Country
    Germany Germany
    Hi,

    i think you must add the "width" and "height" tags.

    you can also use the new faeture "multiimage" for such things:

    <control>
    <type>multiimage</type>
    <id>1</id>
    <posX>100</posX>
    <posY>100</posY>
    <width>200</width>
    <height>200</height>
    <imagepath>Animation1</imagepath>
    <timeperimage>15000</timeperimage>
    <fadetime>10000</fadetime>
    <loop>yes</loop>
    <randomize>false</randomize>
    <animation effect="fade" time="200">VisibleChange</animation>
    </control>

    So you have only to name the path not all gfx seperate.

    Greetings Harley :)
     

    mikael

    Retired Team Member
  • Premium Supporter
  • April 30, 2005
    558
    94
    39
    Stockholm, Sweden
    Can't get this to work.

    When trying to use the new multiimage control, all elements below it in the xml just dissapear in the screen and no animation is showed. Is there any specific SVN that support this? I'm using version 12646.

    My code:
    Code:
    	<control>
    		<description>Animated sequence</description>
    		<type>multiimage</type>
    		<id>1</id>
    		<posX>20</posX>
    		<posY>238</posY>
    		<width>122</width>
    		<height>112</height>
    		<imagepath>Animation1</imagepath>
    		<timeperimage>1500</timeperimage>
    		<fadetime>1000</fadetime>
    		<loop>yes</loop>
    		<randomize>false</randomize>
    		<animation effect="fade" time="200">VisibleChange</animation>
    	</control>

    Also made a new folder in <skin>/media called Animation1 and putted png files into it (1.png, 2.png etc.)


    I also tried your tip of adding height and width tags to the old animation control. Didn't resize in fullscreen either...
     

    Users who are viewing this thread

    Top Bottom