View Single Post
02-06-12, 07:35 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Another option would be to simply make sure the name object exists before proceeding:

Code:
	hooksecurefunc('ActionButton_Update', function(self)
		local macroname = _G[self:GetName()..'Name']
		if name and (not C['general'].buttons.showMacronames) then
			macroname:SetAlpha(0)
		end
	end)
This would catch the ExtraActionButton, as well as any other (future) buttons Blizzard uses ActionButton_Update on that don't have name objects.
  Reply With Quote