diff --git a/filter_search_frame.lua b/filter_search_frame.lua index c31104b..1eacf21 100644 --- a/filter_search_frame.lua +++ b/filter_search_frame.lua @@ -27,7 +27,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) @@ -141,7 +141,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) @@ -285,7 +285,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) diff --git a/info.lua b/info.lua index 3cfd69c..77aa074 100644 --- a/info.lua +++ b/info.lua @@ -130,7 +130,7 @@ function public.reanchor_tooltip() this:ClearAllPoints() local x, y = GetCursorPosition() x, y = x / UIParent:GetEffectiveScale() + private.x_offset, y / UIParent:GetEffectiveScale() + private.y_offset - this:SetPoint('BOTTOM', UIParent, 'BOTTOMLEFT', x, y) + this:SetPoint('TOP', UIParent, 'BOTTOMLEFT', x, y) end end @@ -139,7 +139,7 @@ function public.set_tooltip(itemstring, EnhTooltip_info, owner, anchor, x_offset private.anchor_cursor = true private.x_offset = x_offset private.y_offset = y_offset - anchor = 'BOTTOM' + anchor = 'TOP' else private.anchor_cursor = false end diff --git a/item_search_frame.lua b/item_search_frame.lua index 9bc4ce4..3396a6a 100644 --- a/item_search_frame.lua +++ b/item_search_frame.lua @@ -88,7 +88,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) @@ -160,7 +160,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) @@ -262,7 +262,7 @@ public.views = { end, on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, sheet.rows[row_index].EnhTooltip_info, this, 'ANCHOR_RIGHT', 0, 0) end, on_row_leave = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(0) diff --git a/post_frame.lua b/post_frame.lua index cdda081..31bd895 100644 --- a/post_frame.lua +++ b/post_frame.lua @@ -21,7 +21,7 @@ Aux.sell.inventory_listing_config = { on_row_enter = function (sheet, row_index) sheet.rows[row_index].highlight:SetAlpha(.5) - Aux.info.set_tooltip(sheet.rows[row_index].itemstring, nil, this, 'ANCHOR_CURSOR', 0, 30) + Aux.info.set_tooltip(sheet.rows[row_index].itemstring, nil, this, 'ANCHOR_LEFT', 0, 0) end, on_row_leave = function (sheet, row_index)