I'm editing a skin using roundline meters to display things like CPU usage, dates and times, and many others. Here's a simplified version of the skin just to replicate the issue.
Code: Select all
[MeasureTime]
Measure=Time
[StyleArc]
X=0
Y=0
Solid=1
AntiAlias=1
[MeterMinutesBarBG]
Meter=ROUNDLINE
MeterStyle=StyleArc
W=122
H=122
StartAngle=4.7123889
RotationAngle=6.2831853
LineLength=61
LineStart=56
LineColor=255,255,255,80
[MeterMinutesBar]
Meter=ROUNDLINE
MeasureName=MeasureTime
MeterStyle=StyleArc | MeterMinutesBarBG
LineColor=255,255,255,200
ValueReminder=3600
LeftMouseUpAction=[C:\]
This code draws one circle as a background and overlays another arc on top of it in a more opaque color that shows the minute progress during an hour. My issue is that clicking either meter, not just the MinutesBar one, opens the C:\ directory. I believe this is because mouse actions have this target area: "The target area detected by the mouse will be any non-transparent areas of the meter,
or any part of the meter which has a non-transparent meter or skin background behind it." Is there any way to get mouse actions to only register on non-transparent areas of a meter,
without registering on backgrounds?
Also, what use cases would there be when you would want to have the mouse detect backgrounds automatically? Wouldn't it be more logical to have actions only register on the meter itself, and then just copy the mouse action code onto any background meters that you would want it to register on?