MarcoPixel wrote:Im a little bit confused about that new folder. How can i use plugins which NEEDS to be installed in #AddonsPath#?
Can we maybe get an example skin with Variables, Addons and Themes?
The way this will work from here out is that you should try to make your skins as "self-contained" as possible. The simplest and most reliable way is to use the new @Resources folder to store and access supporting files for your skins.
This is one recommended approach. There is nothing that says you have to do it exactly this way, but in my opinion it makes it easier to distribute your skins, and easier to manage them yourself.
Images, sounds and Lua scripts:
These should be kept in their own folders in the @Resources folder. So you would have YourSkinFolder\@Resources\Images, and access it with ImageName=#@#Images\SomeImage.png
in an Image meter.
These should be kept in a folder in your skin specifically called @Resources\Fonts. The folder names above are just a suggestion, but with fonts it needs this specific name. If you put a font .ttf file in this folder, it will automatically be loaded by Rainmeter and available to use with FontFace=MyFont
in your skin. Do NOT use LocalFont in the [Rainmeter] section of your skin any more, it just isn't needed.
Executable addons should also be kept in the @Resources folder with your skin. I recommend using YourSkinFolder\@Resources\Addons. Then you can call the addon with LeftMouseUpAction=[#@#Addons\MyAddon.exe "Some Parameter"]
. Please note that you will want to contain the call to external applications inside square brackets "". Please completely avoid the use of #ADDONSPATH# at all. It is no longer needed, and only supported for backwards compatibility with older skins.
If you have an existing adddon written specifically for Rainmeter that REQUIRES that it be in a folder relative to Rainmeter.exe (a few addons baked in "..\..\Rainmeter.exe" assuming that they were in the old C:\Program Files\Rainmeter\Addons\MyAddon\MyAddon.exe location) then you will need to manually move it to C:\Users\YourName\Appdata\Roaming\Rainmeter\Addons and use #ADDONSPATH# to call it. This should be avoided at all costs, as it is then very difficult to distribute your skin. The Addons specific path is no longer available when you create a .rmskin, and only supported at all so older skins don't break.
If you are using or distributing a custom plugin .dll file with your skin, it must be kept in C:\Users\YourName\Appdata\Roaming\Rainmeter\Plugins. Any plugin .dll found in that folder when Rainmeter starts will be loaded and available to use with your skins by simply using Plugin=MyPlugin.dll
on your measure. These plugins can be added to a .rmskin when you create it, but be aware that you need both 32bit and 64bit versions of the plugin to add it to a .rmskin. We don't want folks distributing skins that are crippled when used on a different operating system architecture.
There is really no change to how themes are managed. You use the Themes tab in the Manage application from the context menu, and save a theme with your current layout. Then when you create a .rmskin you simply add the theme to the file, and it will be installed (and optionally loaded) when the user runs the .rmskin.
I hope this helps.