#84 auto-incrementing x with line break function, removed need for get_offset by having parent prepare child template
This commit is contained in:
@@ -93,7 +93,7 @@ local function data(args)
|
||||
-- initial value draw
|
||||
e.on_update(args.value)
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return data
|
||||
|
||||
@@ -99,7 +99,7 @@ local function hbar(args)
|
||||
-- initialize to 0
|
||||
e.on_update(0)
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return hbar
|
||||
|
||||
@@ -62,7 +62,7 @@ local function icon(args)
|
||||
-- initial icon draw
|
||||
e.on_update(args.value or 1)
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return icon
|
||||
|
||||
@@ -45,7 +45,7 @@ local function indicator_light(args)
|
||||
e.on_update(false)
|
||||
e.window.write(args.label)
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return indicator_light
|
||||
|
||||
@@ -72,7 +72,7 @@ local function state_indicator(args)
|
||||
-- initial draw
|
||||
e.on_update(args.value or 1)
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return state_indicator
|
||||
|
||||
@@ -78,7 +78,7 @@ local function vbar(args)
|
||||
end
|
||||
end
|
||||
|
||||
return e.complete()
|
||||
return e.get()
|
||||
end
|
||||
|
||||
return vbar
|
||||
|
||||
Reference in New Issue
Block a user