mastodon-unfurl.love/0038-to_node

11 lines
275 B
Plaintext

to_node = 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) then
if y >= vy(node.y) and node.h and y < vy(node.y + node.h) then
return node.toot_id
end
end
end
end
end