create_editor_panel = function(col, row, title) local left, top, panel_width, panel_height = panel_bounds(col, row) local editor = edit.initialize_state(top+5+100, left+Margin+5, left+panel_width-5, love.graphics.getFont(), Font_size, math.floor(Font_size*1.3)) Text.redraw_all(editor) return { left=left, top=top, width=panel_width, height=panel_height, editor=editor, title_text=love.graphics.newText(Title_font, title), } end