<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="GEM_options.lua"/>

              <EditBox name="GEMEditboxConfTemplate" enableMouse="true" autoFocus="false" virtual="true">
                <Size>
                  <AbsDimension x="182" y="22" />
                </Size>
                <Layers>
                  <Layer level="BACKGROUND">
                    <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
                      <Size>
                        <AbsDimension x="8" y="20" />
                      </Size>
                      <Anchors>
                        <Anchor point="LEFT" />
                      </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" />
                      </Anchors>
                      <TexCoords left="0.9375" right="1" 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>this:ClearFocus();</OnEscapePressed>
                </Scripts>
                <FontString font="Fonts\ARIALN.TTF">
                  <FontHeight>
                    <AbsValue val="14" />
                  </FontHeight>
                  <Color r="1" g="1" b="1" />
                  <Shadow>
                    <Color r="0" g="0" b="0" />
                    <Offset>
                      <AbsDimension x="1" y="-1" />
                    </Offset>
                  </Shadow>
                </FontString>
              </EditBox>

  <Button name="GEMConf_ChannelsHeaderTemplate" virtual="true">
  	<Size>
		<AbsDimension x="10" y="16"/>
	</Size>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
				<Size>
					<AbsDimension x="5" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
			</Texture>
			<Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
				<Size>
					<AbsDimension x="53" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
			</Texture>
			<Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
				<Size>
					<AbsDimension x="4" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
			</Texture>
		</Layer>
	</Layers>
	<NormalText inherits="GameFontHighlightSmall">
		<Anchors>
			<Anchor point="LEFT">
				<Offset>
					<AbsDimension x="8" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</NormalText>
  </Button>

  <Button name="GEMConf_ChannelsItemTemplate" virtual="true">
 	<Size>
		<AbsDimension x="400" y="16"/>
	</Size>
	<Layers>
		<Layer level="BORDER">
			<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
				<Size>
					<AbsDimension x="128" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="-1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentPwd" inherits="GameFontNormalSmall" justifyH="LEFT">
				<Size>
					<AbsDimension x="68" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentAlias" inherits="GameFontNormalSmall" justifyH="LEFT">
				<Size>
					<AbsDimension x="88" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentPwd" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentSlash" inherits="GameFontNormalSmall" justifyH="LEFT">
				<Size>
					<AbsDimension x="58" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentAlias" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
	<Frames>
      <CheckButton name="$parentNotify">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="370" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
        <Size>
          <AbsDimension x="16" y="16" />
        </Size>
        <Layers>
          <Layer>
            <FontString name="$parentText" font="Fonts\FRIZQT__.TTF">
              <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT">
                  <Offset>
                    <AbsDimension x="-2" y="0" />
                  </Offset>
                </Anchor>
              </Anchors>
              <FontHeight>
                <AbsValue val="10" />
              </FontHeight>
              <Color r="1" g="0.8196079" b="0" />
              <Shadow>
                <Color r="0" g="0" b="0" />
                <Offset>
                  <AbsDimension x="1" y="-1" />
                </Offset>
              </Shadow>
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
				<OnClick>
					GEM_Config_OnClickNotify(this);
				</OnClick>
        </Scripts>
        <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>
	</Frames>
	<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
		<Size>
			<AbsDimension x="400" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</HighlightTexture>
	<Scripts>
		<OnClick>
			GEM_Config_OnChanSelected(this);
		</OnClick>
	</Scripts>
  </Button>

  <Frame name="GEMOptionsFrame" parent="GEMMainFrame" inherits="GEMTabFrame">
	<Layers>
		<Layer level="BACKGROUND">
			<FontString name="GEMOptionsFrame_IconChoice" inherits="GameFontNormal" justifyH="CENTER" text="GEM_TEXT_OPTIONS_ICONCHOICE">
				<Size>
					<AbsDimension x="220" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="TOP">
						<Offset>
							<AbsDimension x="0" y="-310" />
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
	<Frames>
		<Button name="GEM_Help_ConfigTab_Options" inherits="GEM_HelpTemplate" id="5">
			<Anchors>
				<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="-8" y="10"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Button>

          <Frame name="$parentChannelsList">
            <Size>
              <AbsDimension x="435" y="150" />
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="50" y="5" />
                </Offset>
              </Anchor>
            </Anchors>
            <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
              <BackgroundInsets>
                <AbsInset left="5" right="5" top="5" bottom="5" />
              </BackgroundInsets>
              <TileSize>
                <AbsValue val="16" />
              </TileSize>
              <EdgeSize>
                <AbsValue val="16" />
              </EdgeSize>
            </Backdrop>
            <Frames>
              <Button name="$parentName" inherits="GEMConf_ChannelsHeaderTemplate" text="GEM_TEXT_CHANNEL">
                <Anchors>
                  <Anchor point="TOPLEFT">
                    <Offset>
                      <AbsDimension x="10" y="-10"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                <Scripts>
                  <OnLoad>
                    GEMSetColumnWidth(130);
                  </OnLoad>
                </Scripts>
              </Button>
              <Button name="$parentPwd" inherits="GEMConf_ChannelsHeaderTemplate" text="GEM_TEXT_PASSWORD">
                <Anchors>
                  <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
                    <Offset>
                      <AbsDimension x="0" y="0"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                <Scripts>
                  <OnLoad>
                    GEMSetColumnWidth(70);
                  </OnLoad>
                </Scripts>
              </Button>
              <Button name="$parentAlias" inherits="GEMConf_ChannelsHeaderTemplate" text="GEM_TEXT_ALIAS">
                <Anchors>
                  <Anchor point="LEFT" relativeTo="$parentPwd" relativePoint="RIGHT">
                    <Offset>
                      <AbsDimension x="0" y="0"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                <Scripts>
                  <OnLoad>
                    GEMSetColumnWidth(90);
                  </OnLoad>
                </Scripts>
              </Button>
              <Button name="$parentSlash" inherits="GEMConf_ChannelsHeaderTemplate" text="GEM_TEXT_SLASH">
                <Anchors>
                  <Anchor point="LEFT" relativeTo="$parentAlias" relativePoint="RIGHT">
                    <Offset>
                      <AbsDimension x="0" y="0"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                <Scripts>
                  <OnLoad>
                    GEMSetColumnWidth(60);
                  </OnLoad>
                </Scripts>
              </Button>
              <Button name="$parentNotify" inherits="GEMConf_ChannelsHeaderTemplate" text="GEM_TEXT_SHOW_LOGS">
                <Anchors>
                  <Anchor point="LEFT" relativeTo="$parentSlash" relativePoint="RIGHT">
                    <Offset>
                      <AbsDimension x="0" y="0"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                <Scripts>
                  <OnLoad>
                    GEMSetColumnWidth(50);
                  </OnLoad>
                </Scripts>
              </Button>
              <Button name="$parentItem1" inherits="GEMConf_ChannelsItemTemplate">
                <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
                    <Offset>
                      <AbsDimension x="0" y="-2" />
                    </Offset>
                  </Anchor>
                </Anchors>
              </Button>
              <Button name="$parentItem2" inherits="GEMConf_ChannelsItemTemplate">
                <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
                    <Offset>
                      <AbsDimension x="0" y="0" />
                    </Offset>
                  </Anchor>
                </Anchors>
              </Button>
              <Button name="$parentItem3" inherits="GEMConf_ChannelsItemTemplate">
                <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
                    <Offset>
                      <AbsDimension x="0" y="0" />
                    </Offset>
                  </Anchor>
                </Anchors>
              </Button>
              <Button name="$parentItem4" inherits="GEMConf_ChannelsItemTemplate">
                <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
                    <Offset>
                      <AbsDimension x="0" y="0" />
                    </Offset>
                  </Anchor>
                </Anchors>
              </Button>
              <ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
                      <Size>
                              <AbsDimension x="400" y="64" />
                      </Size>
                      <Anchors>
                              <Anchor point="TOPRIGHT" relativeTo="$parentNotify" relativePoint="BOTTOMRIGHT">
                                      <Offset>
                                              <AbsDimension x="-6" y="-2"/>
                                      </Offset>
                              </Anchor>
                      </Anchors>
                      <Scripts>
                              <OnVerticalScroll>
                                      FauxScrollFrame_OnVerticalScroll(10, GEM_Config_Channels_UpdateList);
                              </OnVerticalScroll>
                      </Scripts>
              </ScrollFrame>
		<EditBox name="$parentAddChannel" letters="40" numeric="false" inherits="GEMEditboxConfTemplate">
			<Size>
				<AbsDimension x="128" y="22"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="10" y="-96"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnTabPressed>
					GEMOptionsFrameChannelsListAddPassword:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		
		<EditBox name="$parentAddPassword" letters="40" numeric="false" inherits="GEMEditboxConfTemplate">
			<Size>
				<AbsDimension x="68" y="22"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentAddChannel" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="2" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnTabPressed>
					GEMOptionsFrameChannelsListAddAlias:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		
		<EditBox name="$parentAddAlias" letters="15" numeric="false" inherits="GEMEditboxConfTemplate">
			<Size>
				<AbsDimension x="88" y="22"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentAddPassword" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="2" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnTabPressed>
					GEMOptionsFrameChannelsListAddSlash:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		
		<EditBox name="$parentAddSlash" letters="10" numeric="false" inherits="GEMEditboxConfTemplate">
			<Size>
				<AbsDimension x="58" y="22"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentAddAlias" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="2" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</EditBox>

		<Button name="$parentAddButton" inherits="UIPanelButtonTemplate" text="GEM_TEXT_BUTTON_CHAN_ADD">
			<Size>
				<AbsDimension x="100" y="21"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="20" y="-120"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Conf_Click_AddChannel();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parentUpdateButton" inherits="UIPanelButtonTemplate" text="GEM_TEXT_BUTTON_CHAN_UPDT">
			<Size>
				<AbsDimension x="100" y="21"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentAddButton" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="10" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Conf_Click_UpdateChannel();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parentRemoveButton" inherits="UIPanelButtonTemplate" text="GEM_TEXT_BUTTON_CHAN_DEL">
			<Size>
				<AbsDimension x="100" y="21"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parentUpdateButton" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="10" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Conf_Click_DelChannel();
				</OnClick>
			</Scripts>
		</Button>
            </Frames>
          </Frame>

		<EditBox name="GEMOptions_Comment" letters="150" numeric="false" inherits="GEMEditBoxTemplate">
			<Size>
				<AbsDimension x="166" y="26"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptionsFrameChannelsList" relativePoint="BOTTOMLEFT">
					<Offset>
						<AbsDimension x="240" y="-5"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">
					<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_COMMENT">
						<Size>
							<AbsDimension x="210" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="-220" y="0" />
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Scripts>
				<OnTabPressed>
					GEMOptions_ChannelBipValue:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		
		<CheckButton name="GEMOptions_ChannelBip" inherits="OptionsCheckButtonTemplate">
			<Size>
				<AbsDimension x="26" y="26"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Comment" relativePoint="BOTTOMLEFT">
					<Offset>
						<AbsDimension x="-10" y="-4"/>
					</Offset>
				</Anchor>
			</Anchors>
			<HitRectInsets>
				<AbsInset left="0" right="0" top="0" bottom="0"/>
			</HitRectInsets>
			<Layers>
				<Layer level="BACKGROUND">
					<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_BIP_CHANNEL">
						<Size>
							<AbsDimension x="210" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="-210" y="3" />
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Scripts>
				<OnClick>
					GEM_Events.realms[GEM_Realm].my_names[GEM_PlayerName].BipOnChannelValue = GEMOptions_ChannelBipValue:GetText();
					GEMOptions_SetBipBoxState();
				</OnClick>
			</Scripts>
		</CheckButton>

		<EditBox name="GEMOptions_ChannelBipValue" letters="150" numeric="false" inherits="GEMEditBoxTemplate">
			<Size>
				<AbsDimension x="140" y="26"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_ChannelBip" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="10" y="2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnTabPressed>
					GEMOptions_DateFormat:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		
		<Frame name="GEMOptions_GeneralGroup">
			<Size>
				<AbsDimension x="450" y="105"/>
			</Size>			
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_ChannelBip" relativePoint="TOPLEFT">
					<Offset>
						<AbsDimension x="-230" y="-16"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Frames>
				<EditBox name="GEMOptions_DateFormat" letters="40" numeric="false" inherits="GEMEditBoxTemplate">
					<Size>
						<AbsDimension x="166" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="240" y="-10"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Layers>
						<Layer level="BACKGROUND">
							<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_DATE_FORMAT">
								<Size>
									<AbsDimension x="210" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT">
										<Offset>
											<AbsDimension x="-220" y="0" />
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
				</EditBox>
				
				<CheckButton name="GEMOptions_DateUseServer" inherits="OptionsCheckButtonTemplate">
					<Size>
						<AbsDimension x="26" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="GEMOptions_DateFormat" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="-10" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<HitRectInsets>
						<AbsInset left="0" right="0" top="0" bottom="0"/>
					</HitRectInsets>
					<Layers>
						<Layer level="BACKGROUND">
							<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_DATE_USE_SERVER">
								<Size>
									<AbsDimension x="210" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT">
										<Offset>
											<AbsDimension x="-210" y="3" />
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
				</CheckButton>
				<CheckButton name="GEMOptions_FilterEvents" inherits="OptionsCheckButtonTemplate">
					<Size>
						<AbsDimension x="26" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="GEMOptions_DateUseServer" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
					<HitRectInsets>
						<AbsInset left="0" right="0" top="0" bottom="0"/>
					</HitRectInsets>
					<Layers>
						<Layer level="BACKGROUND">
							<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_FILTER_EVENTS">
								<Size>
									<AbsDimension x="210" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT">
										<Offset>
											<AbsDimension x="-210" y="3" />
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
				</CheckButton>			
				<CheckButton name="GEMOptions_FilterChannel" inherits="OptionsCheckButtonTemplate">
					<Size>
						<AbsDimension x="26" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="GEMOptions_FilterEvents" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
					<HitRectInsets>
						<AbsInset left="0" right="0" top="0" bottom="0"/>
					</HitRectInsets>
					<Layers>
						<Layer level="BACKGROUND">
							<FontString name="$parentName" inherits="GameFontHighlightSmall" justifyH="LEFT" text="GEM_TEXT_FILTER_CHANNEL">
								<Size>
									<AbsDimension x="210" y="16"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT">
										<Offset>
											<AbsDimension x="-210" y="3" />
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
				</CheckButton>			
			</Frames>
		</Frame>
		
		<Slider name="GEM_MinimapArcSlider"  inherits="OptionsSliderTemplate">
	    		<Size>
				<AbsDimension x="230" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptionsFrame" relativePoint="TOPLEFT">
					<Offset>
						<AbsDimension x="20" y="-420"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."Text"):SetText(GEM_TEXT_ICON.." - "..GEM_TEXT_ICON_ADJUST_ANGLE);
					getglobal(this:GetName().."High"):SetText("360");
					getglobal(this:GetName().."Low"):SetText("0");
					this:SetMinMaxValues(0,360);
					this:SetValueStep(1);
				</OnLoad>
				<OnValueChanged>
					GEM_Events.MinimapArcOffset = this:GetValue();
					GEMMinimapButton_Update();								
				</OnValueChanged>
			</Scripts>
		</Slider>
		
		<Slider name="GEM_MinimapRadiusSlider"  inherits="OptionsSliderTemplate">
			<Size>
				<AbsDimension x="230" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEM_MinimapArcSlider" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="10" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."Text"):SetText(GEM_TEXT_ICON.." - "..GEM_TEXT_ICON_ADJUST_RADIUS);
					getglobal(this:GetName().."High"):SetText("150");
					getglobal(this:GetName().."Low"):SetText("0");
					this:SetMinMaxValues(0,150);
					this:SetValueStep(1);
				</OnLoad>
				<OnValueChanged>
					GEM_Events.MinimapRadiusOffset = this:GetValue();
					GEMMinimapButton_Update();								
				</OnValueChanged>
			</Scripts>
		</Slider>

		<Button name="GEMOptions_Icon1">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptionsFrame_IconChoice" relativePoint="CENTER">
					<Offset>
						<AbsDimension x="-177" y="-10"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "Spell_Nature_TimeStop";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\Spell_Nature_TimeStop"/>
		</Button>

		<Button name="GEMOptions_Icon2">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon1" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_PocketWatch_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_PocketWatch_01"/>
		</Button>

		<Button name="GEMOptions_Icon3">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon2" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_PocketWatch_02";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_PocketWatch_02"/>
		</Button>

		<Button name="GEMOptions_Icon4">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon3" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_Bell_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_Bell_01"/>
		</Button>

		<Button name="GEMOptions_Icon5">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon4" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Feather_12";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Feather_12"/>
		</Button>

		<Button name="GEMOptions_Icon6">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon5" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_Orb_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_Orb_01"/>
		</Button>

		<Button name="GEMOptions_Icon7">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon6" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Helmet_24";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Helmet_24"/>
		</Button>

		<Button name="GEMOptions_Icon8">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon7" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_TheGoldenCheep";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_TheGoldenCheep"/>
		</Button>

		<Button name="GEMOptions_Icon9">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon8" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "Spell_Magic_PolymorphChicken";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\Spell_Magic_PolymorphChicken"/>
		</Button>

		<Button name="GEMOptions_Icon10">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon9" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_Rune_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_Rune_01"/>
		</Button>

		<Button name="GEMOptions_Icon11">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon1" relativePoint="BOTTOMLEFT">
					<Offset>
						<AbsDimension x="0" y="-5"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Misc_Rune_05";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Misc_Rune_05"/>
		</Button>

		<Button name="GEMOptions_Icon12">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon11" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "Spell_Frost_WindWalkOn";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\Spell_Frost_WindWalkOn"/>
		</Button>

		<Button name="GEMOptions_Icon13">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon12" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "Spell_Nature_AstralRecalGroup";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\Spell_Nature_AstralRecalGroup"/>
		</Button>

		<Button name="GEMOptions_Icon14">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon13" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Jewelry_Amulet_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Jewelry_Amulet_01"/>
		</Button>

		<Button name="GEMOptions_Icon15">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon14" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Jewelry_Amulet_02";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Jewelry_Amulet_02"/>
		</Button>

		<Button name="GEMOptions_Icon16">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon15" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Jewelry_Amulet_03";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Jewelry_Amulet_03"/>
		</Button>

		<Button name="GEMOptions_Icon17">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon16" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Cask_04";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Cask_04"/>
		</Button>

		<Button name="GEMOptions_Icon18">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon17" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Drink_01";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Drink_01"/>
		</Button>

		<Button name="GEMOptions_Icon19">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon18" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Drink_03";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Drink_03"/>
		</Button>

		<Button name="GEMOptions_Icon20">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="GEMOptions_Icon19" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="5" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEM_Events.MinimapTexture = "INV_Drink_05";
					GEMMinimapButton_Update();
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Icons\INV_Drink_05"/>
		</Button>

		<Button name="GEMOptions_Validate" inherits="UIPanelButtonTemplate" text="GEM_TEXT_VALIDATE">
			<Size>
				<AbsDimension x="100" y="21"/>
			</Size>
			<Anchors>
				<Anchor point="BOTTOMRIGHT" relativeTo="GEMOptionsFrame" relativePoint="BOTTOMRIGHT">
					<Offset>
						<AbsDimension x="-7" y="-40"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					GEMOptions_Click_Validate();
				</OnClick>
			</Scripts>
		</Button>
		
	</Frames>
	<Scripts>
		<OnShow>
			GEMOptions_OnShow();
		</OnShow>
	</Scripts>
  </Frame>
</Ui>