driver.love/0093-draw_test_failure_indi...

13 lines
548 B
Plaintext

draw_test_failure_indicator = function()
if Client_app_test_failures == nil then
return
end
if next(Client_app_test_failures, nil) == nil then
return
end
App.color(Failing_test_definition_background_color)
local border_width = App.screen.width/40, App.screen.height
love.graphics.rectangle('fill', 0,0, border_width,App.screen.height)
love.graphics.rectangle('fill', App.screen.width-border_width, 0, border_width, App.screen.height)
love.graphics.rectangle('fill', 0,App.screen.height-border_width, App.screen.width, border_width)
end