mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-15 04:40:49 +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:
@@ -1540,7 +1540,7 @@ function MTH_SetupGeneralOptions()
|
||||
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoWeaponSwapHelp", "When you swap between gun and bow/crossbow, instantly equips the best matching ammo from your bags.", -208)
|
||||
end
|
||||
|
||||
local stripSection = ensureSection("MetaHuntGeneralAutoStripBox", "Auto-Strip", topY - 270, 122, "left")
|
||||
local stripSection = ensureSection("MetaHuntGeneralAutoStripBox", "Auto-Strip", topY - 270, 100, "left")
|
||||
if stripSection then
|
||||
local autoStripToggle = ensureCheckbox(stripSection, "MetaHuntGeneralAutoStripToggle", "Enable Auto-Strip on Combat Exit", -10, stripSaved["autostrip"] and true or false)
|
||||
if autoStripToggle then
|
||||
@@ -1563,7 +1563,7 @@ function MTH_SetupGeneralOptions()
|
||||
ensureHelpText(stripSection, "MetaHuntGeneralAutoStripHelp", "Auto-strip unequips items when combat ends. Requires at least one empty bag slot.", -64)
|
||||
end
|
||||
|
||||
local antiSection = ensureSection("MetaHuntGeneralAntiDazeBox", "Anti-Daze", topY - 406, 96, "left")
|
||||
local antiSection = ensureSection("MetaHuntGeneralAntiDazeBox", "Anti-Daze", topY - 384, 76, "left")
|
||||
if antiSection then
|
||||
local antiDazeEnabled = (AntiDaze_GetEnabled and AntiDaze_GetEnabled()) or false
|
||||
local antiToggle = ensureCheckbox(antiSection, "MetaHuntGeneralAntiDazeToggle", "Enable Anti-Daze", -10, antiDazeEnabled)
|
||||
@@ -1586,6 +1586,21 @@ function MTH_SetupGeneralOptions()
|
||||
ensureHelpText(antiSection, "MetaHuntGeneralAntiDazeHelp", "Cancels Cheetah/Pack when dazed.", -40)
|
||||
end
|
||||
|
||||
local petTeachSection = ensureSection("MetaHuntGeneralPetTeachBox", "Pet Auto-Teach", topY - 474, 76, "left")
|
||||
if petTeachSection then
|
||||
local growlEnabled = (type(MTH_Growl_IsEnabled) == "function" and MTH_Growl_IsEnabled()) or false
|
||||
local growlToggle = ensureCheckbox(petTeachSection, "MetaHuntGeneralPetTeachGrowlToggle", "Activate Auto-Teach of Growl (Max rank)", -10, growlEnabled)
|
||||
if growlToggle then
|
||||
growlToggle:SetScript("OnClick", function()
|
||||
if type(MTH_Growl_SetEnabled) == "function" then
|
||||
MTH_Growl_SetEnabled(MTH_ZB_IsChecked(this))
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
ensureHelpText(petTeachSection, "MetaHuntGeneralPetTeachGrowlHelp", "When you tame a beast, offers to teach it the best Growl rank for its level.", -40)
|
||||
end
|
||||
|
||||
local tooltipsSection = ensureSection("MetaHuntGeneralTooltipsBox", "Tooltips", topY, 356, "right")
|
||||
if tooltipsSection then
|
||||
local tooltipsStore = MTH and MTH.GetModuleCharSavedVariables and MTH:GetModuleCharSavedVariables("tooltips")
|
||||
|
||||
Reference in New Issue
Block a user