driver.love/0034-on_handle

11 lines
270 B
Plaintext

on_handle = function(x,y)
for _,node in ipairs(Surface) do
if node.type == 'text' then
if x >= vx(node.x) and node.w and x < vx(node.x + node.w/2-5) then
if y >= vy(node.y-30) and node.h and y < vy(node.y-10) then
return node
end
end
end
end
end