From 516944b57215db43e20678b7462a46c1beae99ea Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 5 Sep 2022 14:16:30 -0700 Subject: support hyperlinks in the source editor Integrated from the pensieve fork. --- icons.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'icons.lua') diff --git a/icons.lua b/icons.lua index 175fb13..e80f771 100644 --- a/icons.lua +++ b/icons.lua @@ -8,6 +8,12 @@ function icon.insert_drawing(button_params) love.graphics.line(10,y, 10,y+12) end +function icon.hyperlink_decoration(button_params) + local x,y = button_params.x, button_params.y + App.color(Hyperlink_decoration_color) + love.graphics.line(x,y+Editor_state.line_height, x+button_params.w,y+Editor_state.line_height) +end + function icon.freehand(x, y) love.graphics.line(x+4,y+7,x+5,y+5) love.graphics.line(x+5,y+5,x+7,y+4) -- cgit 1.4.1-2-gfad0