Remove temporary fx load-path debug tracer

This commit is contained in:
DuvelCorp
2026-09-14 22:38:06 +02:00
parent 0aaa49f33b
commit 7a0f03ba6f
3 changed files with 0 additions and 86 deletions
-28
View File
@@ -16,17 +16,6 @@ local function MTH_FX_L(key, default)
return default or key
end
-- ---------------------------------------------------------------------------
-- DEBUG: load-path tracer. Global so /mth fxdebug can dump it. Records how far
-- this file got at load time and any error from the one executable file-scope
-- block (RegisterType). TEMP diagnostic.
-- ---------------------------------------------------------------------------
MTH_FX_DBG = {
sauceType = type(PizzaSauce),
createFrameType = type(CreateFrame),
step = "1-top",
}
-- ---------------------------------------------------------------------------
-- Animation settings (shared by the effect code and the options "Animations" tab)
-- ---------------------------------------------------------------------------
@@ -212,7 +201,6 @@ end
-- Register a one-shot "ballistic" tween type: a spark that flies out from the
-- center along a velocity vector while gravity pulls it back down.
MTH_FX_DBG.step = "2-before-registertype"
if Sauce and type(Sauce.RegisterType) == "function" and not Sauce.MTH_HasBallistic then
local ok, err = pcall(function()
Sauce.MTH_HasBallistic = true
@@ -234,12 +222,7 @@ if Sauce and type(Sauce.RegisterType) == "function" and not Sauce.MTH_HasBallist
end,
})
end)
MTH_FX_DBG.registerOk = ok
MTH_FX_DBG.registerErr = err
else
MTH_FX_DBG.registerSkipped = true
end
MTH_FX_DBG.step = "3-after-registertype"
-- Register a decaying "shake" tween type: oscillates the frame around its own
-- current anchor point, with the amplitude fading to zero over the tween so it
@@ -262,8 +245,6 @@ if Sauce and type(Sauce.RegisterType) == "function" and not Sauce.MTH_HasShake t
end,
})
end)
MTH_FX_DBG.shakeOk = ok
MTH_FX_DBG.shakeErr = err
end
if Sauce and type(Sauce.RegisterType) == "function" and not Sauce.MTH_HasSpiral then
@@ -283,8 +264,6 @@ if Sauce and type(Sauce.RegisterType) == "function" and not Sauce.MTH_HasSpiral
end,
})
end)
MTH_FX_DBG.spiralOk = ok
MTH_FX_DBG.spiralErr = err
end
-- Reusable flash: overlays a short additive colour glow on any frame/button and
@@ -837,10 +816,3 @@ function MTH_CelebrateAmmoZero(ammoType)
Sauce:FadeOut(MTH_FX_MsgFrame, 0.7, "inQuad", { delay = 5 }),
})
end
-- DEBUG: mark that the whole file finished loading and record which globals it
-- successfully defined. TEMP diagnostic.
MTH_FX_DBG.step = "4-complete"
MTH_FX_DBG.hasCelebrate = type(MTH_Celebrate)
MTH_FX_DBG.hasIsEnabled = type(MTH_FX_IsEnabled)
MTH_FX_DBG.hasAnimEnabled = type(MTH_FX_AnimationsEnabled)