X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/82ce2fc4623897a0b8ca99baac27f7c433226366..d093a7f250aab703c69128ad4b54a31d6e0b1f83:/OmaUF/PetFrame.lua diff --git a/OmaUF/PetFrame.lua b/OmaUF/PetFrame.lua index 5295804..a4d8fa5 100644 --- a/OmaUF/PetFrame.lua +++ b/OmaUF/PetFrame.lua @@ -2,8 +2,8 @@ local _; local unpack, pairs = unpack, pairs; local format = string.format; -local GameTooltip = nil; -local GameTooltip_SetDefaultAnchor = nil; +local GameTooltip = GameTooltip; +local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor; local registerUnitEvents = OmaUFEvents.RegisterUnitEvents; local unitEvent = OmaUFEvents.UnitEvent; @@ -14,7 +14,6 @@ local bgColor = Settings.BgColor; local healthColor = Settings.HealthColor; local shieldColor = Settings.ShieldColor; local shieldhlColor = Settings.ShieldhlColor; -local healpredColor = Settings.HealpredColor; local healabsorbColor = Settings.HealabsorbColor; local width, height = Settings.Pet.Width, Settings.Pet.Height; local anchorX, anchorY = Settings.Pet.AnchorX, Settings.Pet.AnchorY; @@ -54,9 +53,12 @@ local vehicletoggle = [=[ end ]=] -function OmaUnitFrames.InitializePet(parent) +function OmaUnitFrames.UpdatePetTooltips() GameTooltip = _G["GameTooltip"]; GameTooltip_SetDefaultAnchor = _G["GameTooltip_SetDefaultAnchor"]; +end + +function OmaUnitFrames.InitializePet(parent) attributes = Settings.Character.Clickheal; -- TODO pet clickheal separate with Mend Pet etc. local secure = CreateFrame("Button", "OmaPetSecure", parent, inheritedFrames);