Yep, I know, even if didn't use it too much.Yincognito wrote: ↑August 18th, 2024, 8:02 pm ImageMagick / MagickMeter can though, as you probably know.
It is currently September 14th, 2024, 9:49 pm
Working with Angle on a String Meter (redux)
-
- Rainmeter Sage
- Posts: 16539
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Working with Angle on a String Meter (redux)
-
- Rainmeter Sage
- Posts: 8127
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Working with Angle on a String Meter (redux)
Just realized that a quick way to overcome the fact that one can't easily use the Angle rotated meter coordinates for relative positioning other meters after it would be to use the coordinates of the - not rotated - reference meter instead ([MeterOne] in my earlier sample), which can easily be made fully transparent so it doesn't affect the visuals.Yincognito wrote: ↑August 18th, 2024, 7:38 pm since the meter area doesn't follow the text in the Angle option anyway
Another alternative that would also allow the mouse actions to react to the actual rotated coordinates in case one prefers that, would be to use a rectangular Shape meter replicating the original, not rotated, coordinates of the String meter where the Angle option is applied, and easily rotate that shape in the same direction and with the same speed as the Angle-d text:
https://docs.rainmeter.net/manual/meters/shape/#TransformModifiers
Unlike the String meter duplicate from the 1st paragraph, the Rectangle in this Shape meter would need to be filled with an "almost" transparent color - e.g. 0,0,0,1 - so that the mouse properly reacts to the shape's pixels, see:
https://docs.rainmeter.net/manual/meters/shape/#MouseDetection
Obviously, if the not rotated area is still desired for some particular reason, just skip any rotation on the shape, or rotate it at a 0 angle.
In short, to solve the meter area / mouse detection being offset from the text in a String meter where the Angle option is applied, a duplicate meter (String or Shape, as described above) would have to be used (this might have been mentioned in the thread already; EDIT: yes, it was, jsmorley recommended an Image meter based on roughly the same principles).