2 multi image in sync
#1
Right now i have 2 multi image controls that are not randomized (so they are in sync most of the time as they both start on window open).
One of them is not visible when there is fanart available (#2). But the other continues the slideshow (#1).
Now if a listitem has no fanart, the #2 starts fresh with slideshow image 1. Instead of the same image #1 is using.

So i thought maybe i can use just one multiimage and include it 2x in a different place. Me thinking, 1 multiimage thus in "sync".
One is the actual background, the other is in a viewtype. But... One of them (the one in the viewtype) needs a diffuse.
I can't see how i can include, condition or var that...

Ideas?

Or maybe we can change behavior of multiimage to always "keep counting" as it is not really a downside for anyone else if it starts with img nr x.

also, would it not be easy if a diffuse was a separate control?
Feature freeze != Idea freeze Tongue
Code:
<control type="diffuse">
    <posx>300</posx>
    <posy>200</posy>
    <width>500</width>
    <height>400</height>
    <aspectratio>keep</aspectratio>
    <texture>white.png</texture>
    <apply_to_image_id>29834</apply_to_image_id>
</control>

<control type="image" id="29834">
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>720</height>
    <aspectratio>stretch</aspectratio>
    <texture>$INFO[Skin.String(GlobalBackground)]</texture>
    <visible>Control.IsVisible(50)</visible>
    <colordiffuse>FF707070</colordiffuse>
</control>

Big Grin
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#2
The controls are in sync... only problem is the timeperimage value. So if an image is visible for 5 of 10 seconds in the first image control while the seconds becomes visible, the first control is 5 seconds ahead of the second. Only thing you could do is really just using one control (2 includes won't help) and animate it accordingly.
Image
Reply
#3
Yeah, that is what i meant by sync. My idea was, including the one control in both the background and in the viewtype.
Problem is giving only one of them a diffuse.

Or i misunderstood you.

And what exactly do you mean animate accordingly?
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#4
Won't work with includes, you will have the same problem. If at one time both controls are visible, you are out of luck at the moment.
Image
Reply
#5
Hide the multi-image control off-screen and use Control.GetLabel(ID_OF_MULTIIMAGE) in both image controls.
Reply
#6
Nice tip, that could work.
Image
Reply
#7
I'll have a look at it. See if i can figure that out.

Otherwise:
Quote:"We'll sell it as a feature."


Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#8
Works!
You rock Hitch!

Follow up: Any condition i can use to give it a little fade in?
Seems to happen too fast to check for isempty.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply

Logout Mark Read Team Forum Stats Members Help
2 multi image in sync0