graphics elements comments

This commit is contained in:
Mikayla Fischler
2022-09-12 15:58:43 -04:00
parent 1bf21564f9
commit 70d9da847e
7 changed files with 16 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ local function vbar(args)
local two_thirds = util.strrep("\x83", e.frame.w)
-- handle data changes
---@param fraction number 0.0 to 1.0
function e.on_update(fraction)
e.value = fraction
@@ -91,6 +92,8 @@ local function vbar(args)
e.on_update(e.value)
end
-- set the percentage value
---@param val number 0.0 to 1.0
function e.set_value(val) e.on_update(val) end
return e.get()