diff --git a/api/core.lua b/api/core.lua index 89299e3..b13f085 100644 --- a/api/core.lua +++ b/api/core.lua @@ -376,43 +376,6 @@ function SlashCmdList.MTH(msg, editbox) MTH:Print(" MTH_SetupAnimationsOptions: " .. type(MTH_SetupAnimationsOptions)) MTH:Print(" -> If these are 'nil', do /reload (your UI is running code from before the feature was added).") end - elseif lowerCmd == "fxdebug" then - -- TEMP: dump the animation load-path tracers so we can see exactly where - -- fx-celebrate.lua / options-animations.lua aborted at load time. - MTH:Print("=== MetaHunt animation load debug ===") - MTH:Print("Globals: PizzaSauce=" .. type(PizzaSauce) - .. " CreateFrame=" .. type(CreateFrame) - .. " MTH=" .. type(MTH)) - if type(MTH_FX_DBG) == "table" then - MTH:Print("fx-celebrate: step=" .. tostring(MTH_FX_DBG.step) - .. " sauceType=" .. tostring(MTH_FX_DBG.sauceType) - .. " registerOk=" .. tostring(MTH_FX_DBG.registerOk) - .. " registerSkipped=" .. tostring(MTH_FX_DBG.registerSkipped)) - if MTH_FX_DBG.registerErr ~= nil then - MTH:Print("fx-celebrate: registerErr=" .. tostring(MTH_FX_DBG.registerErr)) - end - MTH:Print("fx-celebrate: hasCelebrate=" .. tostring(MTH_FX_DBG.hasCelebrate) - .. " hasIsEnabled=" .. tostring(MTH_FX_DBG.hasIsEnabled) - .. " hasAnimEnabled=" .. tostring(MTH_FX_DBG.hasAnimEnabled)) - else - MTH:Print("fx-celebrate: MTH_FX_DBG is " .. type(MTH_FX_DBG) .. " (file did not reach its first line)") - end - if type(MTH_ANIM_DBG) == "table" then - MTH:Print("options-animations: step=" .. tostring(MTH_ANIM_DBG.step) - .. " ready=" .. tostring(MTH_ANIM_DBG.ready) - .. " hasSetup=" .. tostring(MTH_ANIM_DBG.hasSetup)) - MTH:Print("options-animations: req=" .. tostring(MTH_ANIM_DBG.reqType) - .. " getFrame=" .. tostring(MTH_ANIM_DBG.getFrameType) - .. " clear=" .. tostring(MTH_ANIM_DBG.clearType) - .. " checkbox=" .. tostring(MTH_ANIM_DBG.checkboxType)) - MTH:Print("options-animations: setupCalled=" .. tostring(MTH_ANIM_DBG.setupCalled) - .. " setupResult=" .. tostring(MTH_ANIM_DBG.setupResult) - .. " containerType=" .. tostring(MTH_ANIM_DBG.containerType) - .. " fxEnabledType=" .. tostring(MTH_ANIM_DBG.fxEnabledType)) - else - MTH:Print("options-animations: MTH_ANIM_DBG is " .. type(MTH_ANIM_DBG) .. " (file did not reach its first line)") - end - MTH:Print("=== end animation load debug ===") elseif lowerMsg == "zoneinfo" then -- Dumps all available zone data for the current zone, for adding to ds-zones / ds-minimap-sizes pcall(SetMapToCurrentZone) diff --git a/api/fx-celebrate.lua b/api/fx-celebrate.lua index 238f821..d76b859 100644 --- a/api/fx-celebrate.lua +++ b/api/fx-celebrate.lua @@ -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) diff --git a/api/options-animations.lua b/api/options-animations.lua index 50f1faf..393f621 100644 --- a/api/options-animations.lua +++ b/api/options-animations.lua @@ -10,16 +10,6 @@ local MTH_ANIM_READY = MTH_OptionsRequire and MTH_OptionsRequire("options-animat "MTH_CreateCheckbox", }) --- DEBUG: load-path tracer, global so /mth fxdebug can dump it. TEMP diagnostic. -MTH_ANIM_DBG = { - ready = tostring(MTH_ANIM_READY), - reqType = type(MTH_OptionsRequire), - getFrameType = type(MTH_GetFrame), - clearType = type(MTH_ClearContainer), - checkboxType = type(MTH_CreateCheckbox), - step = "1-top", -} - local MTH_ANIM_LINK = "https://codeberg.org/Pizzahawaii/PizzaSauce" local MTH_ANIM_CTRL = {} @@ -62,21 +52,15 @@ local function MTH_ANIM_UpdateChildStates() end function MTH_SetupAnimationsOptions() - MTH_ANIM_DBG.setupCalled = true - MTH_ANIM_DBG.fxEnabledType = type(MTH_FX_AnimationsEnabled) if not MTH_ANIM_READY then - MTH_ANIM_DBG.setupResult = "abort-not-ready" return end if type(MTH_FX_AnimationsEnabled) ~= "function" then - MTH_ANIM_DBG.setupResult = "abort-no-fx-globals" return end local container = MTH_GetFrame("MetaHuntOptionsAnimations") - MTH_ANIM_DBG.containerType = type(container) if not container then - MTH_ANIM_DBG.setupResult = "abort-no-container" return end @@ -148,9 +132,4 @@ function MTH_SetupAnimationsOptions() panel:Finish() MTH_ANIM_UpdateChildStates() - MTH_ANIM_DBG.setupResult = "ok" end - --- DEBUG: mark that the whole file finished loading. TEMP diagnostic. -MTH_ANIM_DBG.step = "2-complete" -MTH_ANIM_DBG.hasSetup = type(MTH_SetupAnimationsOptions)