Add Growl pet auto-teach feature and smooth zButton expand animation

- New Pet Auto-Teach: on tame, offer to teach Growl at the best rank via the
  Beast Training window (Craft API DoCraft), with a General options checkbox
  and /mth growl on|off|status toggle (on by default).
- De-stagger zButton flyout bars and zBar so buttons fade in together.
- Update CHANGELOG.
This commit is contained in:
DuvelCorp
2026-09-10 21:20:56 +02:00
parent 64e449481f
commit adb21c336c
8 changed files with 384 additions and 13 deletions
+13
View File
@@ -495,6 +495,19 @@ function SlashCmdList.MTH(msg, editbox)
else
MTH:Print("Dev commands: /mth dev petmigrate")
end
elseif lowerCmd == "growl" then
if type(MTH_Growl_SetEnabled) ~= "function" or type(MTH_Growl_IsEnabled) ~= "function" then
MTH:Print("Growl auto-teach is not available.")
elseif lowerArg == "on" or lowerArg == "enable" then
MTH_Growl_SetEnabled(true)
MTH:Print("Growl auto-teach: |cff00ff00ON|r (offers Growl to newly tamed pets).")
elseif lowerArg == "off" or lowerArg == "disable" then
MTH_Growl_SetEnabled(false)
MTH:Print("Growl auto-teach: |cffff0000OFF|r.")
else
local state = MTH_Growl_IsEnabled() and "|cff00ff00ON|r" or "|cffff0000OFF|r"
MTH:Print("Growl auto-teach is " .. state .. ". Usage: /mth growl on | off")
end
elseif lowerCmd == "food" then
local sub = lowerArg
local function MTH_FoodItemLabel(itemId)