start saving changes
This commit is contained in:
parent
b0ca118a7a
commit
c06afaa207
|
@ -1,4 +1,7 @@
|
|||
on.update = function(dt)
|
||||
if Global_state.thread then
|
||||
update_all_editors(Global_state.thread, dt)
|
||||
end
|
||||
if Pan then
|
||||
set_mouse_cursor('hand')
|
||||
Viewport.x = Pan.x - App.mouse_x()/Viewport.zoom
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Reference in New Issue