[REQUEST] Fade Image Control
#1
This post gave me the idea for a new image control.

Basically the same as a multiimage control but instead of a folder containing images we can fill it with various images from different places.

ie

PHP Code:
<control type="fadeimage">
    <
description>Fade Image Control</description>
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
texture>$INFO[Skin.String(CustomImage)]</texture>
    <
info>Fanart.Image</info>
    <
timeperimage>5000</timeperimage>
    <
fadetime>2000</fadetime>
    <
pauseatend>10000</pauseatend>
    <
randomize>true</randomize>
    <
loop>no</loop>
    <
aspectratio>scale</aspectratio>
</
control

Thanks.
Reply
#2
Without manually setting the content like my suggestion with a list control this wouldn't work, would it? So you would need something like this:

Code:
<control type="fadeimage">
    <description>Fade Image Control</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>720</height>
    <timeperimage>5000</timeperimage>
    <fadetime>2000</fadetime>
    <pauseatend>10000</pauseatend>
    <randomize>true</randomize>
    <loop>no</loop>
    <aspectratio>scale</aspectratio>
    <content>
        <image id="1">$INFO[LatestMovie.1.Fanart]</image>
        <image id="2">$INFO[LatestMovie.2.Fanart]</image>
        <image id="3">$INFO[LatestMovie.3.Fanart]</image>
    </content>
</control>
Image
Reply
#3
It would work the same way as a fade label control and just skip any values that aren't filled.

In your case above -

PHP Code:
<control type="fadeimage">
    <
description>Fade Image Control</description>
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
texture>$INFO[LatestMovie.1.Fanart]</texture>
    <
texture>$INFO[LatestMovie.2.Fanart]</texture>
    <
texture>$INFO[LatestMovie.3.Fanart]</texture>
    <
texture>$INFO[LatestMovie.4.Fanart]</texture>
    <
texture>$INFO[LatestMovie.5.Fanart]</texture>
    <
texture>$INFO[LatestMovie.6.Fanart]</texture>
    <
timeperimage>5000</timeperimage>
    <
fadetime>2000</fadetime>
    <
pauseatend>10000</pauseatend>
    <
randomize>true</randomize>
    <
loop>no</loop>
    <
aspectratio>scale</aspectratio>
</
control
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Fade Image Control0