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

Help: Rainmeter Skins • Re: mouse action still works over an empty space

$
0
0
That is the problem
We managed to hide the icons, but the fact that they continue to take up space makes the skin ugly.
Relative positioning does not work as it should due to the occupied space.
If the relative positioning is used with the padding and the aforementioned IfMatch to hide missing icons as I described, it will in fact work as you expect it to, so I'm guessing you either didn't apply it properly, you didn't even try it, or you just prefer to do it the way you mentioned below (which won't work exactly like you think).
Do something like

IfMatch=^$
IfMatchAction=[W=0 H=0 X=0 Y=0]
IfNotMatchAction=[!ShowMeter "MeterAlertImageJ"]

Is this possible?
Of course it is, just use !SetOption bangs for each of those 4 coordinates:
https://docs.rainmeter.net/manual/bangs/#SetOption
For example:

Code:

IfMatch=^$IfMatchAction=[!SetOption MeterAlertImageJ W 0][!SetOption MeterAlertImageJ H 0][!SetOption MeterAlertImageJ X 0][!SetOption MeterAlertImageJ Y 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!ShowMeter "MeterAlertImageJ"]
However, the reason why it won't do all that you want is that only by doing this you won't be able to know what X to set to each of the icons in the row without somehow keeping track of how many shown icons are before (or to the left of) the icon you're setting the X on. This is possible as well, but it involves setting some additional variable in the same IfMatches, to store how many shown icons are before the one you're setting the coordinates to, so that you can set the latter's X based on that.

That's why I said the method I mentioned earlier was easier, given that Rainmeter would automatically compute the proper coordinates via the relative positioning, and the padding will hide the gaps / spaces between icons when you hide the icons as well. You do as you wish though, it's your skin and you are in charge of it. ;-)

Statistics: Posted by Yincognito — Today, 6:26 am



Viewing all articles
Browse latest Browse all 1587

Trending Articles