Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Using a variable for a font color

  1. #1
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660

    Using a variable for a font color

    How can I use a variable as a font color code
    I tried
    $color1$
    which was stored in my skin ini as color1=125
    Tried in quotes
    tried as "=$COLOR1$"
    currently I have it working as being defined as color1 $color1$
    but I want them to change as the setting is changed with out having to reset the skin.
    Anyhelp on ths is much appreciated.
    I know it is probably a simple answer from someon..
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  2. #2
    Variable Bitrate
    Join Date
    Jul 2006
    Posts
    362
    Have you looked at what john did in DFX3/4? Is that what you're talking about, or are you trying to do it 'on the fly'?
    MSI K9N6GM
    1 gig RAM
    8" Lilliput
    Onstar GPS mod
    XM
    Visteon HDZ300

  3. #3
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    MKIII skin has that, talk to carputer1.

  4. #4
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    Im trying to make a font color changer that wont require a restart of the skin or RR to make the changes take effect.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  5. #5
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,979
    well i do use var's for my color but they still need a re-load , otherwise any setting saved to the skin.ini is not active until reload, rr won't see it.

    what about useing the text file you are creating in the inc, then when you change the txt file the colors should change to , untested

  6. #6
    x10
    x10 is offline
    Constant Bitrate x10's Avatar
    Join Date
    Mar 2004
    Location
    Pittsburgh, PA
    Posts
    152
    check out my font color changer in GMLAN...it doesnt require a restart of RR...but it still saves and changes the color on the fly...

  7. #7
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,979
    @x10 dose it also activate the colors on the fly without restart of skin thou. never managed that , which ever way i did, saving is the easy part but having it active without reload , i could not do ,

  8. #8
    x10
    x10 is offline
    Constant Bitrate x10's Avatar
    Join Date
    Mar 2004
    Location
    Pittsburgh, PA
    Posts
    152
    ...i guess it does use the reloadskin command whats wrong with doing it that way though? why would it be a problem if you did reload the skin?

  9. #9
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,979
    unless you want a preview i suppose , a preview of some font in color choosen , if this is the case thunder look at tek3 and havc i think they have preview modes

  10. #10
    x10
    x10 is offline
    Constant Bitrate x10's Avatar
    Join Date
    Mar 2004
    Location
    Pittsburgh, PA
    Posts
    152
    i made a button and an area in the font chooser screen that you can test the color before setting it...all i did was add a test font variable....so you can press that and then once you're happy with it you can press "Set Font Color" and it will set the main font color variables...

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 65
    Last Post: 07-23-2008, 02:03 AM
  2. iGuidance Hacks
    By pbarrette in forum GPS
    Replies: 47
    Last Post: 12-28-2007, 03:06 PM
  3. StreetDeck Fonts
    By god_of_cpu in forum DigitalMods (Scripts / API)
    Replies: 1
    Last Post: 02-16-2006, 05:21 PM
  4. Font Color in Brushed Metal Skin
    By dougmorgan99 in forum Road Runner
    Replies: 2
    Last Post: 08-10-2005, 08:28 PM
  5. Pinout Color Codes / Tables
    By gummybear in forum General Hardware Discussion
    Replies: 4
    Last Post: 05-12-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •