f571b92 - Slower update rate, remove MoveAnything support
authorAleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 15 Mar 2018 09:14:05 +0000
committerAleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 15 Mar 2018 09:14:05 +0000
OmaRF/RaidFrame.lua

index 7ec7850..be5a347 100644 (file)
@@ -49,7 +49,7 @@ local function unitUpdate(frame)
         else
             frame:SetAlpha(1);
         end
         else
             frame:SetAlpha(1);
         end
-        CTimerAfter(0.20, updaters[frame]);
+        CTimerAfter(0.25, updaters[frame]);
     end
 end
 
     end
 end
 
@@ -57,7 +57,7 @@ local function frameShow(frame)
     registerEvents(frame);
     registerUnitEvents(frame);
     frame.updating = true;
     registerEvents(frame);
     registerUnitEvents(frame);
     frame.updating = true;
-    CTimerAfter(0.20, updaters[frame]);
+    CTimerAfter(0.25, updaters[frame]);
     unitEvent(frame, "UPDATE_ALL_BARS");
 end
 
     unitEvent(frame, "UPDATE_ALL_BARS");
 end
 
@@ -331,22 +331,13 @@ local function hideBlizzardRaid()
     end
 end
 
     end
 end
 
-local function updateTooltipFuncs()
-    -- let MoveAnything hook these to anchor tooltip elsewhere
-    GameTooltip = _G["GameTooltip"];
-    GameTooltip_SetDefaultAnchor = _G["GameTooltip_SetDefaultAnchor"];
-end
-
 CFrame:RegisterEvent("PLAYER_LOGIN");
 CFrame:RegisterEvent("PLAYER_LOGIN");
-CFrame:RegisterEvent("PLAYER_ENTERING_WORLD");
 CFrame:RegisterEvent("PLAYER_REGEN_ENABLED");
 CFrame:SetScript("OnEvent", function(self, event, addon)
     if event == "PLAYER_REGEN_ENABLED" then
         -- if CompactRaidFrameManager_UpdateOptionsFlowContainer was called in combat
         -- couldn't hide the button
         hideBlizzardRaidButton();
 CFrame:RegisterEvent("PLAYER_REGEN_ENABLED");
 CFrame:SetScript("OnEvent", function(self, event, addon)
     if event == "PLAYER_REGEN_ENABLED" then
         -- if CompactRaidFrameManager_UpdateOptionsFlowContainer was called in combat
         -- couldn't hide the button
         hideBlizzardRaidButton();
-    elseif event == "PLAYER_ENTERING_WORLD" then
-        CTimerAfter(0.01, updateTooltipFuncs);
     elseif event == "PLAYER_LOGIN" then
         OmaRFLoadChar();
         hideBlizzardRaid();
     elseif event == "PLAYER_LOGIN" then
         OmaRFLoadChar();
         hideBlizzardRaid();