From b1dff369cb55cca76e2ac9e01d69447cedcb1158 Mon Sep 17 00:00:00 2001 From: Brandon Talbot Date: Thu, 4 Aug 2016 20:42:02 +0200 Subject: [PATCH] Added currency tooltip back --- src/xml/element/mainBar.xml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/xml/element/mainBar.xml b/src/xml/element/mainBar.xml index cf54895..95ae4be 100644 --- a/src/xml/element/mainBar.xml +++ b/src/xml/element/mainBar.xml @@ -74,7 +74,7 @@ - + @@ -86,6 +86,33 @@ + + + + + + + + local cnt = GetCurrencyListSize() + GameTooltip:SetOwner(self, "ANCHOR_NONE") + GameTooltip:SetPoint("BOTTOMLEFT", self, "TOPLEFT") + GameTooltip:SetText("Currency") + for index = 1, cnt do + local name, _, _, _, _, count, texture, _, _, _, _ = GetCurrencyListInfo(index) + if count ~= 0 and texture ~= nil then + GameTooltip:AddDoubleLine(name, count .. " |T" .. texture .. ":16|t", 1, 1, 1, 1, 1, 1) + end + end + GameTooltip:Show() + + + GameTooltip:Hide() + + + MoneyInputFrame_OpenPopup(self:GetParent().moneyFrame); + + + -- 1.7.9.5