Now I only assume 'run' and 'stop' are always visible. And there's no point wasting space on the 'code' text in that case.
I've also standardized the boilerplate on all the other buttons.
VQYLKEGDS4KNR3LOKUZUK435L77IT4LE6S356QTN5N6POTCYMJRAC
QGSOEM7ZQRF4SA76PESYYTRBQ7DRKDIXCBS2POYEGOGD4PCGE4VAC
5MEJ7XNHNFG2BIX3TFU6PDJHSJOS2Z45L25QAZKFGRW7ZNOFEUKAC
RK2ASPN7A55RCEG2YRFZLFXNPSME2VKBE2ZXO257DYZPS5TPXC5QC
GWLETNMWE7L7P3YBVUFZGBNT3DKHB7IT7ZJ54FUCNYLC72UNCXGAC
5RUFNRJOK3PXQKJTPDEN5K5PI67MGB25QUA44WOCCH2O5KHXT45QC
else y = y2
else
y = y2
local x2, y2 = maybe_draw_overflow_button(x, y, w, r) if Overflow_button then -- overflow if not Show_overflow then return x, y else y = y2 end end
local x2, y2 = maybe_draw_overflow_button(x, y, w, r)
if Overflow_button then
-- overflow
if not Show_overflow then
return x, y
end
return x+w+10, y
if Overflow_button then return x, y+Line_height else return x+w+10, y end
return x, y+Line_height
App.color{r=0.5, g=0.5, b=0.5} love.graphics.print('code', x, y) x = x+App.width('code')+10
App.color{r=0.5, g=0.5, b=0.5}
love.graphics.print('code', x, y)
x = x+App.width('code')+10
if not Overflow_button then local w = App.width('code')+10 local w2 = App.width('>>')+10 if x+w+10+w2+10 < r then App.color{r=0.5, g=0.5, b=0.5} love.graphics.print('code', x, y) x = x+w+10 end end
if not Overflow_button then
local w = App.width('code')+10
local w2 = App.width('>>')+10
if x+w+10+w2+10 < r then
x = x+w+10
x = x+App.width('screen')+10