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3SMNFKGY5ZVBTIXUCYD3OVPDJBQM3AKPHSPMC3QC
function add_error(err)
print(err)
table.insert(Cache['errors'].lines, {mode='text', data=err})
table.insert(Cache['errors'].line_cache, {})
Current_error = err
Current_error_time = App.getTime()
Current_error_text = App.newText(love.graphics.getFont(), err)
end
function show_error(err)
if Current_error == nil then return end
local left = math.max(0, 1/2*(App.screen.width-App.width(Current_error_text)-10))
local width = math.min(App.screen.width, App.width(Current_error_text)+20)
App.color{r=0.6,g=0,b=0}
love.graphics.rectangle('fill', left, Menu_status_bar_height, width, Line_height+10)
App.color{r=1.0,g=0.8,b=0.8}
love.graphics.draw(Current_error_text, left+10, Menu_status_bar_height+5)
end
function populate_errors_column(column)
local pane = edit.initialize_state(0, 0, math.min(Display_settings.column_width, App.screen.width-Margin_right), Font_height, Line_height)
pane.id = 'errors'
pane.filename = Directory..pane.id
pane.lines = Cache[pane.id].lines
pane.line_cache = Cache[pane.id].line_cache -- alias since we won't edit
pane.font_height = Font_height
pane.line_height = Line_height
pane.em = Em
pane.editable = false
edit.fixup_cursor(pane)
pane.title = '(do not edit)'
table.insert(column, pane)
end