The quote meter only displays one quote at a time and to switch between the 3 selected quotes, you will have to click onto the 3 "buttons" below.
The problem now is that the length (of the height of text) of the 3 quotes are different, so the 3 "buttons" would have to move according to the new height of the quote, once pressed. I saved the height into the variable CirclePosition which indicates the height of the circle, then reset the shape of the CircleMeters into the correct string with modified height. However, after nesting the variable into this string, the height of the 3 circles, once pressed, do not change accordingly and instead are shifted to Y=0.
I was wondering why this happened - is it because im not nesting the variables correctly? (not sure if nesting is the correct term but yea)
here is my code for the skin below:
Code: Select all
[Rainmeter]
Update=360000
DynamicWindowSize=1
[Variables]
CirclePosition=[QuoteMeter:Y]+[QuoteMeter:H]+20
FilledCircle1="Ellipse 130, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"
UnfilledCircle1="Ellipse 130, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"
FilledCircle2="Ellipse 150, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"
UnfilledCircle2="Ellipse 150, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"
FilledCircle3="Ellipse 170, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"
UnfilledCircle3="Ellipse 170, ([QuoteMeter:Y]+[QuoteMeter:H]+20), 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"
CurrentFBQuote="It's frightening that there's no guarantee that I'll be loved."#CRLF#- Akito Sohma
CurrentBSDQuote="I saw a bright world. I cannot go back to a time when I did not know such a thing existed."#CRLF#- Kyouka Izumi
CurrentKJQuote=haha
[Day]
Measure=Time
Format=%#d
OnChangeAction=[!EnableMeasure FBQuotes][!EnableMeasure BSDQuotes][!EnableMeasure KJQuotes][!UpdateMeasure FBQuotes][!UpdateMeasure BSDQuotes][!UpdateMeasure KJQuotes][!UpdateMeter QuoteMeter][!Redraw][!Refresh]
[FBQuotes]
Measure=Plugin
Plugin=QuotePlugin
PathName=C:\Users\ingri\OneDrive\Documents\- quotes -\fruitsbasketquotes.txt
Separator=";"
UpdateDivider=-1
Disabled=1
OnUpdateAction=[!WriteKeyValue Variables CurrentFBQuote "[FBQuotes]"][!SetVariable CurrentFBQuote "[FBQuotes]"][!UpdateMeter "QuoteMeter"][!Redraw]
[BSDQuotes]
Measure=Plugin
Plugin=QuotePlugin
PathName=C:\Users\ingri\OneDrive\Documents\- quotes -\bungouquotes.txt
Separator=";"
UpdateDivider=-1
Disabled=1
OnUpdateAction=[!WriteKeyValue Variables CurrentBSDQuote "[BSDQuotes]"][!SetVariable CurrentBSDQuote "[BSDQuotes]"][!UpdateMeter "QuoteMeter"][!Redraw]
[KJQuotes]
Measure=Plugin
Plugin=QuotePlugin
Pathname=C:\Users\ingri\OneDrive\Documents\- quotes -\kemonoquotes.txt
Separator=";"
UpdateDivider=-1
Disabled=1
OnUpdateAction=[!WriteKeyValue Variables CurrentKJQuote "[KJQuotes]"][!SetVariable CurrentKJQuote "[KJQuotes]"][!UpdateMeter "QuoteMeter"][!Redraw]
[BackgroundMeter]
Meter=Shape
Shape=Rectangle 0,0,315,200 | Fill Color 255, 255, 255, 0 | Stroke Color 255,255,255, 0
[QuoteMeter]
Meter=String
UpdateDivider=-1
Disabled=1
ClipString=2
Text="#CurrentFBQuote#"
FontSize=13
FontColor=255, 255, 255, 200
FontFace=Rajdhani
SolidColor=0,0,0,1
Y=60r
X=10r
W=303
AntiAlias=1
DynamicVariables=1
[CircleMeter1]
Meter=Shape
Shape=#FilledCircle1#
DynamicVariables=1
LeftMouseUpAction=[!SetOption QuoteMeter Text """#CurrentFBQuote#"""][!SetVariable CirclePosition "[QuoteMeter:Y]+[QuoteMeter:H]+20"][!SetOption CircleMeter1 Shape "Ellipse 130, [#CirclePosition], 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"][!SetOption CircleMeter2 Shape "Ellipse 150, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"][!SetOption CircleMeter3 Shape "Ellipse 170, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"][!UpdateMeter QuoteMeter][!UpdateMeter CircleMeter1][!UpdateMeter CircleMeter2][!UpdateMeter CircleMeter3][!Redraw]
;[!SetOption CircleMeter1 Shape "#FilledCircle1#"][!SetOption CircleMeter2 Shape "#UnfilledCircle2#"][!SetOption CircleMeter3 Shape "#UnfilledCircle3#"]
[CircleMeter2]
Meter=Shape
Shape=#UnfilledCircle2#
DynamicVariables=1
LeftMouseUpAction=[!SetOption QuoteMeter Text """#CurrentBSDQuote#"""][!SetVariable CirclePosition "[QuoteMeter:Y]+[QuoteMeter:H]+20"][!SetOption CircleMeter1 Shape "Ellipse 130, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200" ][!SetOption CircleMeter2 Shape "Ellipse 150, [#CirclePosition], 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"][!SetOption CircleMeter3 Shape "Ellipse 170, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"][!UpdateMeter QuoteMeter][!UpdateMeter CircleMeter1][!UpdateMeter CircleMeter2][!UpdateMeter CircleMeter3][!Redraw]
;[!SetOption CircleMeter1 Shape "#UnfilledCircle1#"][!SetOption CircleMeter2 Shape "#FilledCircle2#"][!SetOption CircleMeter3 Shape "#UnfilledCircle3#"][!UpdateMeter QuoteMeter][!Redraw]
[CircleMeter3]
Meter=Shape
Shape=#UnfilledCircle3#
DynamicVariables=1
LeftMouseUpAction=[!SetOption QuoteMeter Text """#CurrentKJQuote#"""][!SetVariable CirclePosition "[QuoteMeter:Y]+[QuoteMeter:H]+20"][!SetOption CircleMeter1 Shape "Ellipse 130, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200" ][!SetOption CircleMeter2 Shape "Ellipse 150, [#CirclePosition], 5 | Fill Color 255, 255, 255, 1 | Stroke Color 255, 255, 255, 200"][!SetOption CircleMeter3 Shape "Ellipse 170, [#CirclePosition], 5 | Fill Color 255, 255, 255, 100 | Stroke Color 255, 255, 255, 100"][!UpdateMeter QuoteMeter][!UpdateMeter CircleMeter1][!UpdateMeter CircleMeter2][!UpdateMeter CircleMeter3][!Redraw]
;[!SetOption CircleMeter1 Shape "#UnfilledCircle1#"][!SetOption CircleMeter2 Shape "#UnfilledCircle2#"][!SetOption CircleMeter3 Shape "#FilledCircle3#"][!UpdateMeter QuoteMeter][!Redraw]
what it actually looks like:
any help would be much appreciated!!