All pastes #276431 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-12 09:38 UTC
rendered paste body
	local iconFrame = CreateFrame("Button", "GameTooltipIcon", ItemRefTooltip)
	iconFrame.link = ""
	iconFrame.actualLink = ""
	iconFrame:SetScript("OnMouseDown",function()
		local chatFrame = DEFAULT_CHAT_FRAME
		if ( ( arg1 == "LeftButton" ) and ( IsControlKeyDown() ) ) then
			DressUpItemLink(this.link)
		elseif ( ( arg1 == "LeftButton" ) and ( IsShiftKeyDown() ) and ( chatFrame.editBox:IsVisible() ) ) then
			local currentText = chatFrame.editBox:GetText()
			chatFrame.editBox:SetText(currentText..this.actualLink)
		end
	end)
	iconFrame:SetWidth(39)
	iconFrame:SetHeight(39)

	local iconTexture = iconFrame:CreateTexture("GameTooltipIconTexture","ARTWORK")
	iconFrame:SetPoint("TOPLEFT", ItemRefTooltip,"TOPLEFT", -37, -3)