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

Help: Rainmeter Skins • Re: USing background image for hover state.

$
0
0
I assume that by "background" you mean the ThisBG meter in your code. If not, adjust things accordingly.

First, ThisText should have a background of its own, so that hovering on it triggers not only on the text's pixels, but the text's "frame", so to speak. In your case, I suppose adding a SolidColor=0,0,0,1 to that meter in order to have its "frame background" almost transparent visually but still made of opaque pixels that can trigger the hover and leave events would be enough.

Then, just add the relevant part from your example to the ThisText meter:

Code:

MouseOverAction=[!SetOption ThisBG ImageAlpha "255"][!Update]MouseLeaveAction=[!SetOption ThisBG ImageAlpha "0"][!Update]
Finally, make sure your ThisBG meter is initially invisible, by adding this to it:

Code:

ImageAlpha=0
Unrelated: you might want to order your meters in a more consistent fashion, similar to how you write things on a piece of paper, e.g. from top to bottom and left to right (or ThisBG, This, and then ThisText). This would make things clearer.

Statistics: Posted by Yincognito — Today, 4:33 pm



Viewing all articles
Browse latest Browse all 788

Trending Articles