
Originally Posted by
blk02si
Q. for Sal
Do you think it would be ok to define the label colors like this example:
L,712,3,74,45,#R#,#G#,#B#,30,"ISOCPEUR:B","=SET"," CENTER"
Then have SHOCKCOLORDEFINITION.txt look like this:
/,Shock Font Color
/DEFINE R 255
/DEFINE G 255
/DEFINE B 255
Its the same code just simplified a bit (- the shocks).
That would work just fine if that's what works for you. If you're only using one font color throughout the skin, it's all you'd need.
I have the impression that your going to be working/updating the skin. IMO, start w/ a good base. You may find yourself using more font colors than you think for different labels (i.e. weather.skin, gas_pricefinder.skin).
Example:
Code:
/,Shock Main Font Color
/DEFINE MAINR 255
/DEFINE MAING 255
/DEFINE MAINB 255
It'd also be easier to differentiate b/w colors when looking at label codes if you decide to use more than one color.

Originally Posted by
blk02si
Now what typ of app or how do I go about picking a color from a menu and having it write the RGB values to the SHOCKCOLORDEFINITION.txt?
I don't use an app to swap font colors. I didn't want to use another app that would require users to setup just to use that function. Skins can get complicated as it is w/ plugins and scripts as it is, and I didn't want to scare plug n play type users. Makes it just that much less complicated. In any case, I use RR's built-in WRITETOFILE & ADDTOFILE command. What I do is, first, I define the following in...
skin.ini:
Code:
shockcolortheme00=/,Shock Main Font Color
shockcolortheme01=/DEFINE MAINR 255
shockcolortheme02=/DEFINE MAING 255
shockcolortheme03=/DEFINE MAINB 255
shockcolortheme10=/,Shock Main Font Color
shockcolortheme11=/DEFINE MAINR 0
shockcolortheme12=/DEFINE MAING 190
shockcolortheme13=/DEFINE MAINB 0
then skin's ExecTBL.ini:
Code:
"SETSKTH0","WRITETOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme00$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme01$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme02$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme03$"
"SETSKTH1","WRITETOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme10$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme11$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme12$||ADDTOFILE;$skinpath$SHOCKCOLORDEFINITIONS.txt;=$shockcolortheme13$"
.
Finally, in your color/theme picker skin, just set two buttons w/ a button code "SETSKTH0" & "SETSKTH1". The color definitions (SHOCKCOLORDEFINITIONS.txt) will be updated and will be loaded the next time RR is reloaded/restarted or when a skin is first loaded.
The example above is a small example switching out two colors, white and green.
You can also define the color variables in a format RichP laid out (i.e shockcolortheme00=/DEFINE MAIN 255,255,255) and write to file that way. I just did it to stay consistent w/ my previous examples. Gotta play around w/ it a little to get the hang of it. Hope that's clear.
Bookmarks