Kodi Community Forum

Full Version: Multiimage control in Item and Focuslayout (Icon)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody

I'm trying to use the Multiimage control for my main menu I have used the image control for now just for ease of testing (I'm pretty novice skinner Confused):

PHP Code:
<itemlayout width="168" height="245">
                <
control type="image">        <!-- Actual Icon -->
                    <
posx>1</posx>
                    <
posy>131</posy>
                    <
width>162</width>
                    <
height>241</height>
                    <
colordiffuse>MatteDiffuse</colordiffuse>
                    <
texture background="true" diffuse="postermatte.png">$INFO[ListItem.ActualIcon]</texture>
                    <
aspectratio scalediffuse="false">stretch</aspectratio>
                </
control>

EXTRA CODE

                
<item id="1">
                    <
description>Games</description>
                    <
icon>C:\xbmc\covermenu\Games\01.jpg</icon>
                    <
onclick>ActivateWindow(10001,&quot;plugin://plugin.program.advanced.launcher/&quot;,return)</onclick>
                    
<visible>!Skin.HasSetting(NoSettings)</visible>
                </
item

Is it possible to use the multiimage control this way?
Yes, this is how I once did the home style for Alaska Revisited but if you randomise the images you'll get different sets for the itemlayout and focusedlayout controls. To see what I mean check out this video -

http://www.youtube.com/watch?v=r32Bm7WepTY

Hopefully when JM adds Control.GetLabel() for multiimage controls this can be fixed by using the same, off screen images.
Hi Hitcher

Thx for the swift respond.

But if I remember correctly you did this with the default layout in Alaska. Which kind of witchcraft did you use to achieve this? EekLaugh
That uses a custom list with lots of animations.
Too bad. Well I can live with it for now. How is it done?

I tried to change the image control to multiimage and change the Icon control to the path of the images but this didn't work. I persume multiimage can load the path some way? Huh
Did you remember to change texture to imagepath?
That did the trick Thx