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)