I'd try another approach. As jsmorley wrote, the stroke can be placed only around the shape. But then let's create a second shape, which would fill the transparent part of the original shape and put the stroke around this one:HudTweaker13 wrote:I have a shape in my hud which describes a frame around the outside. I've been trying without success to put a stroke around the inside of the frame, but not the outside. Does anyone have any ideas on how I can do this?
Code: Select all
[Variables]
SecondModifiers=Fill Color 0,0,0,0 | StrokeWidth 2 | Stroke Color 0,255,0
[MeterFrame]
Meter=Shape
x=0
y=2
Shape=Rectangle 0,0,#ScreenAreaWidth#,#ScreenAreaHeight# | Fill Color 0,0,0,0
Shape2=Rectangle 0,0,#ScreenAreaWidth#,#ScreenAreaHeight# | Extend MyModifiers1
MyModifiers1=#DefaultModifiers#
MyGradient1=#DefaultGradient#
Shape3=Rectangle 140,20,(#ScreenAreaWidth#-280),(#ScreenAreaHeight#-40),40 | Extend MyModifiers2
MyModifiers2=#DefaultModifiers#
MyGradient2=#DefaultGradient#
Shape4=Rectangle ((#ScreenAreaWidth#-400)/2),0,400,40,20 | Extend MyModifiers3
MyModifiers3=#DefaultModifiers#
MyGradient3=#DefaultGradient#
Shape5=Rectangle ((#ScreenAreaWidth#-400)/2),(#ScreenAreaHeight#-40),400,40,20 | Extend MyModifiers4
MyModifiers4=#DefaultModifiers#
MyGradient4=#DefaultGradient#
Shape6=Rectangle 0,0,#ScreenAreaWidth#,#ScreenAreaHeight# | Extend MyMod
Shape7=Rectangle 140,20,(#ScreenAreaWidth#-280),(#ScreenAreaHeight#-40),40 | Extend MyMod
Shape8=Rectangle ((#ScreenAreaWidth#-400)/2),0,400,40,20 | Extend MyMod
Shape9=Rectangle ((#ScreenAreaWidth#-400)/2),(#ScreenAreaHeight#-40),400,40,20 | Extend MyMod
MyMod=#SecondModifiers#
Shape10=Combine Shape2 | Exclude Shape3 | Union Shape4 | Union Shape5
Shape11=Combine Shape6 | Exclude Shape7 | Union Shape8 | Union Shape9
Shape12=Rectangle 5,((#ScreenAreaHeight#/2)-225),130,443,20 | StrokeWidth 0 | Fill Color 0,0,0,255
Shape13=Rectangle (#ScreenAreaWidth#-135),((#ScreenAreaHeight#/2)-225),130,443,20 | StrokeWidth 0 | Fill Color 0,0,0,255
As variable I defined one which sets the color and width of the stroke. Also took care to keep transparent the new combined shape.
Does this helps you?