BFD:BFD[
4.2] → [
5.165788:165827]
BFD:BFD[
4.2] → [
5.165788:165827]
BFD:BFD[
5.165827] → [
5.152503:152503]
B:BD[
8.876] → [
3.104:182]
∅:D[
3.182] → [
9.18934:19646]
button(State, 'draw', {x=buttonx, y=y+4, w=12,h=12, bg={r=1,g=1,b=0},
icon = icon.insert_drawing,
onpress1 = function()
Drawing.before = snapshot(State, line_index-1, line_index)
table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
table.insert(State.line_cache, line_index, {})
if State.cursor1.line >= line_index then
State.cursor1.line = State.cursor1.line+1
end
schedule_save(State)
record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})
end,
})