For some reason the error doesn't show up immediately, only on the second <F4> after it is introduced.
5VNEE6PVZWCUX5FKXEN2J4VGYEDSGDZGFUWVPBOEXDBQLMZMMHZAC
{"draw_manifest_navigator":677,"on.draw":797,"load_from_iterator":670,"vy":546,"get_definition_from_app":784,"Viewport":604,"Cursor_node":172,"manifest_navigator_down":635,"on.mouse_press":722,"scale":712,"on.mouse_release":721,"move_candidate_to_front_of_manifest":632,"on.update":741,"keychord_press_on_manifest_navigator":765,"on.initialize":695,"text_input_on_manifest_navigator":634,"A":713,"Page":475,"sy":469,"fw_parent":797,"manifest_navigator_candidates":638,"fw_app":"driver","copy_shape":396,"on.code_submit":787,"Manifest_navigator":495,"initialize_manifest_navigator":773,"get_multiple_definitions_from_app":783,"tick_spec":660,"wait_for_response":781,"mouse_cursor":558,"on.code_change":734,"get_manifest":768,"set_mouse_cursor":562,"font":353,"Definitions":503,"new_definition":767,"update_editor_box":711,"order_of_magnitude":573,"approximate":579,"on.save_settings":742,"schema1_of_y":667,"initialize_editor":678,"maybe_update_key_in_definitions":529,"approximate_up":658,"box_height":680,"Ticks_font":669,"draw_run_time_error":798,"on.load_settings":782,"Mouse_cursor":559,"manifest_navigator_up":628,"y_of_schema1":364,"reset_manifest_navigator":772,"draw_ticks":663,"on":1,"draw_cursor":639,"on_handle":547,"load_definition":716,"num_lines_for_manifest_navigator":676,"on.text_input":521,"manifest_index":637,"on_text":539,"manifest_coord":636,"load_manifest":694,"Menu_command_color":613,"Manifest":769,"table_and_array_both_empty":689,"sx":544,"Animating":770,"vx":545,"B":379,"Menu_background_color":611,"on.keychord_press":785,"Menu_border_color":612,"delete_definition":673,"on.key_release":720,"line_height":365,"Menu_highlight_color":614,"add_thick_line":400,"draw_menu_bar":641,"add_def_to_menu":640,"add_hotkey_to_menu":616,"compute_layout":385,"Surface":422}
draw_run_time_error = function()
if Run_time_error == nil then return end
local height = math.min(20*HUD_line_height, App.screen.height*0.4)
App.color{r=0.8,g=0,b=0}
love.graphics.rectangle('fill', 0, App.screen.height - height-10, App.screen.width, height+10)
App.color{r=0,g=0,b=0}
love.graphics.print(Run_time_error, 30, App.screen.height - height)
end
on.draw = function()
love.graphics.setColor(1,0,0)
for _,obj in ipairs(Surface) do
love.graphics.setColor(obj.r or 0, obj.g or 0, obj.b or 0)
if obj.type == 'rectangle' then
love.graphics.rectangle(obj.drawmode or 'fill', vx(obj.x),vy(obj.y), scale(obj.w),scale(obj.h))
elseif obj.type == 'line' then
love.graphics.line(unpack(obj.zdata))
elseif obj.type == 'circle' then
love.graphics.circle(obj.drawmode or 'fill', vx(obj.x), vy(obj.y), scale(obj.radius))
elseif obj.type == 'arc' then
love.graphics.arc(obj.drawmode or 'line', obj.arctype or 'open', vx(obj.x), vy(obj.y), scale(obj.radius), obj.angle1, obj.angle2, obj.segments)
elseif obj.type == 'ellipse' then
love.graphics.ellipse(obj.drawmode or 'fill', vx(obj.x), vy(obj.y), scale(obj.radiusx), scale(obj.radiusy))
elseif obj.type == 'bezier' then
love.graphics.line(unpack(obj.zdata))
elseif obj.type == 'text' then
if obj.w == nil then
love.graphics.draw(obj.text, vx(obj.x), vy(obj.y))
else
love.graphics.setColor(0.5,0.5,0.5)
love.graphics.rectangle('fill', vx(obj.x),vy(obj.y-30), scale(obj.w/2-5), scale(20))
edit.draw(obj.editor, obj.fg, not obj.show_cursor)
if obj.editor.load_time_error then
love.graphics.setColor(0.8,0,0)
local error_y = math.min(vy(obj.y+obj.h), App.screen.height-20*5*Viewport.zoom)
error_y = math.max(error_y, vy(obj.y))
love.graphics.rectangle('fill', vx(obj.x), error_y, scale(obj.w), scale(5*20*Viewport.zoom))
love.graphics.setColor(0,0,0)
love.graphics.print(obj.editor.load_time_error, vx(obj.x), error_y)
end
end
end
end
draw_run_time_error()
draw_ticks()
draw_menu_bar()
end
{"draw_manifest_navigator":677,"on.draw":797,"load_from_iterator":670,"vy":546,"get_definition_from_app":784,"Viewport":604,"Cursor_node":172,"manifest_navigator_down":635,"on.mouse_press":722,"scale":712,"on.mouse_release":721,"move_candidate_to_front_of_manifest":632,"on.update":741,"keychord_press_on_manifest_navigator":765,"on.initialize":695,"text_input_on_manifest_navigator":634,"A":713,"Page":475,"sy":469,"fw_parent":796,"manifest_navigator_candidates":638,"fw_app":"driver","copy_shape":396,"on.code_submit":787,"Manifest_navigator":495,"initialize_manifest_navigator":773,"get_multiple_definitions_from_app":783,"tick_spec":660,"wait_for_response":781,"mouse_cursor":558,"on.code_change":734,"get_manifest":768,"set_mouse_cursor":562,"font":353,"Definitions":503,"new_definition":767,"update_editor_box":711,"order_of_magnitude":573,"approximate":579,"on.save_settings":742,"schema1_of_y":667,"initialize_editor":678,"maybe_update_key_in_definitions":529,"approximate_up":658,"box_height":680,"Ticks_font":669,"draw_run_time_error":796,"on.load_settings":782,"Mouse_cursor":559,"manifest_navigator_up":628,"y_of_schema1":364,"reset_manifest_navigator":772,"draw_ticks":663,"on":1,"draw_cursor":639,"on_handle":547,"load_definition":716,"num_lines_for_manifest_navigator":676,"on.text_input":521,"manifest_index":637,"on_text":539,"manifest_coord":636,"load_manifest":694,"Menu_command_color":613,"Manifest":769,"table_and_array_both_empty":689,"sx":544,"Animating":770,"vx":545,"B":379,"Menu_background_color":611,"on.keychord_press":785,"Menu_border_color":612,"delete_definition":673,"on.key_release":720,"line_height":365,"Menu_highlight_color":614,"add_thick_line":400,"draw_menu_bar":641,"add_def_to_menu":640,"add_hotkey_to_menu":616,"compute_layout":385,"Surface":422}
{"draw_manifest_navigator":677,"on.draw":795,"load_from_iterator":670,"vy":546,"get_definition_from_app":784,"Viewport":604,"Cursor_node":172,"manifest_navigator_down":635,"on.mouse_press":722,"scale":712,"on.mouse_release":721,"move_candidate_to_front_of_manifest":632,"on.update":741,"keychord_press_on_manifest_navigator":765,"on.initialize":695,"text_input_on_manifest_navigator":634,"A":713,"Page":475,"sy":469,"fw_parent":795,"manifest_navigator_candidates":638,"fw_app":"driver","copy_shape":396,"on.code_submit":787,"Manifest_navigator":495,"initialize_manifest_navigator":773,"get_multiple_definitions_from_app":783,"tick_spec":660,"wait_for_response":781,"mouse_cursor":558,"on.code_change":734,"get_manifest":768,"set_mouse_cursor":562,"font":353,"Definitions":503,"new_definition":767,"update_editor_box":711,"order_of_magnitude":573,"approximate":579,"on.save_settings":742,"schema1_of_y":667,"initialize_editor":678,"maybe_update_key_in_definitions":529,"approximate_up":658,"box_height":680,"Ticks_font":669,"draw_run_time_error":796,"on.load_settings":782,"Mouse_cursor":559,"manifest_navigator_up":628,"y_of_schema1":364,"reset_manifest_navigator":772,"draw_ticks":663,"on":1,"draw_cursor":639,"on_handle":547,"load_definition":716,"num_lines_for_manifest_navigator":676,"on.text_input":521,"manifest_index":637,"on_text":539,"manifest_coord":636,"load_manifest":694,"Menu_command_color":613,"Manifest":769,"table_and_array_both_empty":689,"sx":544,"Animating":770,"vx":545,"B":379,"Menu_background_color":611,"on.keychord_press":785,"Menu_border_color":612,"delete_definition":673,"on.key_release":720,"line_height":365,"Menu_highlight_color":614,"add_thick_line":400,"draw_menu_bar":641,"add_def_to_menu":640,"add_hotkey_to_menu":616,"compute_layout":385,"Surface":422}
draw_run_time_error = function()
end