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;
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;
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);