ok. This what we might call V2.0 BUT please note that there might still be a few bugs left. I will stop for tonight and fix/finalize by monday.
Mike, thanks for merging the original version of this script back to LightingOptions.htm. That was the basis for this version.
As far as i've tested it there is definitely one error, but you can safely ignore it. When you choose Add you will see an exception. Press ok and the script will continue working correctly and Add the new theme.
Michael: I'm using: var dialog = moi.ui.createDialog('EditNameDialog.htm', '', moiWindow); to request the name for the new theme, but i can find a way to pass nameval as a global variable for this script. Can you help?
Here is the basic functionality of this version.
Installation:
Just copy the script in the zip file to your ui folder. Rememer to backup the existing file, just in case. No need to create a preset for your current settings. A "My favorite" preset will be created automatically for you.
Usage:
Add will create a new preset from the current settings below.
Delete will delete the selected preset.
Update will update the selected preset to the settings below.
Thats it. Everything should be saved and restored correctly between sessions.
Please post any bugs you might find.
Dinos
|