X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/f2bb49433c3e5edfc81625f21c91557a841ef64e..d76a52e46fc339db35e6a068c0f1564db7b9cf46:/OmaUF/UnitFrames.lua?ds=inline diff --git a/OmaUF/UnitFrames.lua b/OmaUF/UnitFrames.lua index c0fe00c..815fa17 100644 --- a/OmaUF/UnitFrames.lua +++ b/OmaUF/UnitFrames.lua @@ -21,8 +21,8 @@ local shieldColor = Settings.ShieldColor; local shieldhlColor = Settings.ShieldhlColor; local healpredColor = Settings.HealpredColor; local healabsorbColor = Settings.HealabsorbColor; +local width, height = Settings.Width, Settings.Height; -- placeholders with visible values when error happens -local width, height = 10, 10; local anchorX, anchorY = 10, 10; local attributes = {}; @@ -69,7 +69,7 @@ local function frameHide(frame) end local function showTooltip(frame) - GameTooltip_SetDefaultAnchor(GameTooltip, PlayerFrame); + GameTooltip_SetDefaultAnchor(GameTooltip, frame); GameTooltip:SetUnit(frame:GetAttribute("unit")); end @@ -234,7 +234,6 @@ local function initializeTarget(parent) end local function loadCharSettings() - width, height = Settings.Character.Width, Settings.Character.Height; anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY; attributes = Settings.Character.Clickheal; end @@ -286,7 +285,6 @@ UnitFrames:RegisterEvent("PLAYER_LOGIN"); UnitFrames:SetScript("OnEvent", function(self, event) if event == "PLAYER_LOGIN" then OmaUFLoadChar(); - OmaUFEvents.LoadChar(); hideBlizzardFrames(); initialize(); end