In order not to write all over again, I'll leave the short version ini file following:
Code: Select all
[Variables]
ColorMain=255,255,255
Size=4
Wait=20
U=[!UpdateMeasureGroup Sizers][!UpdateMeter MeterBarProgress][!Redraw]
;---------- Meter ----------
[MeterBackground]
Meter=Image
H=208
W=470
SolidColor=0,0,0,100
[MeterBarProgress]
Meter=Image
H=#Size#
W=470
X=0
Y=152
DynamicVariables=1
MouseOverAction=[!CommandMeasure MeasureSizeDown "Stop 1"][!CommandMeasure MeasureSizeUp "Execute 1"]
MouseLeaveAction=[!CommandMeasure MeasureSizeUp "Stop 1"][!CommandMeasure MeasureSizeDown "Execute 1"]
;---------- Measure ----------
[MeasureSizeUp]
Measure=Plugin
Plugin=ActionTimer
Group=Sizers
ActionList1=ChangeSizeUp|Wait #Wait#|Repeat ChangeSizeCalc,#Wait#,11
ChangeSizeUp=[!SetVariable Size "#Size#"]#U#
ChangeSizeCalc=[!SetVariable Size "(Clamp(#Size#+8,4,52))"]#U#
IfCondition=#Size# = 4
IfTrueAction=[!SetOption MeterBarProgress SolidColor "#ColorMain#,150"][!SetOption MeterBarProgress BarColor "#ColorMain#,255"]#U#
IfCondition2=(#Size# > 4) && (#Size# < 24)
IfTrueAction2=[!SetOption MeterBarProgress SolidColor "#ColorMain#,75"][!SetOption MeterBarProgress BarColor "#ColorMain#,200"]#U#
IfCondition3=(#Size# > 24) && (#Size# < 52)
IfTrueAction3=[!SetOption MeterBarProgress SolidColor "#ColorMain#,35"][!SetOption MeterBarProgress BarColor "#ColorMain#,145"]#U#
IfCondition4=#Size# = 52
IfTrueAction4=[!SetOption MeterBarProgress SolidColor "#ColorMain#,10"][!SetOption MeterBarProgress BarColor "#ColorMain#,100"]#U#
DynamicVariables=1
[MeasureSizeDown]
Measure=Plugin
Plugin=ActionTimer
Group=Sizers
ActionList1=ChangeSizeDown|Wait #Wait#|Repeat ChangeSizeCalc,#Wait#,11
ChangeSizeDown=[!SetVariable Size "#Size#"]#U#
ChangeSizeCalc=[!SetVariable Size "(Clamp(#Size#-8,4,52))"]#U#
DynamicVariables=1