2022-12-26 22:25:00 +00:00
|
|
|
on_text = function(x,y)
|
|
|
|
for _,node in ipairs(Surface) do
|
2023-06-23 02:17:01 +01:00
|
|
|
if node.type == 'text' and not node.button then
|
2022-12-26 22:25:00 +00:00
|
|
|
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
|