comments and cleanup
This commit is contained in:
parent
440989aed6
commit
0639870410
@ -53,7 +53,7 @@ return function (args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- set the value to a formatted numeric string<br>
|
-- set the value to a formatted numeric string<br>
|
||||||
-- trims trailing zeros
|
-- trims trailing zeros from floating point numbers
|
||||||
---@param num number
|
---@param num number
|
||||||
local function _set_value(num)
|
local function _set_value(num)
|
||||||
local str = util.sprintf(format, num)
|
local str = util.sprintf(format, num)
|
||||||
@ -185,9 +185,7 @@ return function (args)
|
|||||||
|
|
||||||
-- handle unfocused
|
-- handle unfocused
|
||||||
function e.on_unfocused()
|
function e.on_unfocused()
|
||||||
local val = tonumber(e.value)
|
local val, max, min = tonumber(e.value), tonumber(args.max), tonumber(args.min)
|
||||||
local max = tonumber(args.max)
|
|
||||||
local min = tonumber(args.min)
|
|
||||||
|
|
||||||
if val then
|
if val then
|
||||||
if args.max_int_digits or args.max_frac_digits then
|
if args.max_int_digits or args.max_frac_digits then
|
||||||
|
|||||||
@ -229,9 +229,9 @@ local function new_view(root)
|
|||||||
auto_ramp.register(f_ps, "auto_ramping", auto_ramp.update)
|
auto_ramp.register(f_ps, "auto_ramping", auto_ramp.update)
|
||||||
auto_sat.register(f_ps, "auto_saturated", auto_sat.update)
|
auto_sat.register(f_ps, "auto_saturated", auto_sat.update)
|
||||||
|
|
||||||
-- REGISTER_NOTE: for optimization/brevity, due to not deleting anything but the whole element tree when it comes
|
-- REGISTER_NOTE: for optimization/brevity, due to not deleting anything but the whole element tree
|
||||||
-- to the process control display and coordinator GUI as a whole, child elements will not directly be registered here
|
-- when it comes to unloading the process app, child elements will not directly be registered here
|
||||||
-- (preventing garbage collection until the parent 'proc' is deleted)
|
-- (preventing garbage collection until the parent 'page_div' is deleted)
|
||||||
page_div.register(f_ps, "auto_active", function (active)
|
page_div.register(f_ps, "auto_active", function (active)
|
||||||
if active then
|
if active then
|
||||||
b_target.disable()
|
b_target.disable()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user