Merge text.love

[?]
Sep 15, 2023, 5:45 AM
RIAFJLMZD4DCRT5J3YIRP4OTNZJTQR4Q7VWKYHDZY65MIFQ5RF3QC

Dependencies

Change contents

  • file deletion: source_text.lua (----------)source_text.lua (----------)
    [6.2][6.147125:147164](),[6.2][6.147125:147164](),[6.147164][6.83786:83786]()
    App.color(Line_number_color)
    love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)
    initialize_color()
  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [6.2][6.165788:165827](),[6.2][6.165788:165827](),[6.165827][6.152503:152503]()
    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,
    })
    Line_number_color = {r=0.6, g=0.6, b=0.6}
    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}
  • file deletion: source.lua (----------)source.lua (----------)
    [6.2][6.177715:177749](),[6.2][6.177715:177749](),[6.177749][6.165829:165829]()
    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 = 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.filename = settings.filename
    Line_number_width = 3 -- in ems
    -- 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 = {