X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/82ce2fc4623897a0b8ca99baac27f7c433226366..befb5530a79adcd88cbeb364b7d97d4f906cc1f9:/OmaUF/PetFrame.lua diff --git a/OmaUF/PetFrame.lua b/OmaUF/PetFrame.lua index 5295804..93da251 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,8 +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; -- placeholders with visible values when error happens @@ -55,8 +53,6 @@ local vehicletoggle = [=[ ]=] function OmaUnitFrames.InitializePet(parent) - GameTooltip = _G["GameTooltip"]; - GameTooltip_SetDefaultAnchor = _G["GameTooltip_SetDefaultAnchor"]; attributes = Settings.Character.Clickheal; -- TODO pet clickheal separate with Mend Pet etc. local secure = CreateFrame("Button", "OmaPetSecure", parent, inheritedFrames);