NCOT5XN2HOABWDGPINZ3U2KI2NB3YDSG56TJX4JUOP6XFIDDXQ7AC
{"create_editor_panel":114,"Title_font":73,"Num_panels_horizontal":23,"Num_panels_vertical":24,"on.initialize":104,"draw_data":90,"Margin":27,"draw_editor_panel":109,"Font_size":28,"fw_parent":116,"create_editor":94,"fw_app":"bf","Data":102,"Code":101,"on.draw":108,"In":98,"draw_title":110,"Out":103,"on.mouse_press":112,"Cursor":38,"on.keychord_press":65,"Data_title_text":76,"on.text_input":66,"panel_bounds":93,"on":1}
{"create_editor_panel":114,"Title_font":73,"Num_panels_horizontal":23,"In_title_text":74,"Num_panels_vertical":24,"on.initialize":104,"draw_data":90,"Margin":27,"draw_editor_panel":109,"Font_size":28,"fw_parent":115,"create_editor":94,"fw_app":"bf","Data":102,"Code":101,"on.draw":108,"In":98,"draw_title":110,"Out":103,"on.mouse_press":112,"Cursor":38,"on.keychord_press":65,"Data_title_text":76,"on.text_input":66,"panel_bounds":93,"on":1}
{"create_editor_panel":114,"Title_font":73,"Num_panels_horizontal":23,"In_title_text":74,"Num_panels_vertical":24,"Code_title_text":75,"on.initialize":104,"draw_data":90,"Margin":27,"draw_editor_panel":109,"Font_size":28,"fw_parent":114,"create_editor":94,"fw_app":"bf","Data":102,"Code":101,"on.draw":108,"In":98,"draw_title":110,"Out":103,"on.mouse_press":112,"Cursor":38,"on.keychord_press":65,"Data_title_text":76,"on.text_input":66,"panel_bounds":93,"on":1}
{"In":98,"draw_title":110,"Out":103,"on.keychord_press":65,"on.text_input":66,"panel_bounds":93,"Code":101,"on":1,"draw_data":90,"create_editor_panel":114,"Out_title_text":77,"fw_parent":113,"Title_font":73,"Num_panels_horizontal":23,"In_title_text":74,"Num_panels_vertical":24,"Code_title_text":75,"on.initialize":104,"Data_title_text":76,"fw_app":"bf","Margin":27,"on.mouse_press":112,"Font_size":28,"on.draw":108,"Data":102,"create_editor":94,"draw_editor_panel":109,"Cursor":38}
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, 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=App.newText(Title_font, title),
}
end
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":113,"Out":103,"draw_title":110,"draw_editor_panel":109,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":112,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":112,"Out_title_text":77,"draw_data":90,"Code":101}
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+5, left+panel_width-5, 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=App.newText(Title_font, title),
}
end
on.mouse_press = function(x,y, mouse_button)
if x < In.editor.right then
Cursor = In
edit.mouse_press(Cursor.editor, x,y, mouse_button)
elseif x < Code.editor.right then
if y < App.screen.height/2 then
Cursor = Code
edit.mouse_press(Cursor.editor, x,y, mouse_button)
else
Cursor = Data
end
else
Cursor = Out
edit.mouse_press(Cursor.editor, x,y, mouse_button)
end
end
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":100,"Out":103,"draw_title":110,"draw_editor_panel":109,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":112,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":111,"Out_title_text":77,"draw_data":90,"Code":101}
on.mouse_press = function(x,y, mouse_button)
if x < In.editor.right then
Cursor = In
edit.mouse_press(Cursor, x,y, mouse_button)
elseif x < Code.editor.right then
if y < App.screen.height/2 then
Cursor = Code
edit.mouse_press(Cursor, x,y, mouse_button)
else
Cursor = Data
end
else
Cursor = Out
edit.mouse_press(Cursor, x,y, mouse_button)
end
end
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":100,"Out":103,"draw_title":110,"draw_editor_panel":109,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":111,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":110,"Out_title_text":77,"draw_data":90,"Code":101}
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":100,"Out":103,"draw_title":110,"draw_editor_panel":109,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":67,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":109,"Out_title_text":77,"draw_data":90,"Code":101}
draw_title = function(text, panelx, panely, panel_width)
-- draw title text at top-right of panel whose top-left is panelx,panely
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(text, panelx + panel_width - App.width(text) - Margin*2, panely+10)
return panely + 100
end
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":100,"Out":103,"draw_title":89,"draw_editor_panel":109,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":67,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":108,"Out_title_text":77,"draw_data":90,"Code":101}
draw_editor_panel = function(panel)
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', panel.left+Margin, panel.top+Margin, panel.width, panel.height, 5,5)
draw_title(panel.title_text, panel.left, panel.top, panel.width)
edit.draw(panel.editor, Text_color, Cursor ~= panel)
end
on.draw = function()
App.color{r=0.5,g=0.5,b=0.5}
draw_editor_panel(In)
draw_editor_panel(Code)
draw_editor_panel(Out)
draw_data(Data)
end
{"Num_panels_horizontal":23,"on":1,"Num_panels_vertical":24,"on.initialize":104,"Data":102,"Margin":27,"Font_size":28,"on.draw":108,"on.keychord_press":65,"create_editor":94,"on.text_input":66,"panel_bounds":93,"In":98,"create_editor_panel":100,"Out":103,"draw_title":89,"draw_editor_panel":107,"Title_font":73,"Cursor":38,"In_title_text":74,"on.mouse_press":67,"Code_title_text":75,"fw_app":"bf","Data_title_text":76,"fw_parent":107,"Out_title_text":77,"draw_data":90,"Code":101}
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":104,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"on.keychord_press":65,"Out":103,"panel_bounds":93,"Title_font":73,"fw_parent":104,"fw_app":"bf","Font_size":28,"Margin":27,"Cursor":38,"create_editor":94,"draw_editor_panel":107,"on.text_input":66,"Num_panels_vertical":24,"draw_title":89,"on":1,"create_editor_panel":100}
draw_editor_panel = function(panel)
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', panel.left+Margin, panel.top+Margin, panel_width, panel_height, 5,5)
draw_title(panel.title_text, panel.left, panel.top, panel.width)
edit.draw(panel.editor, Text_color, Cursor ~= panel)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":104,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"draw_editor_panel(panel)":106,"Out":103,"panel_bounds":93,"Title_font":73,"fw_parent":104,"fw_app":"bf","Font_size":28,"Margin":27,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Num_panels_vertical":24,"draw_title":89,"on":1,"create_editor_panel":100}
draw_editor_panel(panel)
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', panel.left+Margin, panel.top+Margin, panel_width, panel_height, 5,5)
draw_title(panel.title_text, panel.left, panel.top, panel.width)
edit.draw(panel.editor, Text_color, Cursor ~= panel)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":104,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"draw_editor_panel(panel)":105,"Out":103,"Title_font":73,"panel_bounds":93,"fw_parent":104,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
draw_editor_panel(panel)
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', panel.left+Margin, panel.top+Margin, panel_width, panel_height, 5,5)
edit.draw(panel.editor, Text_color, Cursor ~= panel)
end
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor_panel(1,1, 'In')
Code = create_editor_panel(2,1, 'Code')
Out = create_editor_panel(3,1, 'Out')
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
Data[1] = 3
Data[2] = 4
Data_title_text = App.newText(Title_font, 'Data')
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":104,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"Out":103,"Title_font":73,"panel_bounds":93,"fw_parent":103,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"Out":103,"Title_font":73,"panel_bounds":93,"fw_parent":102,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
Out = nil
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":102,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":101,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
Data = nil
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":101,"In":98,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":100,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
Code = nil
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":98,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":99,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":100}
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, left+5, left+panel_width-5, 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=App.newText(Title_font, title),
}
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":98,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":98,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":99}
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, left+5, left+panel_width-5, 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=Ap.newText(Title_font, title),
}
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":98,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":97,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":97}
In = nil
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":96,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":97}
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, left+5, left+panel_width-5, Font_size, math.floor(Font_size*1.3))
Text.redraw_all(editor)
return {
left=left, top=top,
width=panel_width, height=panel_height,
title_text=Ap.newText(Title_font, title),
}
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":95,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":96}
create_editor_panel = function(col, row)
local left, top, panel_width, panel_height = panel_bounds(col, row)
local editor = edit.initialize_state(top+5, left+5, left+panel_width-5, Font_size, math.floor(Font_size*1.3))
Text.redraw_all(editor)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"Title_font":73,"panel_bounds":93,"fw_parent":94,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"create_editor_panel":95}
create_editor_panel = function(col, row)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"panel_bounds":93,"fw_parent":93,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":94,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
create_editor = function(col, row)
local left, top, panel_width, panel_height = panel_bounds(col, row)
local result = edit.initialize_state(top+5, left+5, left+panel_width-5, Font_size, math.floor(Font_size*1.3))
Text.redraw_all(result)
return result
end
panel_bounds = function(col, row)
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal + 1)) / Num_panels_horizontal
local left = (col - 1) * (Margin + panel_width) + Margin
local panel_height = (App.screen.height - Margin * (Num_panels_vertical[col]+1)) / Num_panels_vertical[col]
local top = (row - 1) * (Margin + panel_height) + Margin
return left,top, panel_width, panel_height
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"panel_bounds":93,"fw_parent":92,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
panel_bounds = function(col, row)
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal + 1)) / Num_panels_horizontal
local left = (col - 1) * (Margin + panel_width) + Margin
local panel_height = (App.screen.height - Margin * (Num_panels_vertical[col]+1)) / Num_panels_vertical[col]
local top = (row - 1) * (Margin + panel_height) + Margin
local result = edit.initialize_state(top+5, left+5, left+panel_width-5, Font_size, math.floor(Font_size*1.3))
Text.redraw_all(result)
return result
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"panel_bounds":92,"fw_parent":91,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
on.draw = function()
assert(#Num_panels_vertical == Num_panels_horizontal)
App.color{r=0.5,g=0.5,b=0.5}
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local x = 0
for i = 1,Num_panels_horizontal do
local panel_height = (App.screen.height - Margin * (Num_panels_vertical[i]+1)) / Num_panels_vertical[i]
local y = 0
for j = 1,Num_panels_vertical[i] do
love.graphics.rectangle('line', x+Margin, y+Margin, panel_width, panel_height, 5,5)
y = y + Margin + panel_height
end
x = x + Margin + panel_width
end
edit.draw(In, Text_color, Cursor ~= In)
edit.draw(Code, Text_color, Cursor ~= Code)
edit.draw(Out, Text_color, Cursor ~= Out)
draw_data(Data)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":91,"Code":31,"In":32,"Out":33,"fw_parent":90,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":90,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":89,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
y = draw_title(Data_title_text, x,y, panel_width)
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":87,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":88,"draw_title":89,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_title = function(text, panelx, panely, panel_width)
-- draw title text at top-right of panel whose top-left is panelx,panely
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(text, panelx + panel_width - App.width(text) - Margin*2, panely)
return panely + 100
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":87,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":87,"draw_title":88,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_title = function(text, panelx, panely, panel_width)
-- draw title text at top-right of panel whose top-left is panelx,panely
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin*2, y)
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":87,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":86,"draw_title":86,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
y = y + 100
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":85,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":85,"draw_title":86,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_title = function(text, panelx, panely, panel_width)
-- draw title text at top-right of panel whose top-left is panelx,panely
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":85,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":84,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin*2, y)
y = y + 100
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":84,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":83,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin*2, y)
y = y + 30
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":83,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":82,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin*2, y)
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":82,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":81,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin*2, y + 20)
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"on.mouse_press":67,"Num_panels_horizontal":23,"Data":46,"draw_data":81,"In_title_text":74,"on.initialize":79,"Code_title_text":75,"Data_title_text":76,"Out_title_text":77,"on.draw":49,"Code":31,"In":32,"Out":33,"fw_parent":80,"Font_size":28,"Num_panels_vertical":24,"Cursor":38,"create_editor":62,"on.keychord_press":65,"on.text_input":66,"Margin":27,"fw_app":"bf","on":1,"Title_font":73}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width - App.width(Data_title_text) - Margin, y + 20)
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
{"In_title_text":74,"Out_title_text":77,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":79,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Data_title_text":76,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":80,"Num_panels_vertical":24,"Code":31,"on.initialize":79}
draw_data = function(data)
-- assumes data is in middle column, bottom half
local panel_width = (App.screen.width - Margin * (Num_panels_horizontal+1)) / Num_panels_horizontal
local panel_height = (App.screen.height - Margin*3) / 2
local x = Margin + panel_width + Margin + 20
local y = Margin + panel_height + Margin + 20
App.color{r=0.7,g=0.7,b=0.7}
love.graphics.draw(Data_title_text, x + panel_width*2/3, y + 20)
for i,d in ipairs(data) do
App.color{r=0.5,g=0.5,b=0.5}
love.graphics.rectangle('line', x,y, 60, 30, 2,2)
App.color{r=0,g=0,b=0}
love.graphics.print(d, x+2,y)
x = x+80
if i%5 == 0 then
y = y + 40
x = Margin + panel_width + Margin + 20
end
end
end
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
Data[1] = 3
Data[2] = 4
Out = create_editor(3, 1)
In_title_text = App.newText(Title_font, 'In')
Code_title_text = App.newText(Title_font, 'Code')
Data_title_text = App.newText(Title_font, 'Data')
Out_title_text = App.newText(Title_font, 'Out')
end
{"In_title_text":74,"Out_title_text":77,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":78,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Data_title_text":76,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":79}
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
data[1] = 3
data[2] = 4
Out = create_editor(3, 1)
In_title_text = App.newText(Title_font, 'In')
Code_title_text = App.newText(Title_font, 'Code')
Data_title_text = App.newText(Title_font, 'Data')
Out_title_text = App.newText(Title_Font, 'Out')
end
{"In_title_text":74,"Out_title_text":77,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":77,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Data_title_text":76,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":78}
{"In_title_text":74,"Out_title_text":77,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":76,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Data_title_text":76,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
Out_title_text = nil
{"In_title_text":74,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":75,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Data_title_text":76,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
Data_title_text = nil
{"In_title_text":74,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":74,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Code_title_text":75,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
Code_title_text = nil
{"In_title_text":74,"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":73,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
In_title_text = nil
{"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":72,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Title_font":73,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
Title_font = love.graphics.newFont(60)
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
data[1] = 3
data[2] = 4
Out = create_editor(3, 1)
end
{"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":70,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":72}
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
data[1] = 3
data[2] =
Out = create_editor(3, 1)
end
{"Margin":27,"create_editor":62,"Font_size":28,"on.draw":49,"fw_parent":70,"In":32,"fw_app":"bf","Out":33,"on.keychord_press":65,"on.text_input":66,"Data":46,"on":1,"on.mouse_press":67,"Cursor":38,"Num_panels_horizontal":23,"draw_data":63,"Num_panels_vertical":24,"Code":31,"on.initialize":71}
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
Data[1] = 3
Out = create_editor(3, 1)
end
{"Margin":27,"on":1,"on.draw":49,"create_editor":62,"Code":31,"In":32,"Out":33,"Cursor":38,"on.keychord_press":65,"on.text_input":66,"fw_parent":69,"Font_size":28,"fw_app":"bf","Num_panels_horizontal":23,"on.mouse_press":67,"Num_panels_vertical":24,"on.initialize":70,"draw_data":63,"Data":46}
on.initialize = function()
local font = love.graphics.newFont(Font_size)
love.graphics.setFont(font)
In = create_editor(1, 1)
Code = create_editor(2, 1)
Data = {}
for i=1,10 do
table.insert(Data, 0)
end
table[1] = 3
Out = create_editor(3, 1)
end
{"Cursor":38,"create_editor":62,"fw_app":"bf","Data":46,"In":32,"fw_parent":68,"Num_panels_vertical":24,"on.keychord_press":65,"on.text_input":66,"on.draw":49,"on":1,"on.mouse_press":67,"Out":33,"on.initialize":69,"draw_data":63,"Code":31,"Margin":27,"Num_panels_horizontal":23,"Font_size":28}