this PR adds UI flags to the params:set() action for binary-style parameters.
test script:
function init()
params:add_binary("toggle", "toggle")
params:set_action("toggle", function(x)
print("toggle is " .. tostring(x == 1))
end)
params:add_binary("trigger", "trigger", "trigger")
params:set_action("trigger", function()
print("trigger is triggered")
end)
params:add_binary("momentary", "momentary", "momentary")
params:set_action("momentary", function(x)
print("momentary is " .. tostring(x == 1))
end)
end
and execute (for example) params:set('toggle', 1) or params:set('trigger', 1) on the command line.
in the current build, this does not redraw the expected square in the params menu UI.
with this PR, the expected square state is drawn.
lmk if there's anything i missed / if there are any q's!
hihi! hope all's well :)
this PR adds UI flags to the
params:set()
action forbinary
-style parameters.test script:
and execute (for example)
params:set('toggle', 1)
orparams:set('trigger', 1)
on the command line. in the current build, this does not redraw the expected square in the params menu UI. with this PR, the expected square state is drawn.lmk if there's anything i missed / if there are any q's!