Hi, I'm making a clock skin on which the seconds are shown like a bar that fills as seconds pass up to 59, the empties and start again, as is on the picture attached.
BrCl.png
What I'm not able to do is that the bar fills, since when the value of seconds is NOT 0 the bar stays filled, and empties only when seconds ARE 0.
I can't get the code to work, so can anyone help me?
I've taken my own clock and shoe-horned some other code in to test - the seconds in the time are there so I could see the bar was in the right place. You should be able to pinch bits of this and use them in you own skin.
[Metadata]
Name=Cobalt
Config=Cobalt | System | Clock | Weather
Description=Digital widget
Instructions=Edit the variables to match your system as per adjacent comments.
Version=1.0
[Variables]
;White
Colour1=255,255,255,255
;Blue Solid
Colour2=0,223,223,255
;Blue 50% Trans
Colour3=0,223,223,175
[MeterSecondsBar]
Meter=Bar
MeasureName=MeasureTimeP1
BarOrientation=Horizontal
X=r
Y=r
W=190
H=2
Flip=0
AutoScale=1
BarImage=ColourBar190.jpg
;image file need to match the H & W i.e. in this skin 190 pixels
ColourBar190.jpg
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike