|
on_text = function(x,y)
|
|
for _,node in ipairs(Surface) do
|
|
if node.type == 'text' and not node.button then
|
|
if x >= vx(node.x) and node.w and x < vx(node.x + node.w) then
|
|
if y >= vy(node.y) and node.h and y < vy(node.y + node.h) then
|
|
return node
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end |