All pastes #276432 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-12 09:38 UTC
rendered paste body
	<Button name="WoWx_ItemRef_ToolTipIcon" parent="ItemRefTooltip" enableMouse="true" toplevel="true" framestrata="HIGH" hidden="true">
		<Size>
			<AbsDimension x="39" y="39"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIconTexture">
					<Size>
						<AbsDimension x="39" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
		     		<Offset>
					<AbsDimension x="-37" y="-3"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this.link = "";
				this.actualLink = "";
			</OnLoad>
			<OnMouseDown>
				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
			</OnMouseDown>
		</Scripts>
	</Button>