I have a text meter and a measure that sets the text depending on some variables like so:
Code: Select all
[FollowHoverBarText]
Group=FollowHover
Meter=String
Text=[CalculateHoverHours]:[CalculateHoverMinutes]:[CalculateHoverSeconds]
X=([MeasureFollowHoverBar]+25)
Y=132
StringAlign=Center
FontColor=221,221,221,(19.6*#RDW#)
FontFace=Roboto-Regular
DynamicVariables=1
AntiAlias=1
Hidden=1
[SetFollowHoverBarText]
Group=FollowHover
Measure=Calc
Formula=([MeasureDuration:]*0.[MeasureFollowHoverBar:%,0]/3600)
IfCondition=[SetFollowHoverBarText]>0
IfTrueAction=[!SetOption FollowHoverBarText Text "[CalculateHoverHours]:[CalculateHoverMinutes]:[CalculateHoverSeconds]"]
IfFalseAction=[!SetOption FollowHoverBarText Text "[CalculateHoverMinutes]:[CalculateHoverSeconds]"]
DynamicVariables=1