/
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'])) |
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) |
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 |