Auctionator

Auctionator

137M Downloads

Price history in tooltips.

Tarkumi opened this issue ยท 4 comments

commented

Could you implement a feature to show the item price history in the tooltip on a keypress? Like Ctrl or Alt.

commented

Something like (got an initial version, its not done yet):
image

commented

Exactly, that would be great!

commented

While we can implement the feature, this is sufficiently invasive that it will need to be disabled by default (the price history is a pretty big thing to add to a tooltip, even with a modifier key), and adding a feature that needs to be hidden in that way is undesirable.

commented

Its possible to hook into Auctionator to add it yourself though - although it might break in the future:

hooksecurefunc(Auctionator.Tooltip, "ShowTipWithPricingDBKey", function(tooltipFrame, dbKeys)
  if IsAltKeyDown() then
    for index, entry in ipairs(Auctionator.Database:GetPriceHistory(dbKeys[1])) do
      tooltipFrame:AddDoubleLine(entry.date, WHITE_FONT_COLOR:WrapTextInColorCode(Auctionator.Utilities.CreateMoneyString(entry.minSeen)))
    end
  end
  tooltipFrame:Show()
end)