spell-cards.love/0022-draw_new_word_button

9 lines
267 B
Plaintext

draw_new_word_button = function()
App.color{r=0.7, g=0.7, b=1, a=1}
local cmd = 'new word (ctrl+n)'
local cmd_width = App.width(cmd)
love.graphics.rectangle('fill', 60, 5, cmd_width+10, Line_height+10)
App.color(Text_color)
App.screen.print(cmd, 60+5, 5+5)
end