Setting the Trading Post Combat Animations to being off by default

I cannot begin to express just how much I hate that the Trading Post defaults to having combat animations on for weapons, and that it doesn’t save your setting if you turn it off. Some weapon types are extremely hard to see well in the animation stances, plus the movements are distracting when I am simply trying to look at the skin, and it drives me nuts having to turn it off every single time I click on a weapon. Is there a setting I’m not finding where I can permanently turn them off, or an add on that will do it for me?

1 Like

I came here hoping that I wasn’t the only one. I also looked for an addon, but no luck

1 Like

You could try (before opening the trading post frame for the first time after loggin in):

/run EventUtil.ContinueOnAddOnLoaded("Blizzard_PerksProgram",function() hooksecurefunc(PerksProgramFrame.FooterFrame.ToggleAttackAnimation, "SetChecked", function(self) if self:GetChecked() then self:Click() end end) end)

or copy everything but the /run and paste to the website addon.bool.no to create/download as an addon so you don’t have to run it each time.

I’ve added some code to make an additional checkbox (that works in conjunction with the standard ToggleCombatAnimations checkbox) to toggle Combat Animation “universally” and save the setting (if you follow the directions below).

This is intended to be used as an addon.

  • Copy/Paste the code below to addon.bool.no
  • Once downloaded and installed, open the addons .toc file in an editor:
  • After the last line starting with ## insert:
  • ## SavedVariables: TPADTATA
  • Save, backup, enjoy.
EventUtil.ContinueOnAddOnLoaded("Blizzard_PerksProgram",function()
	TPADTATA = TPADTATA or { cancelAnimation=true, }
	local toggle = PerksProgramFrame.FooterFrame.ToggleAttackAnimation
	local StopAnimation = CreateFrame("CheckButton", "FizzleCancelAttackAnimation", toggle, "ChatConfigSmallCheckButtonTemplate")
	_G[StopAnimation:GetName().."Text"]:SetText("No Animating!")
	StopAnimation:SetFrameLevel(1000)
	StopAnimation:SetPoint("BOTTOM", toggle, "TOP", 0, 0)
	StopAnimation:SetChecked(TPADTATA.cancelAnimation)
	StopAnimation:SetScript("OnClick", function(self)
		TPADTATA.cancelAnimation = self:GetChecked()
		if not self:GetChecked() then
			if toggle:GetChecked() then
				toggle:Click()
			end
		end
	end)
	hooksecurefunc(toggle, "SetChecked",
		function(self)
			if not TPADTATA.cancelAnimation then
				if not self:GetChecked() then
					self:Click()
				end
				return
			end
			if self:GetChecked() then
				self:Click()
			end
		end)
	end)