Animations: wire remaining effects + 2-column options panel

- Shared FX toolkit in fx-celebrate.lua: mth_shake tween type, MTH_FX_Flash
  glow helper, MTH_CelebrateRunaway red shaking banner, gold title reset.
- pet.runaway, pet.happiness, pet.loyaltyup, pet.feed
- combat.ammoswap, combat.rangedswap, combat.mmprocs
- ui.zbar, ui.stable, ui.minimapping, ui.optionsclose
- book.model, book.search
- Options > Animations panel now uses a balanced two-column layout.
- CHANGELOG Animations entry expanded (no version bump).
This commit is contained in:
DuvelCorp
2026-09-10 16:38:14 +02:00
parent d2fb04f7c5
commit 66ff1ae711
14 changed files with 343 additions and 11 deletions
+31 -2
View File
@@ -29,6 +29,34 @@ local function MTH_BOOK_AnimateTabSwitch()
Sauce:FadeIn(list, 0.25)
end
-- Fade the book window out before hiding it, unless disabled (shares the
-- "fade windows closed" toggle with the options window).
local function MTH_BOOK_FadeOutWindow(frame)
if not frame then return end
if not Sauce
or (type(MTH_FX_IsEnabled) == "function" and not MTH_FX_IsEnabled("ui.optionsclose")) then
if type(frame.SetAlpha) == "function" then frame:SetAlpha(1) end
frame:Hide()
return
end
Sauce:FadeOut(frame, 0.22, "inQuad", {
onFinish = function()
frame:Hide()
if type(frame.SetAlpha) == "function" then frame:SetAlpha(1) end
end,
})
end
-- Fade the results list back in after a search/filter is applied, unless disabled.
local function MTH_BOOK_AnimateSearchResults()
if not Sauce then return end
if type(MTH_FX_IsEnabled) == "function" and not MTH_FX_IsEnabled("book.search") then return end
local list = getglobal("MTH_BOOK_ListBackdrop")
if not list then return end
if type(list.SetAlpha) == "function" then list:SetAlpha(0) end
Sauce:FadeIn(list, 0.22)
end
MTH_HUNTERBOOK_LOADED = true
MTH_HUNTERBOOK_TABS = MTH_HUNTERBOOK_TABS or {}
@@ -4719,6 +4747,7 @@ local function MTH_BOOK_ApplyInputs()
MTH_BOOK_STATE.selectedPetRankEntry = nil
MTH_BOOK_STATE.petRankRows = {}
MTH_BOOK_RefreshFilter()
MTH_BOOK_AnimateSearchResults()
end
local function MTH_BOOK_SetQuickFilter(index)
@@ -5301,7 +5330,7 @@ local function MTH_BOOK_WireUI(frame)
closeButton:SetWidth(22)
closeButton:SetHeight(22)
closeButton:SetText("X")
closeButton:SetScript("OnClick", function() this:GetParent():Hide() end)
closeButton:SetScript("OnClick", function() MTH_BOOK_FadeOutWindow(this:GetParent()) end)
end
if applyButton then applyButton:SetScript("OnClick", MTH_BOOK_ApplyInputs) end
@@ -5752,7 +5781,7 @@ function MTH_ToggleHunterBook()
local frame = MTH_BOOK_EnsureWindow()
if not frame then return end
if frame:IsShown() then
frame:Hide()
MTH_BOOK_FadeOutWindow(frame)
else
frame:Show()
MTH_BOOK_FadeInWindow(frame)