#91 get and set values for all controls/indicators and textbox
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user