WoWInterface SVN zz_Money

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 73 to Rev 74
    Reverse comparison

Rev 73 → Rev 74

trunk/zz_Money/core.lua
143,9 → 143,9
 
local function Mouse(name)
if(mailframes[name]) then
local tip = addon['qtip']:Acquire(childName.."QTip",1)
tip:SmartAnchorTo(mailframes[name])
tip:Clear()
local tip = GameTooltip
tip:SetOwner(self, "ANCHOR_BOTTOM")
tip:ClearLines()
mailframes[name]['tooltip'] = tip
if(db[realm][faction]['banker'] ~= player) then
tip:AddLine(format("%s %s",L['Bankier'],db[realm][faction]['banker']))
170,7 → 170,7
 
mailframe:SetScript("OnClick", function(_,button,_) Click(button,name) end)
mailframe:SetScript("OnEnter", function() Mouse(name) end)
mailframe:SetScript("OnLeave", function(self) addon['qtip']:Release(self['tooltip']) end)
mailframe:SetScript("OnLeave", function(self) mailframes[name]['tooltip']:Hide() end)
local tex = mailframe:CreateTexture(nil,"BACKGROUND")
tex:SetTexture("Interface\\Icons\\INV_Misc_Bag_10_Blue")
tex:SetAllPoints(mailframe)
246,7 → 246,7
local ttlist = {}
 
local function OnTooltip(tip)
local zztip = type(tip.AddHeader) == 'function' and tip:AddHeader(childName) or tip:AddLine(childName)
tip:AddLine(childName)
if(faction == 'Neutral') then
tip:AddLine(L['neutral'])
return