spell-cards.love/0045-new_word

9 lines
282 B
Plaintext

new_word = function()
Cursor_word = edit.initialize_state(
50 + (#Words+1)*Line_height*2, -- top
20 + 50, App.screen.width - 50,
love.graphics.getFont(), Font_height, Line_height)
Text.redraw_all(Cursor_word)
Cursor_word.contents = ''
table.insert(Words, Cursor_word)
end