Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Help: Rainmeter Skins • Re: How to include 2 configurations of the same .inc file?

$
0
0
So I'm trying to make my own skin, here's the setup I have: I have the main .ini file which includes Variation1.inc and Variation2.inc (both variations are simultaneously loaded). These Variation inc files both include and use the same template.inc file and define certain variables that the template file will use to work correctly. The issue is that the main ini file won't work correctly, since the template.inc file is technically included twice, therefore it has duplicate meter names and only displays one variation. How can I make this setup work without having to duplicate all of the code in the template.inc file for every variation?
I suspect you structured your setup the "wrong" way. Rainmeter offers multiple ways to have different "variations" within the same "skin":
- separated variants that might involve some duplication depending on the code: https://docs.rainmeter.net/manual/skins/#Variants
- dynamic variables that allow measures and meters to use different values as needed: https://docs.rainmeter.net/manual/variables/#DynamicVariables

In other words, you can either load different skin variants as desired, or change the parameters of the same sections in a single variant via variables. There are layouts as well, which allow you to load different combinations and arrangements of skins or skin variants.

Statistics: Posted by Yincognito — Yesterday, 7:28 pm



Viewing all articles
Browse latest Browse all 1538

Trending Articles