<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="ChannelFilter.lua"/>

	<Button name="ChannelFilterWordButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="200" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontNormal" text="">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="4" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnClick>
				ChannelFilterWordButton_OnClick(self, button);
				PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>

	<Button name="ChannelFilterOrderWordButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="200" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontNormal" text="">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="4" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnClick>
				ChannelFilterOrderWordButton_OnClick(self, button);
				PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>

	<Button name="ChannelFilterMuteButton" frameStrata="LOW" parent="ChatFrame1" hidden="true">
		<Size>
			<AbsDimension x="22" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="ChatFrame1" relativePoint="TOPRIGHT">
				<AbsDimension x="-23" y="3"/>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BORDER">
				<Texture  file="Interface\AddOns\BigFoot\Media\normal-up.tga" >
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentMute" file="Interface\AddOns\BigFoot\Media\mute.tga" setAllPoints="true" hidden="true">
					<Size>
						<AbsDimension x="20" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				PlaySound(SOUNDKIT.IG_CHAT_EMOTE_BUTTON);
				ChannelFilterMuteButton_OnClick();
			</OnClick>
			<OnEnter>
				BigFoot_ShowNewbieTooltip(CHANNEL_FILTER_MUTE_LABEL, CHANNEL_FILTER_MUTE_DESC);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
	</Button>

	<Frame name="ChannelFilterOptionFrame" toplevel="true" hidden="true">
		<Size>
			<AbsDimension x="256" y="256"/>
		</Size>
		<Frames>
			<CheckButton name="ChannelFilterEnable" inherits="ModOptionCheckButtonTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterOptionFrame">
						<Offset>
							<AbsDimension x="3" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterEnable_OnClick(self);
					</OnClick>
				</Scripts>
			</CheckButton>

			<CheckButton name="ChannelFilterBanCheckButton" inherits="ModOptionCheckButtonTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterEnable">
						<Offset>
							<AbsDimension x="25" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						ChannelFilterButton_OnEnter(self);
					</OnEnter>
					<OnClick>
						ChannelFilterBanCheckButton_OnClick(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<Button name="ChannelFilterWordButton1" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterBanCheckButton">
						<Offset>
							<AbsDimension x="10" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton2" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton1" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<!--
			<Button name="ChannelFilterWordButton3" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton2" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton4" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton3" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton5" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton4" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton6" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton5" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton7" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton6" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ChannelFilterWordButton8" inherits="ChannelFilterWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="ChannelFilterWordButton7" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			-->
			<ScrollFrame name="ChannelFilterScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="30" y="55"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="ChannelFilterOptionFrame">
						<Offset>
							<AbsDimension x="-30" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(self, offset, 16, ChannelFilterList_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			<Button name="ChannelFilterAddButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_ADD_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="ChannelFilterOptionFrame">
						<Offset>
							<AbsDimension x="40" y="153"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterAddButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ChannelFilterRemoveButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_REMOVE_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="ChannelFilterAddButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterRemoveButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ChannelFilterResetButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_REST_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="ChannelFilterRemoveButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterResetButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>

			<CheckButton name="ChannelFilterOrderCheckButton" inherits="ModOptionCheckButtonTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterAddButton">
						<Offset>
							<AbsDimension x="-15" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						ChannelFilterButton_OnEnter(self);
					</OnEnter>
					<OnClick>
						ChannelFilterOrderCheckButton_OnClick(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<Button name="BFIsOrderWordButton1" inherits="ChannelFilterOrderWordButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterOrderCheckButton">
						<Offset>
							<AbsDimension x="10" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="BFIsOrderWordButton2" inherits="ChannelFilterOrderWordButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="BFIsOrderWordButton1" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<ScrollFrame name="ChannelFilterOrderScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="30" y="55"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="ChannelFilterOptionFrame">
						<Offset>
							<AbsDimension x="-30" y="-112"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(self, offset, 16, ChannelFilterList_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			<Button name="ChannelFilterOrderAddButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_ADD_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="ChannelFilterOptionFrame">
						<Offset>
							<AbsDimension x="40" y="70"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterOrderAddButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ChannelFilterOrderRemoveButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_REMOVE_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="ChannelFilterOrderAddButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterOrderRemoveButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ChannelFilterOrderResetButton" inherits="UIPanelButtonTemplate" text="CHANNEL_FILTER_REST_TEXT">
				<Size>
					<AbsDimension x="55" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="ChannelFilterOrderRemoveButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ChannelFilterOrderResetButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>

			<CheckButton name="ChannelFilterLevelCheckButton" inherits="ModOptionCheckButtonTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterOrderAddButton">
						<Offset>
							<AbsDimension x="-15" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						ChannelFilterButton_OnEnter(self);
					</OnEnter>
					<OnClick>
						ChannelFilterLevelCheckButton_OnClick(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<Frame name="ChannelFilterLevelSpinBox">
				<Size>
					<AbsDimension x="200" y="27"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ChannelFilterLevelCheckButton">
						<Offset>
							<AbsDimension x="10" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="LEFT">
							<Size x="80" y="24"/>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="5" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1" g="0.82" b="0" />
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentPrevButton">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								ChannelFilterLevelSpinBoxPrevButton_OnClick(self)
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
					<EditBox name="$parentEditBox" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
						<Size x="70" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentPrevButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow function="ChannelFilterLevelSpinBoxEditBox_OnShow"/>
							<OnTextChanged function="ChannelFilterLevelSpinBoxEditBox_OnTextChange"/>
							<OnEscapePressed function="EditBox_ClearFocus"/>
						</Scripts>
						<FontString inherits="ChatFontNormal" justifyH="CENTER"/>
					</EditBox>
					<Button name="$parentNextButton">
						<Size>
							<AbsDimension x="20" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentEditBox" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								ChannelFilterLevelSpinBoxNextButton_OnClick(self)
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				ChannelFilterOptionFrame_OnShow(self);
			</OnShow>
			<OnHide>
				ChannelFilterOptionFrame_OnHide(self);
			</OnHide>
		</Scripts>
	</Frame>

	<Frame name="ChannelFilterFrame">
		<Scripts>
			<OnLoad>
				ChannelFilter_OnLoad(self);
			</OnLoad>
			<OnEvent>
				ChannelFilter_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>

</Ui>
