X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/c03452cad62ea41f86c5450799ede77ae0f055d2..aa489f69ad687834efafeca19cbe4acb9fa68e57:/OmaUF/UnitFrames.lua?ds=sidebyside diff --git a/OmaUF/UnitFrames.lua b/OmaUF/UnitFrames.lua index 89cfa4a..1fd993d 100644 --- a/OmaUF/UnitFrames.lua +++ b/OmaUF/UnitFrames.lua @@ -2,9 +2,6 @@ local _; local pairs = pairs; local InCombatLockdown = InCombatLockdown; -local CTimerAfter = C_Timer.After; - -local updateAuraTooltips = OmaUFAuras.UpdateAuraTooltips; local UnitFrames = CreateFrame("Frame", "OmaUnitFrame", UIParent); @@ -63,7 +60,6 @@ local hiddenFrame = CreateFrame("Frame"); 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(); @@ -74,22 +70,10 @@ local function hideArenaFrames() 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();