#91 get and set values for all controls/indicators and textbox

This commit is contained in:
Mikayla Fischler
2022-09-12 12:59:28 -04:00
parent d9be5ccb47
commit 10c53ac4b3
16 changed files with 192 additions and 60 deletions

View File

@@ -33,6 +33,8 @@ local function vbar(args)
-- handle data changes
function e.on_update(fraction)
e.value = fraction
-- enforce minimum and maximum
if fraction < 0 then
fraction = 0.0
@@ -78,6 +80,8 @@ local function vbar(args)
end
end
function e.set_value(val) e.on_update(val) end
return e.get()
end