BF:BFD[
4.2] → [
5.2467:2517]
BF:BFD[
5.2517] → [
5.1781:1781]
B:BD[
5.1781] → [
5.1782:1818]
B:BD[
5.1818] → [
2.722:852]
∅:D[
2.852] → [
5.1950:2056]
B:BD[
5.1950] → [
5.1950:2056]
B:BD[
5.2056] → [
2.853:898]
∅:D[
2.898] → [
5.2099:2466]
B:BD[
5.2099] → [
5.2099:2466]
duplicate_pane_button = function(x)
local w = App.width('clone')+10
button(Global_state, 'clone', {x=x, y=Menu_top+5, w=w, h=Line_height, bg={r=0.6, g=0.8, b=0.6},
icon = function(p)
App.color(Normal_color)
love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)
love.graphics.print('clone', p.x+5,p.y+2)
end,
onpress1 = function()
local new_pane = {
editor_state = copy_editor(Current_pane.editor_state)
}
new_pane.output_editor_state = output_editor_state(new_pane.editor_state)
Current_pane_index = Current_pane_index+1
table.insert(Panes, Current_pane_index, new_pane)
Current_pane = Panes[Current_pane_index]
end,
})
return x+w+10
end