Announcement

Collapse
No announcement yet.

Changing media.gif on-the-fly

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

  • Changing media.gif on-the-fly

    I'm trying to follow the tip in skin commands.txt:

    *Trick: It is possible to have different icons for FOLDER/MEDIA on separate screens of the SAME skin. For this,
    simply rename/copy the desired image as above before loading the corresponding screen.
    This can easily be done running a .BAT file with the RUNQW command (in front of your load/list command).



    I have a Music, Image and Video.gif file that I have Music, Image and Video.bat files for

    e.g.
    Music.bat: echo Y|copy music.gif media.gif

    I then have the following to load my skin file (this one is from a button color chooser skin, where I want the icons to be image.gif)

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B,0,0,90,60,"runqw;Image.bat||load;buttoncolor.ski n||EFFECT;4||SETPATH;$skinpath$backgrounds\2"

    This doesn't work as it should, for any of the screens (video browser should show video.gif, audio browser show music.gif, picviewer show image.gif) UNLESS I also RELOADSKIN, then it will dynamically change as it should.

    Any ideas?
    Rich

  • #2
    are you preloading any of those screens -- that could be the issue. the image is loaded at the time of loading the screen, preloading would make them all load the initial file.
    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


    • #3
      I am preloading:

      preload=Audio_Player.skin
      preload=audio_browser.skin
      preload=EXTERNAL_GPS.skin
      preload=External_DVD.skin
      preload=picviewer.skin

      I removed the preloads and it still misbehaves, however, if I RELOADSKIN it works as advertised. If I switch skins through skin browser it's still wrong.

      Unique to my system?

      Comment


      • #4
        did you remove the preloads and re-started RR and it misbehaved ? interesting....
        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


        • #5
          yes, exited RR, removed preload line in RR.ini, re-started RR and it still won't work unless I press a button that has a RELOADSKIN on it.

          Comment


          • #6
            I'll see what I can do..
            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
              thanks

              Comment


              • #8
                By the way, the new 9-02 version of RR also has this problem with LDIMG on my two systems (inside and outside) Namely, it doesn't behave correctly unless I also RELOADSKIN.

                In this case, I have code to show my button color choices, I'm LDIMG my button color image, then LOADIMG my menu.png over that, so the transparent areas in menu.png show the selected color from LISTTEXT.

                This worked when I used LOADIMG for both LISTTEXT and MENU_off.png, but I had to have the LISTTEXT chosen file in the skin folder.

                B03,19,540,90,60,"DOWN||SETVARBYCODE;LISTTEXT;LIST TEXT||LDIMG;295;106;445;332;$skinpath$Backgrounds\ $LISTTEXT$;OUT||LOADIMG;295;106;445;332;Menu_Off.p ng;OUT",

                Now, what it loads the LISTTEXT chosen file on TOP of MENU_off.png so all I see is a solid color, not my menu with colored buttons.

                If I then REALOADSKIN, it works as intended.

                No biggie, not used much, just something for the back burner and it may somehow be specific to my setup on my two machines.

                Rich

                Comment


                • #9
                  Fixed my own situation, or at least have a workaround, in both cases.

                  in the case of on-the-fly changing media.gif, I'd been runqw a bat file to do this, only works if I RELOADSKIN, BUT if I add $skinpath$ to the runqw line everything works fine.

                  In the case of a LDIMG piped with a LOADIMG, it seems that the LOADIMG won't work because it doesn't remember the path? If I use two LDIMG piped together, and specify the path for each, it works fine.

                  Both these quirks seem to be path related somehow...

                  Comment


                  • #10
                    I've added support for custom media/folder icons on a per-screen basis.. it will be available on the next release (prob. later tonight).
                    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

                    Working...
                    X