HGEVMBDCRYMPNK3HVJJMCBG5GYCSINKWGAQMXUO3GMIXOK553R7AC
HZIFHN7TRXF36OU6MSKZAKIZMAF3JEVYNQRFUXXOOUPDKRH3Q2AQC
AKB7VR7BW2ZIOGBFNMDUMWST3HQJD75RJFR7BIQRSJ4XX7AFGVTAC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
BUP3HJQL2LMP7AQYP74Y2ZSHRUAUKZTBOWFXY4VEFUOLREB5RTUQC
U2ERNHWYM73X2EJWQLDXZOR2PVOOBIJ2IMWZKAKXTC7BP4YW3YPAC
QEXZHD2VPCM4TAPP7PR2K2PIR4BVES5IZWC3T6ZRNJWKWOXFILNQC
VUPGHZX5E3EN7757QF36AWOODSBQC4HZACRPZEDGCEOL7LELB4SQC
ECUKZUSFVKW6Z4GOE3G4CEZRIOJR5XF5OWZSDNEHOJVYHTG24DLAC
Line_number_color = {r=0.6, g=0.6, b=0.6}
button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,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,
})
Icon_color = {r=0.7, g=0.7, b=0.7} -- color of current mode icon in drawings
Help_color = {r=0, g=0.5, b=0}
Help_background_color = {r=0, g=0.5, b=0, a=0.1}
Line_number_width = 3 -- in ems
Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, settings.font_height, math.floor(settings.font_height*1.3))
Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right)
Editor_state.filename = 'run.lua'
Editor_state.filename = settings.filename
-- called both in tests and real run
function source.initialize_globals()
-- tests currently mostly clear their own state
Show_log_browser_side = false
Focus = 'edit'
Show_file_navigator = false
File_navigation = {