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
+23
View File
@@ -5,6 +5,8 @@
local ZBAR_FRAME_NAME = "MTH_ZBar_Anchor"
local ZBar_Sauce = PizzaSauce
local ZBAR_ALL_BUTTONS = {
"zButtonAspect",
"zButtonAmmo",
@@ -282,6 +284,26 @@ function MTH_ZBar_Release()
end
end
-- Animations: gentle staggered fade-in of the bar's buttons when it activates.
function MTH_ZBar_AnimateActivate()
if not ZBar_Sauce then return end
if type(MTH_FX_IsEnabled) ~= "function" or not MTH_FX_IsEnabled("ui.zbar") then
return
end
local s = MTH_ZBar_GetSaved()
local order = s.order or {}
for i = 1, table.getn(order) do
local buttonName = order[i]
if type(buttonName) == "string" then
local btn = getglobal(buttonName)
if btn and btn:IsShown() then
btn:SetAlpha(0)
ZBar_Sauce:FadeTo(btn, 1, 0.30, "outQuad", { delay = (i - 1) * 0.05 })
end
end
end
end
-- Called when the user toggles the Enable checkbox in the options.
function MTH_ZBar_SetEnabled(enabled)
local s = MTH_ZBar_GetSaved()
@@ -289,6 +311,7 @@ function MTH_ZBar_SetEnabled(enabled)
if enabled then
MTH_ZBar_EnsureAnchor()
MTH_ZBar_ApplyLayout()
MTH_ZBar_AnimateActivate()
else
MTH_ZBar_Release()
end