mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-07 06:50:00 +00:00
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:
@@ -1245,6 +1245,17 @@ function MTH_BOOKTAB_RenderStableCards()
|
||||
local row = slotEntry and slotEntry.row or nil
|
||||
MTH_BOOK_DebugTrace("Render card#" .. tostring(i) .. " petId=" .. tostring(petId) .. " hasRow=" .. tostring(type(row) == "table"))
|
||||
|
||||
-- Animations: flash the slot when its occupant changes (deposit /
|
||||
-- withdraw / swap), but never on the first render of this card.
|
||||
if card._stableInit and card._lastStablePetId ~= petId then
|
||||
if type(MTH_FX_Flash) == "function" and type(MTH_FX_IsEnabled) == "function"
|
||||
and MTH_FX_IsEnabled("ui.stable") then
|
||||
MTH_FX_Flash(card, 1.00, 0.82, 0.20, 0.55)
|
||||
end
|
||||
end
|
||||
card._lastStablePetId = petId
|
||||
card._stableInit = true
|
||||
|
||||
card:ClearAllPoints()
|
||||
card:SetPoint("TOPLEFT", ui.frame, "TOPLEFT", 8, y)
|
||||
card:SetPoint("TOPRIGHT", ui.frame, "TOPRIGHT", -8, y)
|
||||
|
||||
Reference in New Issue
Block a user