Announcement

Collapse
No announcement yet.

Change background without using xternal scripts

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change background without using xternal scripts

    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>

  • #2
    If you want to take it up a notch, I can show you how to update the the whole background.skin with the background image and skin on-the-fly so you get a fullscreen preview.

    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

    Comment


    • #3
      Shock V 6.x uses very similar code, and background.skin instead of picviewer.

      Might want to take a gander.
      Build Things, it keeps your brain busy.

      AutoPC v1 (Retired) - AutoPC v2 (in progress) - www.shocknet.us

      Comment


      • #4
        Originally posted by Sal R. View Post
        If you want to take it up a notch, I can show you how to update the the whole background.skin with the background image and skin on-the-fly so you get a fullscreen preview.


        Hmm don't tell me, I'll go and have a play.

        Comment


        • #5
          Is this still the only way to change background image on the fly?
          My BMW E46 carpc
          My iGuidance 4 skin
          FS transflective 2008 lilliput

          Comment


          • #6
            Currently, you can do this or use the picviewer to browse backgrounds -- and the skin must be reloaded.
            Ride Runner RR's Myspace

            "Being happy is not about having what you want, it's about wanting what you have."
            "The best things in life are always free - but that doesn't mean money can't buy you good things."

            Comment


            • #7
              Can I just use this for one skin.

              I have tried many times to set up a back ground skin and it never works.
              I only want this to work for my audio player.

              1: do I have to use .png for all the skins, or will I get a type mismatch error?
              2: or can I just have the backgound on the audioplayer and have it only with png files.

              thanks
              Cliff

              Comment

              Working...
              X