From 184471ff7af3d177b65ec88ccf2c9e524d3bfa86 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 21 Jan 2016 14:59:54 +0100 Subject: [PATCH] prettier tooltip money, tooltip moved to bottom right of screen, added buyout sorting to the full views --- core.lua | 4 ++-- filter_search_frame.lua | 2 +- info.lua | 3 ++- item_search_frame.lua | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core.lua b/core.lua index 4828e4e..42d89bd 100644 --- a/core.lua +++ b/core.lua @@ -48,9 +48,9 @@ function Aux_OnLoad() local market_value = Aux.history.market_value(item_key) local market_value_line if count == 1 then - market_value_line = 'Market Value: '..Aux.util.money_string(market_value) + market_value_line = 'Market Value: '..EnhTooltip.GetTextGSC(market_value) else - market_value_line = 'Market Value: '..Aux.util.money_string(market_value * count)..' / '..Aux.util.money_string(market_value) + market_value_line = 'Market Value: '..EnhTooltip.GetTextGSC(market_value * count)..' / '..EnhTooltip.GetTextGSC(market_value) end EnhTooltip.AddLine(market_value_line, nil, true) diff --git a/filter_search_frame.lua b/filter_search_frame.lua index 8efc36c..e282646 100644 --- a/filter_search_frame.lua +++ b/filter_search_frame.lua @@ -512,7 +512,7 @@ public.views = { end, }, }, - sort_order = {{column = 1, order = 'ascending' }}, + sort_order = {{column = 1, order = 'ascending' }, {column = 7, order = 'ascending' }}, }, } diff --git a/info.lua b/info.lua index dbb4930..8e7edd6 100644 --- a/info.lua +++ b/info.lua @@ -145,7 +145,8 @@ function public.set_tooltip(itemstring, EnhTooltip_info, owner, anchor, x_offset else private.anchor_cursor = false end - AuxTooltip:SetOwner(owner, anchor) + GameTooltip_SetDefaultAnchor(AuxTooltip, UIParent) +-- AuxTooltip:SetOwner(owner, anchor) AuxTooltip:SetHyperlink(itemstring) diff --git a/item_search_frame.lua b/item_search_frame.lua index a740316..9e2fd22 100644 --- a/item_search_frame.lua +++ b/item_search_frame.lua @@ -451,7 +451,7 @@ public.views = { end, }, }, - sort_order = {}, + sort_order = {{column = 5, order = 'ascending'}}, }, }