1
2
3
4
5
6
7
8
9
10
11
12
13
14
pgrs = ui.progress(150, 50, 200, 25)
pgrs.trackColor = color.hsb(0, 0, 80)
pgrs.progressColor = color.hsb(240, 100, 100)
mns = ui.button("-", 100, 100)
mns.action(() => {
pgrs.value -= 0.1
})
pls = ui.button("+", 200, 100)
pls.action(() => {
pgrs.value += 0.1
})
pgrs = ui.progress(150, 50, 200, 25)
pgrs.trackColor = color.hsb(0, 0, 80)
pgrs.progressColor = color.hsb(240, 100, 100)
mns = ui.button("-", 100, 100)
mns.action(() => {
pgrs.value -= 0.1
})
pls = ui.button("+", 200, 100)
pls.action(() => {
pgrs.value += 0.1
})