restore an icon
This commit is contained in:
parent
4fa0b4ccad
commit
186d5c51f3
2
edit.lua
2
edit.lua
|
@ -151,7 +151,7 @@ function edit.draw(State)
|
|||
if State.show_cursor and line.data == '' then
|
||||
-- button to insert new drawing
|
||||
button('draw', {x=State.left - Margin_left + 4, y=y+4, w=12,h=12, color={1,1,0},
|
||||
--? icon = icon.insert_drawing, -- TODO
|
||||
icon = icon.insert_drawing,
|
||||
onpress1 = function()
|
||||
Drawing.before = snapshot(State, line_index-1, line_index)
|
||||
table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
|
||||
|
|
|
@ -3,8 +3,8 @@ icon = {}
|
|||
function icon.insert_drawing(x, y)
|
||||
App.color(Icon_color)
|
||||
love.graphics.rectangle('line', x,y, 12,12)
|
||||
love.graphics.line(4,y+6, 16,y+6)
|
||||
love.graphics.line(10,y, 10,y+12)
|
||||
love.graphics.line(x,y+6, x+12,y+6)
|
||||
love.graphics.line(x+6,y, x+6,y+12)
|
||||
end
|
||||
|
||||
function icon.freehand(x, y)
|
||||
|
|
Loading…
Reference in New Issue
Block a user