<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">

	<Button name="WhisperPopOutButton" frameStrata="LOW" parent="UIParent">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOM" relativeTo="ChatFrameChannelButton" relativePoint="TOP">
				<Offset><AbsDimension x="0" y="0"/></Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentFlashTextuter" file="Interface\Buttons\UI-Common-MouseHilight" setAllPoints="true" hidden="true" alphaMode="ADD"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.flash = WhisperPopOutButtonFlashTextuter;
				WP_UpdateButtonSide(DEFAULT_CHAT_FRAME);
			</OnLoad>
			<OnClick>
				PlaySound(SOUNDKIT.IG_CHAT_EMOTE_BUTTON);
				if (WhisperPopFrame:IsShown()) then
					WhisperPopFrame:Hide();
				else
					WhisperPopFrame:Show();
				end
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				GameTooltip:SetText(WHISPER_POP_LABEL, 1, 1, 1);
				GameTooltip:AddLine(WHISPER_POP_DESC, 1, 0.85, 0);
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnUpdate>
				WhisperPopOutButton_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
		<NormalTexture file="Interface\AddOns\WhisperPop\Texture\normal-up"/>
		<PushedTexture file="Interface\AddOns\WhisperPop\Texture\normal-down"/>
		<DisabledTexture file="Interface\AddOns\WhisperPop\Texture\normal-disabled"/>
		<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
	</Button>

</Ui>