<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">

	<Button name="GwRuneSpellButtonTemplate" virtual="true">
		<Size x="231" y="30"/>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon" parentKey="icon">
					<Size x="36" y="36"/>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
					<Anchors>
						<Anchor point="LEFT" x="2" y="0"/>
					</Anchors>
				</Texture>
				<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT" parentKey="name">
					<Size x="225" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT"  relativeTo="$parentIcon" relativePoint="TOPRIGHT" x="4" y="-5"/>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
				<FontString name="$parentTypeName" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="typeName">
					<Size x="225" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT"  relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
					</Anchors>
					<Color r="1" g="1" b="0.6"/>
				</FontString>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="1">
				<Texture parentKey="selectedTex" file="Interface\ClassTrainerFrame\TrainerTextures" hidden="true" alphaMode="ADD">
					<TexCoords left="0.00195313" right="0.57421875" top="0.84960938" bottom="0.94140625"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture parentKey="disabledBG" hidden="true" alphaMode="MOD">
					<Anchors>
						<Anchor point="TOPLEFT" x="2" y="-2"/>
						<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
					</Anchors>
					<Color r="0.55" g="0.55" b="0.55" a="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad> self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); </OnLoad>
			<OnEnter function ="RuneSpellButton_OnEnter"/>
			<OnLeave>
				GameTooltip_Hide();
				self.showingTooltip = false;
			</OnLeave>
			<OnClick>
				EngravingFrameSpell_OnClick(self, button);
			</OnClick>
		</Scripts>
		<NormalTexture file="Interface\ClassTrainerFrame\TrainerTextures">
			<TexCoords left="0.00195313" right="0.57421875" top="0.65820313" bottom="0.75000000"/>
		</NormalTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\ClassTrainerFrame\TrainerTextures" alphaMode="ADD">
			<TexCoords left="0.00195313" right="0.57421875" top="0.75390625" bottom="0.84570313"/>
		</HighlightTexture>
	</Button>

    <Button name="GwRuneHeaderButtonTemplate" virtual="true">
		<Size x="230" y="20"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture  name="$parentMiddle" file="Interface\Buttons\CollapsibleHeader" parentKey="middle">
					<Size x="0" y="20"/>
					<Anchors>
						<Anchor point="LEFT" x="20" y="0"/>
						<Anchor point="RIGHT" x="-20" y="0"/>
					</Anchors>
					<TexCoords left="0.48046875" right="0.98046875" top="0.01562500" bottom="0.26562500"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentLeft" file="Interface\Buttons\CollapsibleHeader" parentKey="leftEdge">
					<Size x="76" y="20"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="LEFT" x="-20" y="0"/>
					</Anchors>
					<TexCoords left="0.17578125" right="0.47265625" top="0.29687500" bottom="0.54687500"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\Buttons\CollapsibleHeader" parentKey="rightEdge">
					<Size x="76" y="20"/>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentMiddle" relativePoint="RIGHT" x="20" y="0"/>
					</Anchors>
					<TexCoords left="0.17578125" right="0.47265625" top="0.01562500" bottom="0.26562500"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentExpandedIcon" parentKey="expandedIcon" inherits="Char-Stat-Minus">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" x="10" y="0"/>
					</Anchors>
				</Texture>
				<Texture name="$parentCollapsedIcon" parentKey="collapsedIcon" inherits="Char-Stat-Plus">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" x="10" y="0"/>
					</Anchors>
				</Texture>
				<Texture name="$parentIcon" parentKey="icon">
					<Size x="14" y="14"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" x="26" y="0"/>
					</Anchors>
					<TexCoords left="0.08" right="0.92" top="0.08" bottom="0.92"/>
				</Texture>
				<FontString name="$parentName" inherits="GameFontNormal" parentKey="name">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentMiddle" x="0" y="1"/>
					</Anchors>
                    <Color r="1" g="1" b="1"/>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick function="GwRuneHeader_OnClick"/>
			<OnMouseDown>
				if ( self:IsEnabled() ) then
					self.middle:SetPoint("LEFT", 22, -2);
					self.middle:SetPoint("RIGHT", -18, -2);
				end
			</OnMouseDown>
			<OnMouseUp>
				self.middle:SetPoint("LEFT", 20, 0);
				self.middle:SetPoint("RIGHT", -20, 0);
			</OnMouseUp>
		</Scripts>
	</Button>

    <Frame name="GwEngravingFrame" inherits="SecureHandlerBaseTemplate" hidden="true" virtual="true">
        <Size x="231" y="600"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="10" y="0"></Anchor>
        </Anchors>
        <Frames>
            <Button name="$parentBackButton" parentKey="backButton" inherits="GwHeroPanelMenuButtonBackTemplate,SecureHandlerClickTemplate" text="Character: Runes" >
                <Size x="231" y="50"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="-15"></Anchor>
                </Anchors>
            </Button>
            <EditBox name="$parentSearchBox" autoFocus="false" letters="25">
                <Size x="225" y="20"></Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentBackButton" x="3" y="-54"/>
				</Anchors>
				<Layers>
                    <Layer level="BACKGROUND">
                        <Texture file="Interface/AddOns/GW2_UI/textures/uistuff/gwstatusbar-bg.png">
                            <Anchors>
                                <Anchor point="TOPLEFT" x="-3" y="0"></Anchor>
                                <Anchor point="BOTTOMRIGHT" x="3" y="0"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                    <Layer level="OVERLAY">
						<Texture name="$parentSearchIcon" file="Interface\Common\UI-Searchbox-Icon" parentKey="searchIcon">
							<Size>
								<AbsDimension x="14" y="14"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" y="-2"/>
							</Anchors>
							<Color r="0.7" g="0.7" b="0.7" />
						</Texture>
					</Layer>
                </Layers>
                <FontString inherits="ChatFontNormal" />
				<Scripts>
					<OnShow function="GwEngravingFrameSearchBox_OnShow"/>
					<OnEnterPressed function="EditBox_ClearFocus"/>
					<OnEscapePressed function="EditBox_ClearFocus"/>
					<OnTextChanged function="GwEngravingFrameSearchBox_OnTextChanged"/>
					<OnEditFocusLost function="GwEngravingFrameSearchBox_OnEditFocusLost"/>
					<OnEditFocusGained function="GwEngravingFrameSearchBox_OnEditFocusGained"/>
				</Scripts>
			</EditBox>
            <Frame name="$parentFilterDropDown" parentKey="dropdown" inherits="UIDropDownMenuTemplate" enableMouse="true">
                <Size x="225" y="20"></Size>
				<Anchors>
					<Anchor point="TOPLEFT"  relativeTo="$parentSearchBox" relativePoint="BOTTOMLEFT" x="-8" y="-3"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(self, 225);
						UIDropDownMenu_JustifyText(self, "LEFT");
						UIDropDownMenu_SetText(self, ALL_RUNES);
						UIDropDownMenu_Initialize(self, GwRuneFrameFilter_Initialize);
					</OnLoad>
				</Scripts>
			</Frame>
            <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="GwHybridScrollFrameTemplate" enableMouse="true">
                <Size x="230" y="545"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="-123" />
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                </Anchors>
                <Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentEmptyLabel" inherits="GameFontNormal" justifyH="LEFT" parentKey="emptyText" text ="NO_RUNES">
							<Anchors>
								<Anchor point="TOPLEFT" x="2" y="-6"/>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</FontString>
					</Layer>
				</Layers>
            </ScrollFrame>
            <Frame name="$parentCollectedFrame" parentKey="collected">
				<Size x ="225" y ="20"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="BOTTOMLEFT" x="0" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentLabel" inherits="GameFontNormal" justifyH="LEFT" parentKey="collectedText" text ="0/15 Runes Collected">
							<Anchors>
								<Anchor point="LEFT"  x="0" y="-1"/>
							</Anchors>
							<Color r="1" g="1" b="1"/>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

            <Button name="$parentHeader1" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader2" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader3" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader4" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader5" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader6" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader7" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader8" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader9" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader10" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader11" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader12" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader13" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader14" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
			<Button name="$parentHeader15" inherits="GwRuneHeaderButtonTemplate" hidden="true"/>
        </Frames>

    </Frame>

</Ui>