<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="myUIPanelButtonUpTexture" file="Interface\Buttons\UI-Panel-Button-Up" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Texture name="myUIPanelButtonDownTexture" file="Interface\Buttons\UI-Panel-Button-Down" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Texture name="myUIPanelButtonDisabledTexture" file="Interface\Buttons\UI-Panel-Button-Disabled" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Texture name="myUIPanelButtonDisabledDownTexture" file="Interface\Buttons\UI-Panel-Button-Disabled-Down" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Texture name="myUIPanelButtonHighlightTexture" file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD" virtual="true">
		<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
	</Texture>
	<Button name="myUIPanelButtonTemplate" virtual="true">
		<ButtonText name="$parentText"/>
		<NormalFont style="GameFontNormal"/>
		<HighlightFont style="GameFontHighlight"/>
		<DisabledFont style="GameFontDisable"/>
		<NormalTexture inherits="myUIPanelButtonUpTexture"/>
		<PushedTexture inherits="myUIPanelButtonDownTexture"/>
		<DisabledTexture inherits="myUIPanelButtonDisabledTexture"/>
		<HighlightTexture inherits="myUIPanelButtonHighlightTexture"/>
	</Button>
	<Button name="myUIPanelButtonTemplate2" virtual="true">
		<Size>
			<AbsDimension x="40" y="22"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\Buttons\UI-Panel-Button-Up">
					<Size>
						<AbsDimension x="12" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.09375" top="0" bottom="0.6875"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\Buttons\UI-Panel-Button-Up">
					<Size>
						<AbsDimension x="12" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.53125" right="0.625" top="0" bottom="0.6875"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\Buttons\UI-Panel-Button-Up">
					<Size>
						<AbsDimension x="12" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.09375" right="0.53125" top="0" bottom="0.6875"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				if ( this:IsEnabled() ~= 1 ) then
					local name = this:GetName();
					_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
					_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
					_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
				end
			</OnLoad>
			<OnMouseDown>
				local _G, _ = _G or getfenv()
				if ( this:IsEnabled() == 1 ) then
					local name = this:GetName();
					_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
					_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
					_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down");
				end
			</OnMouseDown>
			<OnMouseUp>
				local _G, _ = _G or getfenv()
				if ( this:IsEnabled() == 1 ) then
					local name = this:GetName();
					_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
					_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
					_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
				end
			</OnMouseUp>
			<OnShow>
				local _G, _ = _G or getfenv()
				if ( this:IsEnabled() == 1 ) then
					-- we need to reset our textures just in case we were hidden before a mouse up fired
					local name = this:GetName();
					_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
					_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
					_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
				end
			</OnShow>
			<OnDisable>
				local _G, _ = _G or getfenv()
				local name = this:GetName();
				_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
				_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
				_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
			</OnDisable>
			<OnEnable>
				local _G, _ = _G or getfenv()
				local name = this:GetName();
				_G[name.."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
				_G[name.."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
				_G[name.."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up");
			</OnEnable>
			<OnEnter>
				if(this.tooltipText ~= nil) then
					GameTooltip_AddNewbieTip(this, this.tooltipText, 1.0, 1.0, 1.0, this.newbieText);
				end
			</OnEnter>
			<OnLeave>
				if(this.tooltipText ~= nil) then
					GameTooltip:Hide();
				end
			</OnLeave>
		</Scripts>
		<ButtonText name="$parentText"/>
		<NormalFont style="GameFontNormal"/>
		<HighlightFont style="GameFontHighlight"/>
		<DisabledFont style="GameFontDisable"/>
		<HighlightTexture inherits="myUIPanelButtonHighlightTexture"/>
	</Button>
	<Button name="myUIPanelButtonGrayTemplate" virtual="true">
		<NormalFont style="GameFontHighlight"/>
		<HighlightFont style="GameFontHighlight"/>
		<DisabledFont style="GameFontDisable"/>
		<NormalTexture inherits="myUIPanelButtonDisabledTexture"/>
		<PushedTexture inherits="myUIPanelButtonDisabledDownTexture"/>
		<DisabledTexture inherits="myUIPanelButtonDisabledTexture"/>
		<HighlightTexture inherits="myUIPanelButtonHighlightTexture"/>
	</Button>
	<Button name="myUIPanelCloseButton" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Scripts>
			<OnClick>
				HideParentPanel(this);
			</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="myUIPanelScrollBarButton" virtual="true">
		<TexCoords left="0.20" right="0.80" top="0.25" bottom="0.75"/>
	</Texture>
	<Button name="myUIPanelScrollUpButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="18" y="16"/>
		</Size>
		<NormalTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
		<PushedTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
		<DisabledTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
		<HighlightTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight" alphaMode="ADD"/>
	</Button>
	<Button name="myUIPanelScrollDownButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="18" y="16"/>
		</Size>
		<NormalTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
		<PushedTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
		<DisabledTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
		<HighlightTexture inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" alphaMode="ADD"/>
	</Button>
	<Slider name="myUIPanelScrollBarTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="0"/>
		</Size>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="myUIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent();
						parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="myUIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent();
						parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnValueChanged>
				this:GetParent():SetVerticalScroll(value);
			</OnValueChanged>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="myUIPanelScrollBarButton" 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>
	<Slider name="myUIPanelScrollBarTemplateLightBorder" virtual="true">
		<Size>
			<AbsDimension x="16" y="0"/>
		</Size>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="myUIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent();
						parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="myUIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = this:GetParent();
						parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
						PlaySound("UChatScrollButton");
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="$parentBorder">
				<Size>
					<AbsDimension x="24" y="0"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollUpButton">
						<Offset x="-5" y="5"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollDownButton">
						<Offset x="5" y="-3"/>
					</Anchor>
				</Anchors>
				<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="12"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="0" right="0" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnValueChanged>
				this:GetParent():SetVerticalScroll(value);
			</OnValueChanged>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="myUIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
			<Size>
				<AbsDimension x="16" y="24"/>
			</Size>
			<TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875"/>
		</ThumbTexture>
	</Slider>
	<ScrollFrame name="myUIPanelScrollFrameTemplate" virtual="true">
		<Frames>
			<Slider name="$parentScrollBar" inherits="myUIPanelScrollBarTemplate">
				<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>
				ScrollFrame_OnLoad(this);
			</OnLoad>
			<OnScrollRangeChanged>
				ScrollFrame_OnScrollRangeChanged(this, xrange, yrange);
			</OnScrollRangeChanged>
			<!--  The code to disable the ScrollDownButton is pretty hacked, but it works -->
			<OnVerticalScroll>
				local _G, _ = _G or getfenv()
				local scrollbar = _G[this:GetName().."ScrollBar"];
				scrollbar:SetValue(offset);
				local min;
				local max;
				min, max = scrollbar:GetMinMaxValues();
				if ( offset == 0 ) then
					_G[scrollbar:GetName().."ScrollUpButton"]:Disable();
				else
					_G[scrollbar:GetName().."ScrollUpButton"]:Enable();
				end
				if ((scrollbar:GetValue() - max) == 0) then
					_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
				else
					_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
				end
			</OnVerticalScroll>
			<OnMouseWheel>
				ScrollFrameTemplate_OnMouseWheel(this, delta);
			</OnMouseWheel>
		</Scripts>
	</ScrollFrame>
	<ScrollFrame name="myUIPanelScrollFrameTemplate2" inherits="myUIPanelScrollFrameTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size>
						<AbsDimension x="31" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size>
						<AbsDimension x="31" y="106"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				ScrollFrame_OnLoad(this);
				_G[this:GetName().."Top"]:SetPoint("TOPLEFT", _G[this:GetName().."ScrollBar".."ScrollUpButton"], "TOPLEFT", -8, 5);
				_G[this:GetName().."Bottom"]:SetPoint("BOTTOMLEFT", _G[this:GetName().."ScrollBar".."ScrollDownButton"], "BOTTOMLEFT", -8, -2);
			</OnLoad>
		</Scripts>
	</ScrollFrame>
	<ScrollFrame name="myFauxScrollFrameTemplate" inherits="myUIPanelScrollFrameTemplate" virtual="true">
		<Scripts>
			<OnScrollRangeChanged function=""/>
		</Scripts>
		<ScrollChild>
			<Frame name="$parentScrollChildFrame">
				<Size>
					<AbsDimension x="300" y="334"/>
				</Size>
			</Frame>
		</ScrollChild>
	</ScrollFrame>
	<ScrollFrame name="myFauxScrollFrameTemplateLight" virtual="true">
		<Frames>
			<Slider name="$parentScrollBar" inherits="myUIPanelScrollBarTemplateLightBorder">
				<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>
				ScrollFrame_OnLoad(this);
			</OnLoad>
			<OnScrollRangeChanged function=""/>
			<OnVerticalScroll>
				local _G, _ = _G or getfenv()
				local scrollbar = _G[this:GetName().."ScrollBar"];
				scrollbar:SetValue(offset);
				local min;
				local max;
				min, max = scrollbar:GetMinMaxValues();
				if ( offset == 0 ) then
					_G[scrollbar:GetName().."ScrollUpButton"]:Disable();
				else
					_G[scrollbar:GetName().."ScrollUpButton"]:Enable();
				end
				if ((scrollbar:GetValue() - max) == 0) then
					_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
				else
					_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
				end
			</OnVerticalScroll>
			<OnMouseWheel>
				ScrollFrameTemplate_OnMouseWheel(this, delta);
			</OnMouseWheel>
		</Scripts>
		<ScrollChild>
			<Frame name="$parentScrollChildFrame">
				<Size>
					<AbsDimension x="300" y="334"/>
				</Size>
			</Frame>
		</ScrollChild>
	</ScrollFrame>
	<EditBox name="myInputBoxTemplate" enableMouse="true" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" 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 name="$parentRight" 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 name="$parentMiddle" file="Interface\Common\Common-Input-Border">
					<Size>
						<AbsDimension x="10" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnEscapePressed>
				EditBox_ClearFocus(this);
			</OnEscapePressed>
			<OnEditFocusLost>
				EditBox_ClearHighlight(this);
			</OnEditFocusLost>
			<OnEditFocusGained>
				EditBox_HighlightText(this);
			</OnEditFocusGained>
		</Scripts>
		<FontString inherits="ChatFontNormal"/>
	</EditBox>
	<CheckButton name="myUICheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<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>
	<Button name="myTabButtonTemplate" virtual="true">
		<Size>
            <AbsDimension x="115" y="32"/>
        </Size>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
        			<Size>
        				<AbsDimension x="16" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="BOTTOMLEFT">
        					<Offset>
        						<AbsDimension x="0" y="-3"/>
        					</Offset>
        				</Anchor>
        			</Anchors>
					<TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddleDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
        			<Size>
        				<AbsDimension x="32" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRightDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
        			<Size>
        				<AbsDimension x="16" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentLeft" file="Interface\HelpFrame\HelpFrameTab-Inactive">
        			<Size>
        				<AbsDimension x="16" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="BOTTOMLEFT"/>
        			</Anchors>
					<TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddle" file="Interface\HelpFrame\HelpFrameTab-Inactive">
        			<Size>
        				<AbsDimension x="32" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRight" file="Interface\HelpFrame\HelpFrameTab-Inactive">
        			<Size>
        				<AbsDimension x="16" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
        		</Texture>
        	</Layer>
        </Layers>
		<Scripts>
			<OnLoad>
				local _G, _ = _G or getfenv()
				PanelTemplates_TabResize(this, 0);
				_G[this:GetName().."HighlightTexture"]:SetWidth(this:GetTextWidth() + 31);
			</OnLoad>
		</Scripts>
		<ButtonText name="$parentText">
			<Size>
				<AbsDimension x="0" y="13"/>
			</Size>
			<Anchors>
				<Anchor point="BOTTOM">
					<Offset>
						<AbsDimension x="0" y="5"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontDisableSmall"/>
		<HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="5" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="BOTTOM">
					<Offset>
						<AbsDimension x="2" y="-8"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
    </Button>
	<Button name="myGameMenuButtonTemplate" inherits="myUIPanelButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="144" y="21"/>
		</Size>
		<NormalFont style="GameFontHighlight"/>
		<HighlightFont style="GameFontHighlight"/>
		<DisabledFont style="GameFontDisable"/>
	</Button>
	<CheckButton name="myUIRadioButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-RadioButton">
			<TexCoords left="0" right="0.25" top="0" bottom="1"/>
		</NormalTexture>
		<HighlightTexture file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
			<TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
		</HighlightTexture>
		<CheckedTexture file="Interface\Buttons\UI-RadioButton">
			<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
		</CheckedTexture>
	</CheckButton>
	<Frame name="myAnimatedShineTemplate" virtual="true">
		<Size>
			<AbsDimension x="37" y="37"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parent1" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent2" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent3" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent4" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="myAutoCastShineTemplate" virtual="true">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Size>
			<AbsDimension x="28" y="28"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parent1" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent2" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent3" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="7" y="7"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent4" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="4" y="4"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent5" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent6" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent7" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="7" y="7"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent8" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="4" y="4"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent9" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent10" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent11" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="7" y="7"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent12" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="4" y="4"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent13" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="13" y="13"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent14" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent15" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="7" y="7"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
				<Texture name="$parent16" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
					<Size>
						<AbsDimension x="4" y="4"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AutoCastShine_OnLoad(this);
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="myUIPanelDialogTemplate" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentTopLeft" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.501953125" right="0.625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.625" right="0.75" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.25" right="0.369140625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomLeft" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.751953125" right="0.875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomRight" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.875" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.376953125" right="0.498046875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.001953125" right="0.125" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.1171875" right="0.2421875" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentTitleBG" file="Interface\PaperDollInfoFrame\UI-GearManager-Title-Background">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="8" y="-7"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset x="-8" y="-24"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentDialogBG" file="Interface\PaperDollInfoFrame\UI-Character-CharacterTab-L1">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="8" y="-24"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-6" y="8"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.255" right="1" top="0.29" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString parentKey="title" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="12" y="-8"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="-32" y="-24"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentClose" inherits="myUIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="2" y="1"/>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>
	<ScrollFrame name="myDynamicScrollFrameTemplate" virtual="true">
		<ScrollChild>
			<Frame name="$parentScrollChild" parentKey="scrollChild">
				<Size>
					<AbsDimension x="10" y="10"/>
				</Size>
			</Frame>
		</ScrollChild>
		<Scripts>
			<OnLoad>
				ScrollFrame_OnLoad(this);
			</OnLoad>
			<OnScrollRangeChanged>
				if ( this.allowedRange and yrange > this.allowedRange + 1 ) then
					-- temp fix to jitter scroll (see task 39261)
				else
					ScrollFrame_OnScrollRangeChanged(this, xrange, yrange);
				end
			</OnScrollRangeChanged>
			<OnVerticalScroll function="DynamicScrollFrame_OnVerticalScroll"/>
			<OnMouseWheel>
				ScrollFrameTemplate_OnMouseWheel(this, delta);
			</OnMouseWheel>
		</Scripts>
	</ScrollFrame> -->
</Ui>
