<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="GlueTemplates.lua"/>
	<Button name="GlueCloseButton" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Scripts>
			<OnClick>
				self:GetParent():Hide();
			</OnClick>
		</Scripts>
		<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
		<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
	</Button>
	<Texture name="GlueScrollBarButton" virtual="true">
		<TexCoords left="0.23" right="0.77" top="0.23" bottom="0.77"/>
	</Texture>
	<Button name="GlueScrollUpButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="18" y="18"/>
		</Size>
		<NormalTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
		<PushedTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
		<DisabledTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
		<HighlightTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight" alphaMode="ADD"/>
	</Button>
	<Button name="GlueScrollDownButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="18" y="18"/>
		</Size>
		<NormalTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
		<PushedTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
		<DisabledTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
		<HighlightTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" alphaMode="ADD"/>
	</Button>
	<Texture name="GluePanelButtonDisabledDownTexture" file="Interface\Buttons\UI-Panel-Button-Disabled-Down" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Button name="GluePanelButtonTemplate" virtual="true">
		<ButtonText name="$parentText">
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GlueFontNormal"/>
		<HighlightFont style="GlueFontHighlight"/>
		<DisabledFont style="GlueFontDisable"/>
		<NormalTexture inherits="GluePanelButtonUpTexture"/>
		<PushedTexture inherits="GluePanelButtonDownTexture"/>
		<DisabledTexture inherits="GluePanelButtonDisabledTexture"/>
		<HighlightTexture inherits="GluePanelButtonHighlightTexture"/>
	</Button>
	<Button name="GluePanelButtonGrayTemplate" virtual="true">
		<NormalFont style="GlueFontHighlight"/>
		<HighlightFont style="GlueFontHighlight"/>
		<DisabledFont style="GlueFontDisable"/>
		<NormalTexture inherits="GluePanelButtonDisabledTexture"/>
		<PushedTexture inherits="GluePanelButtonDisabledDownTexture"/>
		<DisabledTexture inherits="GluePanelButtonDisabledTexture"/>
		<HighlightTexture inherits="GluePanelButtonHighlightTexture"/>
	</Button>
	<CheckButton name="GlueCheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GlueFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
	</CheckButton>
	<Slider name="GlueScrollBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="0"/>
		</Size>
		<Frames>
			<Button name="$parentScrollUpButton" parentKey="ScrollUpButton" inherits="GlueScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = self:GetParent();
						parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" parentKey="ScrollDownButton" inherits="GlueScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = self:GetParent();
						parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self.changingValue = nil;
			</OnLoad>
			<OnValueChanged>
				-- avoid recursion here - see bug 193707 and task 36371
				if(self.changingValue == nil) then
					self.changingValue = true;
					self:GetParent():SetVerticalScroll(value);
					self.changingValue = nil;
				end
			</OnValueChanged>
		</Scripts>
		<ThumbTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
			<Size>
				<AbsDimension x="18" y="24"/>
			</Size>
			<TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
		</ThumbTexture>
	</Slider>
	<ScrollFrame name="GlueScrollFrameTemplate" virtual="true">
		<Frames>
			<Slider name="$parentScrollBar" inherits="GlueScrollBarTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="6" y="-16"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="6" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
		</Frames>
		<Scripts>
			<OnLoad>
				_G[self:GetName().."ScrollBarScrollDownButton"]:Disable();
				_G[self:GetName().."ScrollBarScrollUpButton"]:Disable();
				GlueScrollFrame_OnScrollRangeChanged(self);
			</OnLoad>
			<OnScrollRangeChanged>
				GlueScrollFrame_OnScrollRangeChanged(self, yrange);
			</OnScrollRangeChanged>
			<OnVerticalScroll>
				GlueScrollFrame_OnVerticalScroll(self, offset);
			</OnVerticalScroll>
			<OnMouseWheel>
				GlueScrollFrameTemplate_OnMouseWheel(self, delta);
			</OnMouseWheel>
		</Scripts>
	</ScrollFrame>
	<Frame name="SoftBlackBGTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="TopLeftBG" file="Interface\Glues\Login\login-bg-corner">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture parentKey="TopRightBG" file="Interface\Glues\Login\login-bg-corner">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="BottomLeftBG" file="Interface\Glues\Login\login-bg-corner">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0" right="1" top="1" bottom="0"/>
				</Texture>
				<Texture parentKey="BottomRightBG" file="Interface\Glues\Login\login-bg-corner">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1" right="0" top="1" bottom="0"/>
				</Texture>
				<Texture parentKey="TopBG" file="Interface\Glues\Login\login-bg-corner">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftBG" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRightBG" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.5" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="BottomBG" file="Interface\Glues\Login\login-bg-corner">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeftBG" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.BottomRightBG" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.5" right="1" top="1" bottom="0"/>
				</Texture>
				<Texture parentKey="LeftBG" file="Interface\Glues\Login\login-bg-corner">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftBG" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomLeftBG" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="1" top="0.5" bottom="1"/>
				</Texture>
				<Texture parentKey="RightBG" file="Interface\Glues\Login\login-bg-corner">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TopRightBG" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomRightBG" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="1" right="0" top="0.5" bottom="1"/>
				</Texture>
				<Texture parentKey="CenterBG" file="Interface\Glues\Login\login-bg-corner">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftBG" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightBG" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.5" right="1" top="0.5" bottom="1"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="GlueModalFrameTemplate" virtual="true">
		<Frames>
			<Frame parentKey="ModalBackground" useParentLevel="true" enableMouse="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GlueParent"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="GlueParent"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND" textureSubLevel="-10">
						<Texture setAllPoints="true">
							<Color a="0.75" r="0" g="0" b="0"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
	</Frame>
</Ui>