13 lines
394 B
Plaintext
13 lines
394 B
Plaintext
|
draw_menu = function()
|
||
|
App.color(Menu_background)
|
||
|
love.graphics.rectangle('fill', 0,0, App.screen.width, Menu_bottom)
|
||
|
button(Editor_state, 'run', {x=Menu_left+5, y=Menu_top+5, w=App.width('Run')+10, h=Line_height, bg={r=0.5, g=0.8, b=0.5},
|
||
|
icon = function(p)
|
||
|
App.color{r=0,g=0,b=0}
|
||
|
love.graphics.print('Run', p.x+5,p.y+2)
|
||
|
end,
|
||
|
onpress1 = function()
|
||
|
print('run')
|
||
|
end,
|
||
|
})
|
||
|
end
|