/trunk
end |
local function ShowBlockHints() |
local showBelow = select(2, f:GetCenter()) > UIParent:GetHeight()/2 |
local showBelow = UIParent:GetHeight()-f:GetTop()*f:GetScale() < f:GetBottom()*f:GetScale() |
tip:SetOwner(f, "ANCHOR_NONE") |
tip:SetPoint(showBelow and "TOP" or "BOTTOM", f, showBelow and "BOTTOM" or "TOP") |
tip:AddLine"Hints [|cffffffffBlock|r]" |
local function ShowHints(btn) |
if not config.hideHints and btn and btn.unit then |
local showBelow = select(2, f:GetCenter()) > UIParent:GetHeight()/2 |
local showBelow = UIParent:GetHeight()-f:GetTop()*f:GetScale() < f:GetBottom()*f:GetScale() |
tip:SetOwner(f, "ANCHOR_NONE") |
tip:SetPoint(showBelow and "TOP" or "BOTTOM", f, showBelow and "BOTTOM" or "TOP") |
tip:AddLine"Hints" |
else |
tip:AddLine("|cffff8020MiddleClick|r to remove friend.", .2, 1, .2) |
end |
tip:AddLine("|cffff8020Ctrl+MouseWheel|r to resize. (test)", .2, 1, .2) |
tip:Show() |
tipShown = true |
end |