LOL - your meters and positioning are just fine, relax. It's just that you forgot a small detail when copy pasting or modifying the existing code: the container width and height are not 120 by 120 anymore, they're bigger now since the container meter includes the "empty space" between the (0,0) origin and the top and left side of the container shape. In fact, I'm not even bothering to calculate (although it's quite easy, since it's all about the shape's right and bottom "edges", after all) and just removed them entirely and voila:OnyxBlack wrote: ↑October 25th, 2020, 10:49 amSo, I've tried that. I set the Container meter to 0,0, shifted the path coordinates, then set the x and y values on the contained meter to absolute values that match where the path is being drawn. Here's the code:
Everything lines up nice and dandy, however, as soon as I uncomment the Container key, my text vanishes. I assume it's somewhere, just not where it needs to be to be visible within the container mask. I understand its positioning has now changed to being relative to the Container meter, but that one is at 0,0 so nothing should have changed. I tried playing with all sorts of values on the x and y values for the contained meter, nada. Admittedly, I can't entirely wrap my head around rainmeter's positioning logic, especially when it comes to strings that have their StringAlign value set to anything other than LeftTop (e.g. using CenterCenter needs the X shifted to half the width of the meter, but following meters now appear to base the relative positioning (nr, nR) on where ever the actual string's beginning and end is, regardless of the string meter's X or W values are ).Code: Select all
[MeterShadowStyle] InlineSetting=Shadow | 2 | 2 | 3 | FF00FFFF [ContainerShapeCurrentTemp] Meter=Shape H=120 W=120 X=0 Y=0 ThisPath= 150,10 | LineTo 150,90 | LineTo 270,50 | LineTo 270,10 | ClosePath 1 Shape=Path ThisPath | FillColor FFFF0099 | StrokeWidth 0 [MeterCurrentTemp] Meter=String ;MeasureName=@CurrentTemperature Text=18 MeterStyle=MeterShadowStyle StringAlign=LeftTop FontFace=Open Sans Light FontSize=64 FontColor=FFFFFFFF FontWeight=600 InlineSetting2=CharacterSpacing | 0 | -4 X=150 Y=-15 H=120 W=120 AntiAlias=1 ;Container=ContainerShapeCurrentTemp [ContainerShapeForecast] Meter=Shape H=120 W=120 X=0 Y=0 ThisPath= 150,90 | LineTo 150,130 | LineTo 270,130 | LineTo 270,50 | ClosePath 1 Shape=Path ThisPath | Fill Color 00FFFF99 | StrokeWidth 0 [MeterTodayForecast] Meter=String MeterStyle=MeterShadowStyle Text=20 StringAlign=RightBottom FontFace=Open Sans Light FontSize=64 FontColor=FFFFFF FontWeight=600 InlineSetting2=CharacterSpacing | 0 | -4 X=260 Y=160 W=120 H=120 AntiAlias=1 ;Container=ContainerShapeForecast
So while I believe you when you say this fixes my shadow issue, I'm still stuck because I have no clue where the hell my string meters are
Code: Select all
[Variables]
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
---Styles---
[MeterShadowStyle]
InlineSetting=Shadow | 2 | 2 | 3 | FF00FFFF
---Meters---
[ContainerShapeCurrentTemp]
Meter=Shape
X=0
Y=0
ThisPath= 150,10 | LineTo 150,90 | LineTo 270,50 | LineTo 270,10 | ClosePath 1
Shape=Path ThisPath | FillColor FFFF0099 | StrokeWidth 0
[MeterCurrentTemp]
Meter=String
;MeasureName=@CurrentTemperature
Text="18"
MeterStyle=MeterShadowStyle
StringAlign=LeftTop
FontFace=Open Sans Light
FontSize=64
FontColor=FFFFFFFF
FontWeight=600
InlineSetting2=CharacterSpacing | 0 | -4
X=150
Y=-15
H=120
W=120
AntiAlias=1
Container=ContainerShapeCurrentTemp
[ContainerShapeForecast]
Meter=Shape
X=0
Y=0
ThisPath= 150,90 | LineTo 150,130 | LineTo 270,130 | LineTo 270,50 | ClosePath 1
Shape=Path ThisPath | Fill Color 00FFFF99 | StrokeWidth 0
[MeterTodayForecast]
Meter=String
MeterStyle=MeterShadowStyle
Text="20"
StringAlign=RightBottom
FontFace=Open Sans Light
FontSize=64
FontColor=FFFFFF
FontWeight=600
InlineSetting2=CharacterSpacing | 0 | -4
X=260
Y=160
W=120
H=120
AntiAlias=1
Container=ContainerShapeForecast