I want to create a skin installer and in the package will be more then one skin (obviously in more then one folder). There is any method to add in the Skin packager tool, to the Load skin field (After installation section) all those skins?
Thanks in advance.
It is currently April 19th, 2024, 7:49 am
Load more than one skin after instalation
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Load more than one skin after instalation
There really isn't in the Skin Packager tool. it can only load one skin initially. You can of course create a Layout that loads as many as you like, but that isn't always the best solution, assuming you want users to "add" your skins to their exiting setup, rather than "replacing" their's with your's.
What you might do is create some "initializer.ini" skin. Have that skin be the one you load in the .rmskin.
That skin would then have something like:
The disadvantage to loading multiple skins this way instead of a Layout is that they will all load at 0,0 on the screen... If you are loading a few, it's going to be a bit of a mess in the top-left corner. That is pretty much why .rmskin doesn't support loading multiple skins on installation. It's a tad more complicated, but you could add !Move bangs in the above OnRefreshAction as well, so at least they are not all just stacked up.
What you might do is create some "initializer.ini" skin. Have that skin be the one you load in the .rmskin.
That skin would then have something like:
Code: Select all
[Rainmeter]
OnRefreshAction=[!ActivateConfig "Config1Name" "Skin1Name.ini"][!ActivateConfig "Config2Name" "Skin2Name.ini"][!DeactivateConfig #CURRENTCONFIG#]
[MeterDummy]
Meter=String
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Load more than one skin after instalation
Thanks for the very quick reply. That's exactly what I thought. I also thought to use a layout, but it's not the best way, exactly for what you said, but your second method with the initializer.ini skin could be an alternative. Maybe I'll add some !Move bangs, to avoid the mess.
Thanks anyway, again.
Thanks anyway, again.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Load more than one skin after instalation
That is more or less the concept behind my Welcome.ini skin in JSMeterVII. I did not want to force a Layout on the user.
The difference might be that you automatically load some number of skins, and just move them down so they are not just stacked up. Some kind of "Welcome" meter(s) in the Initialize.ini file might not be a bad idea, so it can just say "Hey I just loaded skin1, skin2, skin3. Move them where you want them - Click here to dismiss this panel."
The difference might be that you automatically load some number of skins, and just move them down so they are not just stacked up. Some kind of "Welcome" meter(s) in the Initialize.ini file might not be a bad idea, so it can just say "Hey I just loaded skin1, skin2, skin3. Move them where you want them - Click here to dismiss this panel."
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Load more than one skin after instalation
Thanks, that's also a pretty idea. I'll have to decide how to implement one of them.