local _;
local pairs = pairs;
local InCombatLockdown = InCombatLockdown;
-local CTimerAfter = C_Timer.After;
-
-local updateAuraTooltips = OmaUFAuras.UpdateAuraTooltips;
local UnitFrames = CreateFrame("Frame", "OmaUnitFrame", UIParent);
hiddenFrame:Hide();
local arenaHidden = false;
local function hideArenaFrames()
- -- not run if /reload happens in combat, may cause problems?
if not arenaHidden and not InCombatLockdown() then
arenaHidden = true;
ArenaEnemyFrames:UnregisterAllEvents();
end
end
-local function updateTooltipFuncs()
- -- let MoveAnything hook these to anchor tooltip elsewhere
- M.UpdatePlayerTooltips();
- M.UpdatePetTooltips();
- M.UpdateTargetTooltips();
- M.UpdateBossTooltips();
- updateAuraTooltips();
-end
-
UnitFrames:RegisterEvent("PLAYER_LOGIN");
-UnitFrames:RegisterEvent("PLAYER_ENTERING_WORLD");
UnitFrames:RegisterEvent("ADDON_LOADED");
UnitFrames:SetScript("OnEvent", function(self, event, addon)
- if event == "PLAYER_ENTERING_WORLD" then
- CTimerAfter(0.01, updateTooltipFuncs);
- elseif event == "ADDON_LOADED" and addon == "Blizzard_ArenaUI" then
+ if event == "ADDON_LOADED" and addon == "Blizzard_ArenaUI" then
hideArenaFrames();
elseif event == "PLAYER_LOGIN" then
OmaUFLoadChar();