diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-23 12:13:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-23 12:13:22 -0700 |
commit | b6f42ebf01b6738458b37ff255f55854dea20adc (patch) | |
tree | 46c407c2098e90a3505d65e2e041ab8379f7287c /icons.lua | |
parent | 8747415461a921dd26cc2610471ddb411db0ed16 (diff) | |
download | lines.love-b6f42ebf01b6738458b37ff255f55854dea20adc.tar.gz |
pass all button params to the icon
Diffstat (limited to 'icons.lua')
-rw-r--r-- | icons.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/icons.lua b/icons.lua index 19939cf..175fb13 100644 --- a/icons.lua +++ b/icons.lua @@ -1,6 +1,7 @@ icon = {} -function icon.insert_drawing(x, y) +function icon.insert_drawing(button_params) + local x,y = button_params.x, button_params.y App.color(Icon_color) love.graphics.rectangle('line', x,y, 12,12) love.graphics.line(4,y+6, 16,y+6) |