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
+19 -1
View File
@@ -47,6 +47,24 @@ local function MTH_OPT_AnimateTabContent(tabKey)
end
end
-- Fade the options window out before hiding it, unless disabled.
local function MTH_OPT_AnimateClose()
local frame = MetaHuntOptions
if not frame then return end
if not MTH_OPT_Sauce
or (type(MTH_FX_IsEnabled) == "function" and not MTH_FX_IsEnabled("ui.optionsclose")) then
frame:SetAlpha(1)
frame:Hide()
return
end
MTH_OPT_Sauce:FadeOut(frame, 0.22, "inQuad", {
onFinish = function()
frame:Hide()
frame:SetAlpha(1)
end,
})
end
local function MTH_RegisterEscClose(frameName)
if not (frameName and UISpecialFrames) then
return
@@ -103,7 +121,7 @@ local function MTH_EnsureOptionsFrame()
closeBtn:SetWidth(MTH_OPTIONS_CONST.CLOSE_BTN_SIZE)
closeBtn:SetHeight(MTH_OPTIONS_CONST.CLOSE_BTN_SIZE)
closeBtn:SetText(MTH_OPT_L("COMMON_CLOSE_SHORT", "X"))
closeBtn:SetScript("OnClick", function() MetaHuntOptions:Hide() end)
closeBtn:SetScript("OnClick", function() MTH_OPT_AnimateClose() end)
end
MTH_BuildOptionsTree()