Skip to content

Commit

Permalink
[TWW] Unregister new actionbar casting stupid thing, why?! castbar on…
Browse files Browse the repository at this point in the history
… player is enough jesus christ... what a stupid idea.
  • Loading branch information
tukz committed Aug 23, 2024
1 parent 619df53 commit a660035
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 15 additions & 0 deletions Tukui/Modules/ActionBars/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ function ActionBars:DisableBlizzard()

ActionBarButtonEventsFrame:UnregisterEvent("ACTIONBAR_SHOWGRID")
ActionBarButtonEventsFrame:UnregisterEvent("ACTIONBAR_HIDEGRID")

if T.TWW then
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_INTERRUPTED")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_START")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_STOP")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_CHANNEL_START")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_CHANNEL_STOP")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_RETICLE_TARGET")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_RETICLE_CLEAR")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_EMPOWER_START")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_EMPOWER_STOP")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_SENT")
ActionBarActionEventsFrame:UnregisterEvent("UNIT_SPELLCAST_FAILED")
end

for i, j in pairs(Options) do
j:Hide()
Expand Down
12 changes: 0 additions & 12 deletions Tukui/Modules/ActionBars/Extra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ function ActionBars:SetupExtraButton()
local Bar = ExtraActionBarFrame
local Icon = ExtraActionButton1Icon
local Button = ExtraActionButton1

if Button.SpellActivationAlert then
Button.SpellActivationAlert:SetAlpha(0)
end

if Button.SpellCastAnimFrame then
Button.SpellCastAnimFrame:SetAlpha(0)
end

if Button.InterruptDisplay then
Button.InterruptDisplay:SetAlpha(0)
end

Bar:EnableMouse(false)
Bar:SetParent(UIParent)
Expand Down

0 comments on commit a660035

Please sign in to comment.