I hope someone can help me with this. I am not experienced and don't know how to do this sadly.
EDIT: Okay, the error is no more. That is the code for the bar now. It moves up and down and the LLL stat at the end of the day is shown currently as it moves up from LLLStat to LLL. Only thing missing is that the number of the thumb goes from LLLStart to LLL.
Code: Select all
init python:
def fancy_thumb(st, at):
return Fixed(
Image("gui/bar/thumb_bar.png", xalign=0.0, yalign=0.0), #this is whatever your thumb image is
Text("[LLL]") #simple Text() for testing, you'll probably want to use ParamaterizedText() so you can style it
), None
image my_thumb = DynamicDisplayable(fancy_thumb)
---
timer 1.0 action SetScreenVariable("LLLStart", LLL)
vbox:
ypos 0.4
xpos 0.235
vbar:
xysize (58, 440)
value AnimatedValue(value=LLL, range=150, delay=1.0, old_value=LLLStart)
thumb "my_thumb"
thumb_offset -19
bottom_bar "gui/bar/LLL_Fill.png"
top_bar "gui/bar/LLL_Empty.png"
add "gui/bar/LLL_Frame.png" ypos 0.4 xpos 0.235