Skins: New @Resources folder
Posted: May 20th, 2012, 7:34 pm
As the first step in a re-design of how .rmskins are created and installed in Rainmeter, we are changing how resources like fonts, addons, images, sounds, include files and other things used by your skin are handled by Rainmeter. This change will also completely eliminate the need for the LocalFont setting in skins.
The key to this functionality is support for a new @Resources folder under the root level of the skin suite (e.g. Skins\illustro\@Resources).
The key to this functionality is support for a new @Resources folder under the root level of the skin suite (e.g. Skins\illustro\@Resources).
- Any font files found under @Resources\Fonts will automatically be loaded and available in the skin. There will be no need to use LocalFont in [Rainmeter], and there should seldom if ever be any reason to distribute a skin with the .rmskin configured to install the font to the user's system. Just put the font in the correct folder in the skin and you are done.
- Any files, such as addons, images, sounds, include files or any other resources your skin uses should be kept in this folder, and then can be accessed with a new #@# variable, which expands to #ROOTCONFIGPATH#@Resources\.
For example, use:Instead of:Code: Select all
ImageName=#@#Images\MyImage.png @Include=#@#Settings.inc
Code: Select all
ImageName=#ROOTCONFIGPATH#@Resources\Images\MyImage.png @Include=#ROOTCONFIGPATH#@Resources\Settings.inc
- The @Resources folder is ignored when scanning for skins. Keeping images and other common files there will speed up the load time of Rainmeter.