X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/f2bb49433c3e5edfc81625f21c91557a841ef64e..d76a52e46fc339db35e6a068c0f1564db7b9cf46:/OmaRF/RaidFrame.lua diff --git a/OmaRF/RaidFrame.lua b/OmaRF/RaidFrame.lua index 4259c67..783cdeb 100644 --- a/OmaRF/RaidFrame.lua +++ b/OmaRF/RaidFrame.lua @@ -22,9 +22,9 @@ 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 positions = {}; -local width, height = 10, 10; local anchorX, anchorY = 10, 10; local attributes = {}; @@ -109,7 +109,7 @@ local function frameHide(frame) end local function showTooltip(frame) - GameTooltip_SetDefaultAnchor(GameTooltip, PlayerFrame); + GameTooltip_SetDefaultAnchor(GameTooltip, frame); GameTooltip:SetUnit(frame:GetAttribute("unit")); end @@ -323,7 +323,6 @@ local function initializeFocus(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; positions = Settings.Character.Positions; @@ -390,7 +389,6 @@ CFrame:RegisterEvent("PLAYER_REGEN_ENABLED"); CFrame:SetScript("OnEvent", function(self, event, addon) if event == "PLAYER_LOGIN" then OmaRFLoadChar(); - OmaRFEvents.LoadChar(); OmaRFIndicators.LoadChar(); hideBlizzardRaid(); initialize();