<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">
	<Texture name="HybridScrollBarButton" virtual="true">
		<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75"/>
	</Texture>
	<Slider name="myHybridScrollBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="20" y="0"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="0" y="-18"/>
				</Offset>
			</Anchor>
			<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="0" y="16"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" setAllPoints="true" hidden="true">
					<Color r="0" g="0" b="0" a=".85"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size>
						<AbsDimension x="27" y="48"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-4" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0" bottom=".20"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size>
						<AbsDimension x="27" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="-4" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.515625" right="1.0" top="0.1440625" bottom="0.4140625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0.1640625" bottom="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentScrollUpButton">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:GetParent():GetParent().scrollUp = this;
						this:Disable();
						this:RegisterForClicks("LeftButtonUp", "LeftButtonDown");
						this.direction = 1;
					</OnLoad>
					<OnClick>
						HybridScrollFrameScrollButton_OnClick(this, button, down);
					</OnClick>
				</Scripts>
				<NormalTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
				<PushedTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
				<DisabledTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
				<HighlightTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight" alphaMode="ADD"/>
			</Button>
			<Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:GetParent():GetParent().scrollDown = this;
						this:Disable();
						this:RegisterForClicks("LeftButtonUp", "LeftButtonDown");
						this.direction = -1;
					</OnLoad>
					<OnClick>
						HybridScrollFrameScrollButton_OnClick(this, button, down);
					</OnClick>
				</Scripts>
				<NormalTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
				<PushedTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
				<DisabledTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
				<HighlightTexture inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" alphaMode="ADD"/>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				this:GetParent().scrollBar = this;
			</OnLoad>
			<OnValueChanged>
				local value = this:GetValue();
				HybridScrollFrame_OnValueChanged(this:GetParent(), value);
			</OnValueChanged>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob" parentKey="thumbTexture">
			<Size>
				<AbsDimension x="16" y="24"/>
			</Size>
			<TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875"/>
		</ThumbTexture>
	</Slider>

	<ScrollFrame name="myHybridScrollFrameTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				HybridScrollFrame_OnLoad(this);
			</OnLoad>
			<OnMouseWheel>
				HybridScrollFrame_OnMouseWheel(this, arg1);
			</OnMouseWheel>
		</Scripts>
		<ScrollChild>
			<Frame name="$parentScrollChild">
				<Scripts>
					<OnLoad>
						HybridScrollFrameScrollChild_OnLoad(this);
					</OnLoad>
				</Scripts>
			</Frame>
		</ScrollChild>
	</ScrollFrame>

	<ScrollFrame name="BasicmyHybridScrollFrameTemplate" inherits="myHybridScrollFrameTemplate" virtual="true">
		<Anchors>
			<Anchor point="TOPLEFT"/>
			<Anchor point="BOTTOMRIGHT"/>
		</Anchors>
		<Frames>
			<Frame name="$parentScrollBar" inherits="myHybridScrollBarTemplate"/>
		</Frames>
	</ScrollFrame>
</Ui>
