It is currently April 27th, 2024, 11:18 pm

Problem with overlap skins when changing variant

Report bugs with the Rainmeter application and suggest features.
User avatar
XANCI
Posts: 104
Joined: September 18th, 2011, 6:37 am
Location: Nanjing, China

Problem with overlap skins when changing variant

Post by XANCI »

Assume:
Skin A & skin B, skin B has a series number of variant B1,B2,...;
The positions of A & B make them overlap in some areas;
A & B are in the same level (same "AlwaysOnTop" value) but A is on top of B (A's "LoadOrder" is greater).

1.Change to a variant of B using Manager (just load that variant) , everything goes fine.
2.Change to a variant of B using context-menu (Variants - certain variant) , B goes on top of A instead.
User avatar
XANCI
Posts: 104
Joined: September 18th, 2011, 6:37 am
Location: Nanjing, China

Re: Problem with overlap skins when changing variant

Post by XANCI »

sometimes B get on bottom of all other skins in same level (with same "AlwaysOnTop" value but with smaller "LoadOrder")
User avatar
bobgrosh
Posts: 134
Joined: May 1st, 2011, 10:33 pm

Re: Problem with overlap skins when changing variant

Post by bobgrosh »

I noticed the same thing.
The load order only keeps skins one on top of the other when you load all of them at once via a theme. Unloading one manually and reloading it, or changing a variant causes the last loaded ini to be on top. It doesn't seem that the load order actually forces the layering of skins displayed on the screen, it just sets the order they are loaded.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Problem with overlap skins when changing variant

Post by smurfier »

Load order only affects the order that skins are loaded in when Rainmeter is started.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
XANCI
Posts: 104
Joined: September 18th, 2011, 6:37 am
Location: Nanjing, China

Re: Problem with overlap skins when changing variant

Post by XANCI »

smurfier wrote:Load order only affects the order that skins are loaded in when Rainmeter is started.
Is there any ways to keep the order when changing variant?
User avatar
Virginityrocks
Posts: 478
Joined: February 26th, 2011, 10:22 pm

Re: Problem with overlap skins when changing variant

Post by Virginityrocks »

I also encountered this problem. Solution please!
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with overlap skins when changing variant

Post by jsmorley »

It doesn't seem that the load order actually forces the layering of skins displayed on the screen, it just sets the order they are loaded.
Thus the name "LoadOrder"... ;-)
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Problem with overlap skins when changing variant

Post by dragonmage »

I doubt that it will be possible in any efficient way. My guess is that each Z level, Desktop, Bottom, Normal, etc is a single layer and LoadOrder lays things on that layer in the order you want by painting them in the correct order. I would think that in order for a reloaded skin or variant to appear correctly every skin above it in LoadOrder and Z-Order would have to be reloaded.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Problem with overlap skins when changing variant

Post by MerlinTheRed »

Doesn't Rainmeter have a central part where all the drawing is handled? You'd just have to keep a list with all the skins in the right order and draw them one after the other then. I imagine such a method must already exist to ensure a skin that is updated more frequently isn't always painted on top of another one that is supposed to be above it and is updated less frequently. Or is it handled by the library you use for drawing and you can't influence it easily?
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!