<<
path:
root/public/nswa.git/html/nswa_hide_cringe.lua
blob: 6a761233cef56ea9d17bbd76cd68a0e04e6ba742
[raw]
[clear marker]
2local frame = CreateFrame("Frame")
3local hide_tooltips_in_combat = true
6-- (Patch 12.0.7) - Rogue power bar is not centered
10 local power_bar = PersonalResourceDisplayFrame.ClassFrameContainer
11 power_bar:ClearAllPoints()
12 power_bar:SetPoint("CENTER", power_bar:GetParent(), "CENTER", x, y)
17function N.init_hide_cringe()
19 EventToastManagerFrame:SetAlpha(0)
20 UIErrorsFrame:SetAlpha(0)
22 -- TODO: Cringe Bug in 12.1.0, is nil!
23 if RaidBossEmoteFrame then
24 print("Debug: RaidBossEmoteFrame not zero!")
25 RaidBossEmoteFrame:SetAlpha(0)
28 -- Loot window after boss
29 GroupLootHistoryFrame:UnregisterAllEvents()
30 GroupLootHistoryFrame:Hide()
31 GroupLootHistoryFrame:SetScript("OnShow", GroupLootHistoryFrame.Hide)
34 hooksecurefunc(TalkingHeadFrame, "PlayCurrent", function(self)
42 -- Blizzard does a great job displaying overlays that are basically constant active.
44 [1270990] = true, -- Brewmaster talent: harmonic wave, or whatever
45 [1264568] = true, -- DK talent: blood blade, or whatever
48 local original_ShowOverlay = SpellActivationOverlayFrame.ShowOverlay
50 SpellActivationOverlayFrame.ShowOverlay = function(self, spellID, ...)
51 if HIDDEN[spellID] then
54 return original_ShowOverlay(self, spellID, ...)
58 if UnitClassBase("player") == "ROGUE" then
60 frame:RegisterEvent("UPDATE_STEALTH")
61 frame:RegisterEvent("PLAYER_REGEN_DISABLED")
62 frame:RegisterEvent("PLAYER_REGEN_ENABLED")
63 frame:SetScript("OnEvent", function(self, event) rogue() end)
66 print("Cringe Removed!")
69function N.hc_toggle_error()
70 if UIErrorsFrame:GetAlpha() == 0 then
71 print("Showing Error Frame")
72 UIErrorsFrame:SetAlpha(100)
74 print("Hiding Error Frame")
75 UIErrorsFrame:SetAlpha(0)
79function N.hide_tooltips()
87 for _, tip in ipairs(tooltips) do
88 tip:HookScript("OnShow", function(self)
89 if hide_tooltips_in_combat and InCombatLockdown() then
96function N.show_tooltips_in_combat()
97 hide_tooltips_in_combat = not hide_tooltips_in_combat
98 if hide_tooltips_in_combat then
99 print("Tooltips hidden in combat")
101 print("Tooltips shown in combat")