if self:GetParent().bagBar:IsVisible() then
self:GetParent().bagBar:Hide()
else
self:GetParent().bagBar:Show()
end
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "PLAYER");
MoneyFrame_SetMaxDisplayWidth(self, 168);
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);
DJBagsRegisterBagBagContainer(self, {0, 1, 2, 3, 4})
self:OnShow()
self:OnHide()