I have put it in my own addon (and it loads without errors).
The settings in the init block is probably redundant, right?
Code:
afxSettings = {}
afxSettings.name = "afxSettings"
-- x.y ,xmax,ymax
function afxSettings.Initialize()
ItemTooltip:SetDimensionConstraints(600, 0, 600, 1080)
ItemTooltip:SetScale(0.875)
PopupTooltip:SetDimensionConstraints(600, 0, 600, 1080)
ItemTooltip:SetScale(0.875)
ComparativeTooltip1:SetDimensionConstraints(600, 0, 600, 8192)
ComparativeTooltip2:SetDimensionConstraints(600, 0, 600, 8192)
ComparativeTooltip1:SetScale(0.875)
ComparativeTooltip2:SetScale(0.875)
end
function afxSettings.OnAddOnLoaded(event, addonName)
if addonName == afxSettings.name then
afxSettings.Initialize()
EVENT_MANAGER:UnregisterForEvent(afxSettings.name, EVENT_ADD_ON_LOADED)
end
end
EVENT_MANAGER:RegisterForEvent(afxSettings.name, EVENT_ADD_ON_LOADED, afxSettings.OnAddOnLoaded)
ItemTooltip:SetDimensionConstraints(600, 0, 600, 1080)
ItemTooltip:SetScale(0.875)
PopupTooltip:SetDimensionConstraints(600, 0, 600, 1080)
ItemTooltip:SetScale(0.875)
ComparativeTooltip1:SetDimensionConstraints(600, 0, 600, 1080)
ComparativeTooltip2:SetDimensionConstraints(600, 0, 600, 1080)
ComparativeTooltip1:SetScale(0.875)
ComparativeTooltip2:SetScale(0.875)
And thanks for your wonderful addons!
afx