mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-04 05:20:00 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user