<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="SlashHelpUpButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="180" y="12"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentArrow" file="Interface\ChatFrame\ChatFrameExpandArrow">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>                   
					</Anchors>
				</Texture>
				<Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(self:GetName().."Arrow"):SetTexCoord(1,0,0,0,1,1,0,1);
			</OnLoad>
			<OnEnter>
				getglobal(self:GetName().."Highlight"):Show();
			</OnEnter>
			<OnLeave>
				getglobal(self:GetName().."Highlight"):Hide();
			</OnLeave>
			<OnMouseDown>
				if arg1=="LeftButton" then
					self.scrollval=-1;
				end
			</OnMouseDown>
			<OnMouseUp>
				self.scrollval=0;
			</OnMouseUp>
			<OnUpdate>
				SlashHelp_ScrollValidate(self,-1);
				SlashHelp_Scroll(self.scrollval or 0);
			</OnUpdate>
		</Scripts>
	</Button>
	<Button name="SlashHelpDownButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="180" y="12"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentArrow" file="Interface\ChatFrame\ChatFrameExpandArrow">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>                   
					</Anchors>
				</Texture>
				<Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(self:GetName().."Arrow"):SetTexCoord(0,1,1,1,0,0,1,0);
			</OnLoad>
			<OnEnter>
				getglobal(self:GetName().."Highlight"):Show();
			</OnEnter>
			<OnLeave>
				getglobal(self:GetName().."Highlight"):Hide();
			</OnLeave>
			<OnMouseDown>
				if arg1=="LeftButton" then
					self.scrollval=1;
				end
			</OnMouseDown>
			<OnMouseUp>
				self.scrollval=0;
			</OnMouseUp>
			<OnUpdate>
				SlashHelp_ScrollValidate(self,1);
				SlashHelp_Scroll(self.scrollval or 0);
			</OnUpdate>
		</Scripts>
	</Button>
	<Button name="SlashHelpEntryTemplate" virtual="true">
		<Size>
			<AbsDimension x="180" y="12"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentCommandText" inherits="GameFontHighlight" justifyH="LEFT">
					<Size>
						<AbsDimension x="0" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentSectionText" inherits="GameFontNormal" justifyH="RIGHT">
					<Size>
						<AbsDimension x="0" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				getglobal(self:GetName().."Highlight"):Show();
			</OnEnter>
			<OnLeave>
				getglobal(self:GetName().."Highlight"):Hide();
			</OnLeave>
		</Scripts>
		<ButtonText name="$parentNormalText"/>
		<NormalFont inherits="GameFontHighlightSmall" justifyH="LEFT"/>
		<HighlightFont inherits="GameFontHighlightSmall" justifyH="LEFT"/>
		<DisabledFont inherits="GameFontDisableSmall" justifyH="LEFT"/>
	</Button>

	<Frame name="SlashHelpScrollFrame" parent="ChatFrameEditBox">
		<Size>
			<AbsDimension x="0" y="418"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="3" y="-6"/>
				</Offset>
			</Anchor>
			<Anchor point="BOTTOMRIGHT" relativeTo="ChatFrameEditBox" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-3" y="-6"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="SlashHelpScrollFrameText" inherits="GameFontNormalSmall">
					<Size>
						<AbsDimension x="0" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-5"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-5" y="5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="SlashHelpUpButton" inherits="SlashHelpUpButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-5"/>
						</Offset>
					</Anchor>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SlashHelpDownButton" inherits="SlashHelpDownButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="5" y="5"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-5" y="5"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

		</Frames>
		<Scripts>
			<OnLoad>
				self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
				self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="SlashHelpOptionsFrame" parent="ChatFrameEditBox">
		<Size>
			<AbsDimension x="200" y="110"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativeTo="SlashHelpScrollFrame" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="-3" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="SlashHelpOptionsFrameAuthorLogo" file="Interface\AddOns\SlashHelp\SDP" setAllPoints="true"/>
			</Layer>
			<Layer level="OVERLAY">
				<FontString inherits="GameFontHighlightSmall" text="Sort Order:">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString inherits="GameFontHighlightSmall" text="Show:">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-40"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="SlashHelpSortAlpha" inherits="UIRadioButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="75" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:SetHitRectInsets(0,-75,0,0)
						getglobal(self:GetName().."Text"):SetText("Alphabetical");
						self:SetChecked(1);
					</OnLoad>
					<OnClick>
						SlashHelpSortGroup:SetChecked(0);
						self:SetChecked(1);
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SlashHelpSortGroup" inherits="UIRadioButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="75" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:SetHitRectInsets(0,-75,0,0)
						getglobal(self:GetName().."Text"):SetText("Group");
					</OnLoad>
					<OnClick>
						SlashHelpSortAlpha:SetChecked(0);
						self:SetChecked(1);
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>

			<CheckButton name="SlashHelpShowChat" inherits="UICheckButtonTemplate">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="50" y="-36"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local txtobj=getglobal(self:GetName().."Text");
						txtobj:SetText("Chat");
						txtobj:SetTextColor(0,0.75,0);

						self:SetChecked(1);
						self:SetHitRectInsets(0,-100,0,0)
					</OnLoad>
					<OnClick>
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SlashHelpShowCmdNormal" inherits="UICheckButtonTemplate">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="50" y="-52"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local txtobj=getglobal(self:GetName().."Text");
						txtobj:SetText("Command (Normal)");
						txtobj:SetTextColor(0.75,0.5,0);

						self:SetChecked(1);
						self:SetHitRectInsets(0,-100,0,0)
					</OnLoad>
					<OnClick>
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SlashHelpShowCmdSecure" inherits="UICheckButtonTemplate">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="50" y="-68"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local txtobj=getglobal(self:GetName().."Text");
						txtobj:SetText("Command (Secure)");
						txtobj:SetTextColor(0.5,0.5,1);

						self:SetChecked(1);
						self:SetHitRectInsets(0,-100,0,0)
					</OnLoad>
					<OnClick>
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SlashHelpShowEmote" inherits="UICheckButtonTemplate">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="50" y="-84"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local txtobj=getglobal(self:GetName().."Text");
						txtobj:SetText("Emote");
						txtobj:SetTextColor(0.75,0,0.5);

						self:SetChecked(1);
						self:SetHitRectInsets(0,-100,0,0)
					</OnLoad>
					<OnClick>
						SlashHelp_LastVal="";
					</OnClick>
				</Scripts>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad>
				SlashHelpOptionsFrameAuthorLogo:SetAlpha(0.125);
				self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
				self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
			</OnLoad>
		</Scripts>
	</Frame>
</Ui>
