draw_load_time_error = function(obj) if not obj.editor.load_time_error then return end love.graphics.setColor(0.8,0,0) local error_y = math.min(vy(obj.y+obj.h), App.screen.height-20*5*Viewport.zoom) error_y = math.max(error_y, vy(obj.y)) love.graphics.rectangle('fill', vx(obj.x), error_y, scale(obj.w), scale(5*20*Viewport.zoom)) love.graphics.setColor(0,0,0) love.graphics.print(obj.editor.load_time_error, vx(obj.x), error_y) end