pothi.love/0136-update_all_editors

9 lines
261 B
Plaintext

update_all_editors = function(node, dt)
if node.type == 'text' and not node.button then
edit.update(node.editor, dt)
elseif node.type == 'rows' or node.type == 'cols' then
for _,child in ipairs(node.data) do
update_all_editors(child, dt)
end
end
end