#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

@@ -116,15 +116,18 @@ local function core_map(args)
end
end
-- initial draw at base temp
draw(300)
-- on state change
---@param temperature number temperature in Kelvin
function e.on_update(temperature)
e.value = temperature
draw(temperature)
end
function e.set_value(val) e.on_update(val) end
-- initial draw at base temp
e.on_update(300)
return e.get()
end