Auto change Background image?
#1
Still new to this and couldnt find anything online about it. Is there any way to have background images in the different sections (weather, tv shows etc) change randomly from a folder of images. Perhaps there is a skin that can do this? Thanks for any help! Smile
Reply
#2
Finknz Wrote:Still new to this and couldnt find anything online about it. Is there any way to have background images in the different sections (weather, tv shows etc) change randomly from a folder of images. Perhaps there is a skin that can do this? Thanks for any help! Smile

Have you tried to see how other skins do it! Just about every skin can do that. The Wiki would be a good read. http://wiki.xbmc.org/index.php?title=Lis..._Functions
Noli illegitimi carborundum


Reply
#3
Skin.SetPath(string[,value])
Pops up a folder browser and allows the user to select a folder of images to be used in a multi image control else where in the skin via the info tag Skin.String(string). If the value parameter is specified, then the file browser dialog does not pop up, and the path is set directly.

Is this what you are referring to in the wiki? So then the partial answer to the OP's question is yes?

Is there anything to read that might tell us how to actually get xbmc to do this?
My first HTPC build
My UnRaid Server
Kingston rebates and ASUS warranties are WORTHLESS FRAUDS
Reply
#4
Just re-read the question (Sorry I'm stumped about something else & distracted). Are you just using XBMC, in which case somewhere in the skin settings there's an option to change the backgrounds with a choice of multi image backgrounds.

if you're trying to code a skin then

Use Skin.SetPath(string[,value]) to set the directory then as in Confluence's Home.xml

PHP Code:
Line 5

    
<control type="multiimage">
        <
posx>0</posx>
        <
posy>0</posy>
        <
width>1280</width>
        <
height>720</height>
        <
imagepath background="true">$INFO[Container(9000).ListItem.Icon]</imagepath>
       <
timeperimage>8000</timeperimage>
       <
randomize>true</randomize>
      <
fadetime>1000</fadetime>
    </
control>

Line 586
        
    
<content>
    <
item id="7">
        <
label>8</label>
        <
onclick>ActivateWindow(Weather)</onclick>
        <
icon>special://skin/backgrounds/weather.jpg</icon>
        
<thumb>$INFO[Skin.String(Home_Custom_Back_Weather_Folder)]</thumb>
           <
visible>!Skin.HasSetting(HomeMenuNoWeatherButton)</visible>
    </
item>
    <
item id="4">
         <
label>1</label>
         <
onclick>ActivateWindow(Pictures)</onclick>
                 <
icon>special://skin/backgrounds/pictures.jpg</icon>
        
<thumb>$INFO[Skin.String(Home_Custom_Back_Pictures_Folder)]</thumb>
        <
visible>!Skin.HasSetting(HomeMenuNoPicturesButton)</visible>
    </
item

Some XBMC Skinning Tutorials are here
http://wiki.xbmc.org/index.php?title=XBM..._Tutorials

With more links to "Skinning XBMC" and the "XBMC Skinning Manual"
Noli illegitimi carborundum


Reply
#5
Mudislander Wrote:Have you tried to see how other skins do it! Just about every skin can do that. The Wiki would be a good read. http://wiki.xbmc.org/index.php?title=Lis..._Functions

Eek Thanks for that, was so simple and I was looking right at it all along.
Reply

Logout Mark Read Team Forum Stats Members Help
Auto change Background image?0