It is currently April 19th, 2024, 8:43 am

How to flip a bar animation on mouse over

Get help with creating, editing & fixing problems with skins
Va1ga
Posts: 10
Joined: June 8th, 2018, 10:02 am

How to flip a bar animation on mouse over

Post by Va1ga »

Just want to apologize, as originally the wrong section and wrote the wrong way. Theme can be found here.
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
Please tell me, please, how you can turn the animation up? I've already broken my head with these formulas. Thank you!
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to flip a bar animation on mouse over

Post by balala »

Va1ga wrote:Please tell me, please, how you can turn the animation up?
For example replacing the Y option of the [MeterBarProgress] meter with the following one: Y=(204-#Size#).
Va1ga
Posts: 10
Joined: June 8th, 2018, 10:02 am

Re: How to flip a bar animation on mouse over

Post by Va1ga »

Thank you very much for helping me out again! It is sad that such simple solutions are not obvious to me, so much time spent and did not find...
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to flip a bar animation on mouse over

Post by balala »

Va1ga wrote:Thank you very much for helping me out again! It is sad that such simple solutions are not obvious to me, so much time spent and did not find...
I'm glad if you got it working as you want.