I'm making a battery skin with the meter bar inside a .png frame that makes it look like a hitpoints meter. It worked perfect when it was just straight up one meter bar simply relaying battery power. The trouble presented itself when I tried to get it to change to a different bar (a brighter red) using a second .png. As you can see below I tried to use an IfCondition/IfTrueAction command so when running on battery power its the first .png and when it's plugged in the meter shows the second .png.
I am not showing an error in the log when I refresh so I am at a loss.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
[Metadata]
Name=Hitpoints Battery
Author=
Information=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[MeasureBattery]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=PERCENT
[MeasurePower]
Measure=Plugin
Plugin=PowerPlugin
PowerState=ACLine
MeasureName=MeasurePower
IfCondition=(MeasurePower=0)
IfTrueAction=[!ShowMeter "MeterPowerBar"][!HideMeter "MeterPowerBar2"][!Redraw]
IfCondition2=(MeasurePower=1)
IfTrueAction=[!ShowMeter "MeterPowerBar2"][!HideMeter "MeterPowerBar"][!Redraw]
[MeterBatteryFrame]
Meter=IMAGE
ImageName=#@#powerbar
X=0
Y=0
[MeterPowerBar]
Meter=BAR
BarImage=#@#red power bar
MeasureName=MeasurePower
X=0
Y=0
BarOrientation=Horizontal
H=100
W=100
[MeterPowerBar2]
Meter=BAR
BarImage=#@#chargingredpowerbar
MeasureName=MeasurePower
X=0
Y=0
BarOrientation=Horizontal
H=100
W=100