<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/
..\FrameXML\UI.xsd">
	
	<Script file="localization.en.lua"/>
	<Script file="localization.cn.lua"/>
	<Script file="localization.de.lua"/>
	<Script file="localization.fr.lua"/>
	<Script file="localization.es.lua"/>
	<Script file="localization.ru.lua"/>
	<Script file="localization.tw.lua"/>
	<Script file="ChatBar Classic.lua" />
	
	<Button name="ChatBarButtonTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="GameFontNormalSmall" nonspacewrap="true" justifyH="CENTER">
					<Size>
						<AbsDimension x="20" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentUpTex_Spec" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Up_Spec"/>
				<Texture name="$parentDownTex_Spec" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Down_Spec"  hidden="true" />
				<Texture name="$parentFlash" alphaMode="ADD" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Glow_Alpha" hidden="true">
					<Animations>
						<AnimationGroup parentKey="animFade">
							<Alpha duration=".3" fromAlpha="0" toAlpha=".7" order="1"/>
							<Alpha startDelay=".1" duration=".5" fromAlpha=".7" toAlpha="0" order="2"/>
							<Scripts>
								<OnPlay>
									local frame = self:GetParent();
									frame:SetAlpha(0);
									frame:Show();
								</OnPlay>
								<OnFinished>
									self:GetParent():Hide();
								</OnFinished>
							</Scripts>
						</AnimationGroup>
					</Animations>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentCenter" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Center"/>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentBackground" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_BG"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad function="ChatBar_Button_OnLoad"/>
	  		<OnEnter function="ChatBar_Button_OnEnter"/>
	  		<OnLeave function="ChatBar_Button_OnLeave"/>
			<OnClick function="ChatBar_Button_OnClick"/>
			<OnMouseDown function="ChatBar_Button_OnMouseDown"/>
			<OnMouseUp function="ChatBar_Button_OnMouseUp"/>
		</Scripts>
		<NormalTexture name="$parentUpTex_Shad" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Up_Shad"/>
		<PushedTexture name="$parentDownTex_Shad" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Down_Shad"/>
		<HighlightTexture name="$parentHighlight" alphaMode="ADD" file="Interface\AddOns\MidnightHUD\Modules\ChatBar Classic\Skins\SkinSolid\ChanButton_Glow_Alpha"/>
	</Button>
	
	<Frame name="ChatBarFrame" parent="UIParent" enableMouse="true" movable="true" hidden="false">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativeTo="ChatFrame1" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="30"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Frame name="$parentBackground" setAllPoints="true" inherits="BackdropTemplate">
			</Frame>
			<Button name="$parentButton1" inherits="ChatBarButtonTemplate" id="1">
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<GameTooltip name="$parentTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate" />
		</Frames>
		
		<Scripts>
			<OnLoad function="ChatBar_OnLoad"/>
			<OnEvent function="ChatBar_OnEvent"/>
			<OnMouseDown function="ChatBar_OnMouseDown"/>
			<OnDragStart function="ChatBar_OnDragStart"/>
			<OnDragStop function="ChatBar_OnDragStop"/>
		</Scripts>
	</Frame>
	
	<Frame name="ChatBar_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
		<Size>
			<AbsDimension x="10" y="10"/>
		</Size>
		<Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="-10" y="-50"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad function="ChatBar_DropDownOnLoad"/>
		</Scripts>
	</Frame>
</Ui>
