14 lines
414 B
Plaintext
14 lines
414 B
Plaintext
overflow_button = function(x, y)
|
|
local w = App.width('>>')+10
|
|
button(Global_state, 'overflow', {x=x, y=y, w=w, h=Line_height, bg={r=0.6, g=0.8, b=0.6},
|
|
icon = function(p)
|
|
App.color(Normal_color)
|
|
love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)
|
|
love.graphics.print('>>', p.x+5,p.y+2)
|
|
end,
|
|
onpress1 = function()
|
|
Show_overflow = not Show_overflow
|
|
end,
|
|
})
|
|
return x+w+10, y+Line_height
|
|
end |