Normally I browse the entire internet to find an answer to something before just asking it. This time, I still did that, but as I couldn't find my answer I decided to come here.
I have this skin I'm working on. It's a skin for application buttons (like Honeycombs for example) but with great customizability. For every button there are 2 settings files. 1 for the button itself, and one 'main' file, which can be easily used for every button if you would like the same design for every button. Here is the hierarchy:
SkinRoot
- @Resources
- main.inc
- Button1
-icon.png
- button1.ini
- Settings
- active.inc
- individual.inc
- settings.ini
- Button2
- icon.png
- button2.ini
- Settings
- active.inc
- individual.inc
- settings.ini
- Button3
- icon.png
- button3.ini
- Settings
- active.inc
- individual.inc
- settings.ini
- Settings.ini
Out of the Root directory's Settings.ini you can select the options 'Set for all'. What this does is changing a variable in every active.inc to #@#main.inc
So at first the active.inc looks like this:
Code: Select all
[Variables]
stylesheet=Settings\individual.inc
Code: Select all
[Variables]
stylesheet=#@#main.inc
Code: Select all
[TitleStyle]
Meter=String
Text="Set for All"
LeftMouseUpAction=[!WriteKeyValue Variables stylesheet "#@#main.inc" "button1\settings\active.inc"][!WriteKeyValue Variables stylesheet "#@#main.inc" "button2\settings\active.inc"][!WriteKeyValue Variables stylesheet "#@#main.inc" "button3\settings\active.inc"][!RefreshGroup Apps]
Code: Select all
[!WriteKeyValue Variables stylesheet "#@#main.inc" "All active.inc files under SkinRoot"]
Thanks in advance,
Gideon