All pastes #83242 Raw Edit

ContainerFrame

public text v1 · immutable
·published 2006-07-09 15:06 UTC
rendered paste body
local ORIG_ContainerFrameItemButton_OnClick = ContainerFrameItemButton_OnClick;
function ContainerFrameItemButton_OnClick(button, ignoreModifiers)
	if ( button == "LeftButton" and IsAltKeyDown() and not ignoreModifiers ) then
		-- CT_MailMod uses alt+click to put stuff in mail/trade frames, so don't eat the event
		-- if any of those frames are open.  It also does alt+click to initiate trade if a 
		-- target is selected, but we'll just have to live without that.
		if(not MailFrame:IsVisible() and not TradeFrame:IsVisible()) then
			-- local LootLink = GetContainerItemLink(this:GetParent():GetID(), this:GetID())
			-- Call something here...
			return;
		end
	end
	ORIG_ContainerFrameItemButton_OnClick(button, ignoreModifiers);
end