Originally Posted by Ketho
|
Hi thanks for your reply,
You are right. It is still there.
But I have this code in an addon:
Lua Code:
local tooltip = CreateFrame("GameTooltip", "gmAchievementsCompareTooltip", UIParent, "GameTooltipTemplate")
tooltip:EnableMouse(true)
tooltip:SetToplevel(true)
tooltip:SetMovable(true)
tooltip:SetFrameStrata("TOOLTIP")
tooltip:Hide()
tooltip:SetSize(128, 64)
tooltip:SetPoint("BOTTOM", 150, 80)
tooltip:SetPadding(16)
tooltip:RegisterForDrag("LeftButton")
tooltip:SetScript("OnDragStart", tooltip.StartMoving)
tooltip:SetScript("OnDragStop", function(self)
self:StopMovingOrSizing()
ValidateFramePosition(self)
end)
And it worked since 7.1
Now I get:
8x gmAchievementsCompare\core.lua:13: Usage: gmAchievementsCompareTooltip:SetPadding(width, height)
[C]:: in function 'SetPadding' gmAchievementsCompare\core.lua:13: in main chun
|
Only today I realize that now it wants 2 params not 1.
So I changed this to:
and everything is fine.
Sperem ...