driver.love/0077-new_definition

16 lines
335 B
Plaintext

new_definition = function()
if Cursor_node then
Cursor_node.show_cursor = false
end
local p = spawn_point()
table.insert(Definitions, {
type='text',
data={''},
x=p.x, y=p.y,
width=600,
bg=Definition_background_color,
key=#Definitions+1,
})
Cursor_node = Definitions[#Definitions]
Cursor_node.show_cursor = true
end