43716fe - Fix rested xp errors, update rested bonus when resting
[wowui.git] / OmaRF / RaidFrame.lua
index 4259c67..783cdeb 100644 (file)
@@ -22,9 +22,9 @@ local shieldColor = Settings.ShieldColor;
 local shieldhlColor = Settings.ShieldhlColor;
 local healpredColor = Settings.HealpredColor;
 local healabsorbColor = Settings.HealabsorbColor;
 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 = {};
 -- placeholders with visible values when error happens
 local positions = {};
-local width, height = 10, 10;
 local anchorX, anchorY = 10, 10;
 local attributes = {};
 
 local anchorX, anchorY = 10, 10;
 local attributes = {};
 
@@ -109,7 +109,7 @@ local function frameHide(frame)
 end
 
 local function showTooltip(frame)
 end
 
 local function showTooltip(frame)
-    GameTooltip_SetDefaultAnchor(GameTooltip, PlayerFrame);
+    GameTooltip_SetDefaultAnchor(GameTooltip, frame);
     GameTooltip:SetUnit(frame:GetAttribute("unit"));
 end
 
     GameTooltip:SetUnit(frame:GetAttribute("unit"));
 end
 
@@ -323,7 +323,6 @@ local function initializeFocus(parent)
 end
 
 local function loadCharSettings()
 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;
     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();
 CFrame:SetScript("OnEvent", function(self, event, addon)
     if event == "PLAYER_LOGIN" then
         OmaRFLoadChar();
-        OmaRFEvents.LoadChar();
         OmaRFIndicators.LoadChar();
         hideBlizzardRaid();
         initialize();
         OmaRFIndicators.LoadChar();
         hideBlizzardRaid();
         initialize();