Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions addons/libs/texts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,10 @@ function texts.hover(t, x, y)

local pos_x, pos_y = windower.text.get_location(meta[t].name)
local off_x, off_y = windower.text.get_extents(meta[t].name)

if meta[t].settings.flags.right then
pos_x = pos_x - off_x
end

return (pos_x <= x and x <= pos_x + off_x
or pos_x >= x and x >= pos_x + off_x)
Expand Down