Announcement

Collapse
No announcement yet.

Use a Main screen with buttons or labels in option by Includes files

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

  • Use a Main screen with buttons or labels in option by Includes files

    Hello,
    Always for my last plugin, i should like to know if i can create a main screen as my RRGoogleMapsTools.skin
    with a minimum of buttons, labels, indicators, etc.. and have the possibility to add on the fly (with a reloadscreen),some other buttons, labels and indicators ?

    I have tried that:
    My main skin:
    RideRunner Skin
    RRScreen RRGoogleMapsTools
    RRGoogleMapsTools_off.png,RRGoogleMapsTools_off.pn g,RRGoogleMapsTools_on.png,RRGoogleMapsTools_down. png

    INC,RRGoogleMapsTools_INC_GpsToAdd.skin

    ...

    END
    and my include skin:
    [Png Files]
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_D own.png",down
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_O ff.png",off
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_O n.png",on
    [Labels]
    L07,18,504,291,25,255,255,255,14,"Arial:BI","=$GOA DDRESS$","SCROLL-LEFT",,"DS=3,3,0,0,0"
    L08,357,504,35,25,255,255,255,14,"Arial:BI","=Go", "CENTER",,"DS=2,2,0,0,0"
    L09,449,504,84,25,255,255,255,14,"Arial:BI","=Add/Del","CENTER",,"DS=2,2,0,0,0"
    [Buttons]
    B03,5,495,327,43,"BYVARX;WhatdoYouWant;(OSKTOVAR;G OADDRESS<<gmaps_placetypetosearch)",
    B04,338,493,73,48,"GMAPS_GOADDRESS",
    B05,415,493,132,48,"GMAPS_ADDMARKER",@GMAPS_DELMAR KER@

    [Indicators]
    I12,426,502,27,27,"FILE;$skinpath$Indicators\gmaps vartypetosend_00.png"
    I have seen that the INC option accept to define the name of the file to include but 'only effective on first load'.
    That whould be a cool option for me but that don't accept the reloadscreen only !

    I have a big issue when the png are include (IMG,...) because when the screen is loaded , the png are not full (see pictures)!


    Thanks for your help
    Attached Files
    Last edited by pierrotm777; 03-08-2012, 11:46 AM.

  • #2
    Ok,,
    I think that i have found a solution for my issue with the PNG files:
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_D own.png",down
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_O ff.png",all
    IMG,0,492,545,45,"RRGoogleMapsTools_INC_GpsToAdd_O n.png",on

    Comment


    • #3
      Ok,
      If i use the INC with a variable, i can cahnge with a reloadscreen all that i want and i love that !
      setvar;includefile;RRGoogleMapsTools_INC_GpsToAdd. skin||reloadscreen
      and
      setvar;includefile;Test.skin||reloadscreen

      Run very well and not only when RR is loaded !

      So, into the Skin Commands.txt file:
      /, (INC) Include Section
      /, Include FileName
      INC,myfile.skin

      The above allows you to include a file (within the skin path) with common definitions for the skin.
      The file format is the same defined here, except that it should not have the header section (first 3 lines)
      and should not have the END marker. The specified file will be loaded at the position of the INC line defined.
      You can also use variables to define the name of the file to include -- only effective on first load!
      Is WRONG !
      Last edited by pierrotm777; 03-08-2012, 12:12 PM.

      Comment


      • #4
        "Only effective on first load" does not mean on first start of RR.
        When you issue the command reloadscreen you're back to FIRSTLOAD of that screen.

        Comment


        • #5
          Originally posted by MGD View Post
          "Only effective on first load" does not mean on first start of RR.
          When you issue the command reloadscreen you're back to FIRSTLOAD of that screen.
          In fact
          Sorry !

          Thanks for your help !

          Comment


          • #6
            Glad to be of service...

            Comment

            Working...
            X