c809e5d - Add name prefix when in vehicle
[wowui.git] / OmaUF / PetFrame.lua
index 5295804..93da251 100644 (file)
@@ -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);