Announcement

Collapse
No announcement yet.

There's gotta be a better way to do this...

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

  • There's gotta be a better way to do this...

    So here's what I'm trying to do:
    I'm putting together a non-standard skin that will allow the viewing of pictures LIKE the PICVIEWER.skin, BUT is not the PICVIEWER.skin. This skin will have different function, but it needs the ability to preview pictures.

    Here is my current work around for my TOOLS_CONFIG_ICONVIEWER.skin:

    Code:
    TMR,001
    
    /, SD, Alignment;Alignment, Disp;MODE, Icon Width, Icon Heigth, Path
    SD,0,0,50,50,"$skinpath$","*.*",TRUE
    
    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B21,0,550,89,50,"EXIT",""
    B09,600,121,113,50,"PGUP||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    B10,600,171,113,50,"UP||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",",
    B13,600,372,114,50,"DOWN||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    B14,600,422,114,50,"PGDOWN||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    
    B14,356,500,88,50,"",
    
    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L19,181,92,437,29,#MMITITLER#,#MMITITLEG#,#MMITITLEB#,#MMITITLESIZE01#,#MMITITLEFONT01#,"=$imgpathname$$imgfilename$","SCROLL-CENTER"
    
    L20,356,510,88,30,#SUBR#,#SUBG#,#SUBB#,#MMINAVBARSIZE01#,#MMINAVBARFONT01#,"=Select","Center"
    
    /, S, x, y, w, h, fore R;RGB, G, B,  back R;RGB, G, B,  folder R;RGB, G, B,  file R;RGB, G, B, selected R;RGB, G, B, select R;RGB, G, B, trs, font pt;FONT, font name
    S01,310,135,286,326,#FORER#,#FOREG#,#FOREB#,#DUMMYR#,#DUMMYG#,#DUMMYB#,#FOLDERR#,#FOLDERG#,#FOLDERB#,#FILER#,#FILEG#,#FILEB#,#SELECTEDFORER#,#SELECTEDFOREG#,#SELECTEDFOREB#,#SELECTEDFONTR#,#SELECTEDFONTG#,#SELECTEDFONTB#,true,#LISTSIZE01#,#LISTFONT01#
    
    /, J, x, y, w, h
    /,J01,155,211,138,148
    Code:
    "TIMER","SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",TOOLS_CONFIG_ICONVIEWER.skin
    This skin works, but has its drawbacks:
    1 - Does not maintain the picture's aspect ratio
    2 - .5 sec delay in loading the image when choosing an image in the DL list instead of the UP/DOWN/PGUP/PGDOWN buttons since it is contigent on the TMR,001 value.
    3 - Limited to only the skin directory. Does not allow for subfolders.

    NOTE: the (J) box was commented out purposely since my earlier attempts do display images in a directory didn't pan out outside of the picviewer skin.

    Does anyone know how I can emulate the function of the RR PICVIEWER skin instead of my current method which involves the loading/unloading of selected images?

    To view only specific file types the SD line should follow a similar format like so: (THANKS MGD!)
    Code:
    SD,0,0,50,50,"$skinpath$","*.jpg;*.gif;*.png;*.bmp",TRUE
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  • #2
    Here's what the skin looks like, to help give you an idea of how it works...

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

    Comment


    • #3
      As for the all or nothing, I am not sure about that, but you can define that in the SD for that particular directory list, and not effect others in the skin.

      SD,00,01,50,50,"C:","*.*",1

      To maintain the aspect ratio of an image, place :A after the image, SOmething like this

      $MyImage$:A

      Hopefully this helps with a couple of the problems.....
      Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

      My Fiero Build Thread

      Comment


      • #4
        Originally posted by JohnWPB View Post
        As for the all or nothing, I am not sure about that, but you can define that in the SD for that particular directory list, and not effect others in the skin.

        SD,00,01,50,50,"C:","*.*",1
        If I wanted to filter only one type of file (i.e *.png), then it would work. However, if I wanted to only display image files, (.jpg, .png, .gif, .bmp, etc.), the "*.jpg,*.png,*.gif,*.bmp" doesn't work.

        Specifically, I have the directory set to the skinpath and want to browse the image files only and omit the .skin files.

        Originally posted by JohnWPB View Post
        To maintain the aspect ratio of an image, place :A after the image, SOmething like this

        $MyImage$:A
        Doesn't work w/ the LOADIMG command, which is what i use to load images in a predefined area.

        Works great w/ I,XX,..."PICTURE:A" tho. Unfortunately, doesn't work too well w/o the picviewer.skin.

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

        Comment

        Working...
        X