<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="Blizzard_AuthChallengeUI.lua"/>
	
	<ScopedModifier fullLockdown="true" scriptsUseGivenEnv="true">
		<EditBox name="AuthChallengeEditBoxTemplate" enableMouse="true" hidden="true" virtual="true">
			<Size x="163" y="20"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">
					<Texture parentKey="LeftTexture" file="Interface\Common\Common-Input-Border">
						<Size>
							<AbsDimension x="8" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="-5" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
					</Texture>
					<Texture parentKey="RightTexture" file="Interface\Common\Common-Input-Border">
						<Size>
							<AbsDimension x="8" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
					</Texture>
					<Texture parentKey="MiddleTexture" file="Interface\Common\Common-Input-Border">
						<Size>
							<AbsDimension x="10" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.LeftTexture" relativePoint="RIGHT"/>
							<Anchor point="RIGHT" relativeKey="$parent.RightTexture" relativePoint="LEFT"/>
						</Anchors>
						<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
					</Texture>
				</Layer>
				<Layer level="ARTWORK">
					<FontString parentKey="Label" inherits="GameFontHighlight" text="Enter some text here">
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="6"/>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Scripts>
				<OnEnterPressed function="AuthChallengeUI_Submit"/>
				<OnTabPressed function="AuthChallengeUI_OnTabPressed"/>
			</Scripts>
			<FontString inherits="GameFontHighlightOutline"/>
		</EditBox>	
		<Button name="AuthChallengeButtonTemplate" virtual="true">
			<Size x="120" y="22"/>
			<ButtonText name="$parentText"/>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>				
			</NormalTexture>			
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>				
			</PushedTexture>
			<NormalFont style="GameFontNormal"/>
			<HighlightFont style="GameFontHighlight"/>
			<DisabledFont style="GameFontDisable"/>
			<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
		</Button>
		
		<Frame name="AuthChallengeFrame" setAllPoints="true" hidden="true" frameStrata="BLIZZARD" enableKeyboard="true" enableMouse="true">
			<Frames>
				<Frame parentKey="WaitFrame" hidden="true">
					<Size x="320" y="148"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>				
					<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
						<BackgroundInsets>
							<AbsInset left="11" right="12" top="12" bottom="11"/>
						</BackgroundInsets>
						<TileSize>
							<AbsValue val="32"/>
						</TileSize>
						<EdgeSize>
							<AbsValue val="32"/>
						</EdgeSize>
					</Backdrop>
					<Layers>
						<Layer level="ARTWORK">					
							<FontString inherits="GameFontNormalLarge" text="BLIZZARD_CHALLENGE_CONNECTING">
								<Anchors>
									<Anchor point="TOP" x="0" y="-73"/>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
					<Frames>
						<Frame>
							<Size x="48" y="48"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-18"/>
							</Anchors>						
							<Layers>
								<Layer level="BACKGROUND">
									<Texture file="Interface\COMMON\StreamBackground" setAllPoints="true">
										<Color r="1" g="0.82" b="0"/>
									</Texture>
								</Layer>
								<Layer level="ARTWORK">
									<Texture file="Interface\COMMON\StreamFrame" setAllPoints="true"/>
								</Layer>
							</Layers>
						</Frame>					
						<Frame parentKey="AnimFrame">
							<Size x="48" y="48"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-18"/>
							</Anchors>
							<Layers>
								<Layer level="BACKGROUND">
									<Texture file="Interface\COMMON\StreamCircle" setAllPoints="true">
										<Color r="1" g="0.82" b="0"/>
									</Texture>
								</Layer>
								<Layer level="OVERLAY">
									<Texture file="Interface\COMMON\StreamSpark" setAllPoints="true"/>
								</Layer>
							</Layers>
							<Animations>
								<AnimationGroup parentKey="Anim" looping="REPEAT">
									<Rotation order="1" duration="8" degrees="-360"/>
								</AnimationGroup>
							</Animations>
						</Frame>
						<Button inherits="AuthChallengeButtonTemplate" text="BLIZZARD_CHALLENGE_CANCEL">
							<Size x="120" y="22"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="18"/>
							</Anchors>
							<Scripts>
								<OnClick function="AuthChallengeUI_Cancel"/>
							</Scripts>
						</Button>					
					</Frames>
				</Frame>
				<Frame parentKey="InputFrame" hidden="true">
					<Size x="500" y="200"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>				
					<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
						<BackgroundInsets>
							<AbsInset left="11" right="12" top="12" bottom="11"/>
						</BackgroundInsets>
						<TileSize>
							<AbsValue val="32"/>
						</TileSize>
						<EdgeSize>
							<AbsValue val="32"/>
						</EdgeSize>
					</Backdrop>
					<Layers>
						<Layer level="ARTWORK">					
							<FontString parentKey="Prompt" inherits="GameFontNormalLarge">
								<Size x="460" y="0"/>
								<Anchors>
									<Anchor point="TOP" x="0" y="-18"/>
								</Anchors>
								<Color r="1" g="0.82" b="0"/>
							</FontString>
							<FontString parentKey="Info" inherits="GameFontNormal" text="BLIZZARD_CHALLENGE_SCREEN_EXPLANATION">
								<Size x="400" y="0"/>
								<Anchors>
									<Anchor point="TOP" relativeKey="$parent.Prompt" relativePoint="BOTTOM" x="0" y="-18"/>
								</Anchors>
								<Color r="0.510" g="0.773" b="1.0"/>
							</FontString>							
							<FontString parentKey="Error" inherits="GameFontNormal">
								<Size x="460" y="0"/>
								<Anchors>
									<Anchor point="TOP" relativeKey="$parent.Info" relativePoint="BOTTOM" x="0" y="-18"/>
								</Anchors>
								<Color r="1" g="0.1" b="0.1"/>
							</FontString>
						</Layer>
					</Layers>					
					<Frames>
						<EditBox parentKey="Input1" inherits="AuthChallengeEditBoxTemplate" autoFocus="true">
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.Info" relativePoint="BOTTOM" x="0" y="-38"/>
							</Anchors>
						</EditBox>
						<EditBox parentKey="Input2" inherits="AuthChallengeEditBoxTemplate">
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.Input1" relativePoint="BOTTOM" x="0" y="-40"/>
							</Anchors>
						</EditBox>
						<EditBox parentKey="Input3" inherits="AuthChallengeEditBoxTemplate">
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.Input2" relativePoint="BOTTOM" x="0" y="-40"/>
							</Anchors>
						</EditBox>
						<EditBox parentKey="Input4" inherits="AuthChallengeEditBoxTemplate">
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.Input3" relativePoint="BOTTOM" x="0" y="-40"/>
							</Anchors>
						</EditBox>							
						<Button inherits="AuthChallengeButtonTemplate" text="BLIZZARD_CHALLENGE_SUBMIT">
							<Size x="120" y="22"/>
							<Anchors>
								<Anchor point="BOTTOM" x="-67" y="18"/>
							</Anchors>
							<Scripts>
								<OnClick function="AuthChallengeUI_Submit"/>
							</Scripts>
						</Button>
						<Button inherits="AuthChallengeButtonTemplate" text="BLIZZARD_CHALLENGE_CANCEL">
							<Size x="120" y="22"/>
							<Anchors>
								<Anchor point="BOTTOM" x="67" y="18"/>
							</Anchors>
							<Scripts>
								<OnClick function="AuthChallengeUI_Cancel"/>
							</Scripts>
						</Button>						
					</Frames>
				</Frame>
				<Frame parentKey="DeniedFrame" hidden="true">
					<Size x="320" y="216"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
					<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
						<BackgroundInsets>
							<AbsInset left="11" right="12" top="12" bottom="11"/>
						</BackgroundInsets>
						<TileSize>
							<AbsValue val="32"/>
						</TileSize>
						<EdgeSize>
							<AbsValue val="32"/>
						</EdgeSize>
					</Backdrop>
					<Layers>
						<Layer level="BORDER">
							<Texture parentKey="Background" file="Interface\Store\Store-Main">
								<Size x="188" y="185"/>
								<TexCoords left="0.18457031" right="0.36816406" top="0.46289063" bottom="0.64355469"/>								
								<Anchors>
									<Anchor point="CENTER" x="0" y="50"/>
								</Anchors>
							</Texture>
						</Layer>
						<Layer level="ARTWORK">
							<Texture parentKey="Line" file="Interface\Store\Store-Main">
								<Size x="298" y="2"/>
								<TexCoords left="0.50878906" right="0.79980469" top="0.63085938" bottom="0.63281250"/>
								<Anchors>
									<Anchor point="CENTER" x="0" y="-20"/>
								</Anchors>
							</Texture>
							<FontString inherits="GameFontNormalLarge" text="BLIZZARD_CHALLENGE_DENIED_TITLE">
								<Anchors>
									<Anchor point="BOTTOM" relativeKey="$parent.Line" relativePoint="TOP" x="0" y="6"/>
								</Anchors>
							</FontString>
							<FontString inherits="GameFontHighlight" justifyV="TOP" text="BLIZZARD_CHALLENGE_DENIED_DESCRIPTION">
								<Size x="250" y="0"/>
								<Anchors>
									<Anchor point="TOP" relativeKey="$parent.Line" relativePoint="BOTTOM" x="0" y="-6"/>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
					<Frames>
						<Button inherits="AuthChallengeButtonTemplate" text="BLIZZARD_CHALLENGE_OKAY">
							<Size x="120" y="22"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="18"/>
							</Anchors>
							<Scripts>
								<OnClick function="AuthChallengeUI_Cancel"/>
							</Scripts>
						</Button>
					</Frames>
				</Frame>
				<Frame parentKey="ErrorFrame" hidden="true">
					<Size x="320" y="216"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
					<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
						<BackgroundInsets>
							<AbsInset left="11" right="12" top="12" bottom="11"/>
						</BackgroundInsets>
						<TileSize>
							<AbsValue val="32"/>
						</TileSize>
						<EdgeSize>
							<AbsValue val="32"/>
						</EdgeSize>
					</Backdrop>
					<Layers>
						<Layer level="BORDER">
							<Texture parentKey="Background" file="Interface\Store\Store-Main">
								<Size x="188" y="185"/>
								<TexCoords left="0.18457031" right="0.36816406" top="0.46289063" bottom="0.64355469"/>								
								<Anchors>
									<Anchor point="CENTER" x="0" y="50"/>
								</Anchors>
							</Texture>
						</Layer>
						<Layer level="ARTWORK">
							<Texture parentKey="Line" file="Interface\Store\Store-Main">
								<Size x="298" y="2"/>
								<TexCoords left="0.50878906" right="0.79980469" top="0.63085938" bottom="0.63281250"/>
								<Anchors>
									<Anchor point="CENTER" x="0" y="-20"/>
								</Anchors>
							</Texture>
							<FontString inherits="GameFontNormalLarge" text="BLIZZARD_CHALLENGE_ERROR_TITLE">
								<Anchors>
									<Anchor point="BOTTOM" relativeKey="$parent.Line" relativePoint="TOP" x="0" y="6"/>
								</Anchors>
							</FontString>
							<FontString inherits="GameFontHighlight" justifyV="TOP" text="BLIZZARD_CHALLENGE_ERROR_DESCRIPTION">
								<Size x="250" y="0"/>
								<Anchors>
									<Anchor point="TOP" relativeKey="$parent.Line" relativePoint="BOTTOM" x="0" y="-6"/>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
					<Frames>
						<Button inherits="AuthChallengeButtonTemplate" text="BLIZZARD_CHALLENGE_OKAY">
							<Size x="120" y="22"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="18"/>
							</Anchors>
							<Scripts>
								<OnClick function="AuthChallengeUI_Cancel"/>
							</Scripts>
						</Button>
					</Frames>
				</Frame>				
			</Frames>
			<Scripts>
				<OnLoad function="AuthChallengeUI_OnLoad"/>
				<OnKeyDown function="AuthChallengeUI_OnKeyDown"/>
			</Scripts>			
		</Frame>
	</ScopedModifier>
</Ui>