Author:ptrace
Comitter:ptrace
Date:2026-08-19 18:10:06 UTC
diff --git a/nswa_hide_cringe.lua b/nswa_hide_cringe.lua
index 7bd0162..6a76123 100755
--- a/nswa_hide_cringe.lua
+++ b/nswa_hide_cringe.lua
@@ -1,6 +1,7 @@
local N = nswa
local frame = CreateFrame("Frame")
local hide_tooltips_in_combat = true
-- (Patch 12.0.7) - Rogue power bar is not centered
@@ -18,7 +19,12 @@ function N.init_hide_cringe()
-- Error/event frames
EventToastManagerFrame:SetAlpha(0)
UIErrorsFrame:SetAlpha(0)
RaidBossEmoteFrame:SetAlpha(0)
-- TODO: Cringe Bug in 12.1.0, is nil!
if RaidBossEmoteFrame then
print("Debug: RaidBossEmoteFrame not zero!")
RaidBossEmoteFrame:SetAlpha(0)
end
-- Loot window after boss
GroupLootHistoryFrame:UnregisterAllEvents()
@@ -37,6 +43,7 @@ function N.init_hide_cringe()
-- Blizzard does a great job displaying overlays that are basically constant active.
local HIDDEN = {
[1270990] = true, -- Brewmaster talent: harmonic wave, or whatever
[1264568] = true, -- DK talent: blood blade, or whatever
}
local original_ShowOverlay = SpellActivationOverlayFrame.ShowOverlay
@@ -80,10 +87,19 @@ function N.hide_tooltips()
for _, tip in ipairs(tooltips) do
tip:HookScript("OnShow", function(self)
if InCombatLockdown() then
if hide_tooltips_in_combat and InCombatLockdown() then
self:Hide()
end
end)
end
end
function N.show_tooltips_in_combat()
hide_tooltips_in_combat = not hide_tooltips_in_combat
if hide_tooltips_in_combat then
print("Tooltips hidden in combat")
else
print("Tooltips shown in combat")
end
end
diff --git a/nswa_main.lua b/nswa_main.lua
index be98d47..21a6759 100755
--- a/nswa_main.lua
+++ b/nswa_main.lua
@@ -19,6 +19,8 @@ local function argparse(args)
elseif args == "zone" then
local current_zone = C_Map.GetBestMapForUnit("player")
print("Current Zone: " .. current_zone)
elseif args == "tooltip" then
N.show_tooltips_in_combat()
end
end