This simple scriptlet allows you to change the windowskin in the middle of the game using a script call Event Command.
In addition to being able to change the windowskin, there is also an option to reset the windowskin to its default, also by using a script call Event Command.
|Release Date:||10 May 2013|
|Last Update:||24 May 2013|
Changing the windowskin mid-game can be useful if you want to set the mood or vary the theme. As an example, if the game takes on darker undertones you could change the windowskin to reflect that with a simple command.
A word of caution, however, don’t overuse changing the windowskin, as it can become distracting.
The list of usable windowskins is defined in the WINDOWSKINS hash. The default (used to reset the windowskins) is 0. It’s best to leave this alone unless you want to change the system’s default windowskin completely.
To change the windowskin, use the following:
where windowskin corresponds to the number in the WINDOWSKINS hash – NOT the windowskin filename.
To reset the windowskin to the system default, use the following:
You can add more windowskins to the hash and call them during the game.
Some time in the future, the ability to use and change multiple windowskins will be added.