Ok, this is something that has bugged me for a while, and one of the reasons iDrive transparent hasn't been released yet.
I wanted a way of changing the background without
1. using an external script or program
and
2. using the picviewer skin/screen.
And also allowing for seperate picture and backgrounds locations.
I have now got it working. I think.
Note: Assumes you have a backgrounds folder in the root of RoadRunner, which is where I recommend everyone has it rather than a backrounds folder in each skin.
in exectbl.ini have the following
Code:
"ONSKINSTART","BYVAR;strt;AUDIO<<load;background.skin||SETVAR;strt;0"
"TIMER","SETVARBYCODE;LISTTEXT;LISTTEXT||SETVAR;bground;$rrpath$backgrounds\$LISTTEXT$",BACKGROUND.SKIN
.
in your background.skin
Code:
TMR,1
B,x,y,w,h,"PGUP",""
B,x,y,w,h,"UP",""
B,x,y,w,h,"DOWN",""
B,x,y,w,h,"PGDOWN",""
B,x,y,w,h,"SETVARBYCODE;LISTTEXT;LISTTEXT||SETVAR;bground;$rrpath$backgrounds\$LISTTEXT$||SAVETOSKIN;background;$rrpath$backgrounds\$LISTTEXT$||SETVAR;strt;1||RELOADSKIN",""
SD,x,y,w,h,"$rrpath$backgrounds\","*.jpg",false
S01,x,y,w,h,",255,255,255,000,000,000,000,000,000,255,255,0,TRUE,18,"Tahoma:B"
I,210,050,580,360,"FILE;$bground$"
.
Ok, I'll try to explain what happens
The onskinstart line is done such that if the variable
strt is zero it goes to the AUDIO screen (this is of course optional and up to you, change or delete as necessary) whereas if it is 1 it goes to the background skin, this is so that once you have changed the background, the skin needs to be reloaded and if so you want to come back to the background screen.
The main button line is the one that sets the background variable in your skin.ini and also sets the strt variable to 1.
Now the TIMER sets a timer up in the background screen to set the bground variable to the currently selected file in the list.
The result of this is that every second (TMR,1) this variable is updated and list variable is used in the Indicator line to display that image.
This will not work on the last December RR release as thei is a bug in the indicator function, but should work in the previuos release (november) and the new one when Guino releases it.
If this is any good to you great, if not then sorry to have wasted your time with my inane babbling.
As a side note I also added a similar button in my picviewer.skin so that A picture from the pictures folder can be set as background.
<post subjected to editing once I have reread it a number of times to see if it makes sense>