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:
@@ -6,6 +6,18 @@
|
||||
-- Uses MTH_DS_BeastSkins[familyName] generated by .tools/generators/gen_beast_skins.py
|
||||
-- Skin rendering: PlayerModel:SetUnit(CreatureDisplayInfo.ID)
|
||||
|
||||
local MTH_MV_Sauce = PizzaSauce
|
||||
|
||||
-- Fade a model frame in when a new skin is displayed, unless disabled.
|
||||
local function MTH_MV_AnimateModel(model)
|
||||
if not MTH_MV_Sauce or not model then return end
|
||||
if type(MTH_FX_IsEnabled) == "function" and not MTH_FX_IsEnabled("book.model") then return end
|
||||
if type(model.SetAlpha) ~= "function" then return end
|
||||
if not model:IsShown() then return end
|
||||
model:SetAlpha(0)
|
||||
MTH_MV_Sauce:FadeTo(model, 1, 0.30, "outQuad")
|
||||
end
|
||||
|
||||
local MTH_MV = {
|
||||
inited = false,
|
||||
family = nil,
|
||||
@@ -51,6 +63,8 @@ local function MTH_MV_DisplayCurrent()
|
||||
|
||||
MTH_MV_ApplyModel(MTH_MV.previewModel, skin.id)
|
||||
MTH_MV_ApplyModel(MTH_MV.popupModel, skin.id)
|
||||
MTH_MV_AnimateModel(MTH_MV.previewModel)
|
||||
MTH_MV_AnimateModel(MTH_MV.popupModel)
|
||||
|
||||
local indexStr = tostring(MTH_MV.index) .. " / " .. tostring(n)
|
||||
if MTH_MV.popupSkinLabel then
|
||||
|
||||
Reference in New Issue
Block a user