Here is what I came up with:
Code: Select all
screen powerMeter(oldValue, newValue, name):
add Transform(Solid("#00086b"), size=(75,400))
hbox:
text name at vert_text
bar value AnimatedValue(value=newValue, old_value=oldValue, delay=1.0, range=120):
#value scanPower
bar_vertical True
range 120
bottom_bar "idle_bar.png"
top_bar "bar_empty.png"
xysize(15, 360)
xalign .0015
yalign 0
xoffset 25
at transform:
yoffset 25
xoffset 20
oldValue = the value the bar will display at the time the screen is called.
newValue = the value the bar will display after the animation is over.
name = the text that is displayed on the screen.