<!-- Options.xml -->
<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">

<Frame name="GoldCounterOptionsPanel" parent="UIParent" toplevel="true" enableMouse="true" enableKeyboard="true" movable="true"
	hidden="true" clampedToScreen="true" frameStrata="FULLSCREEN">

        <Size> <AbsDimension x="695" y="630" /> </Size>
		<Anchors> <Anchor point="CENTER"/> </Anchors>

		<Scripts>
			<OnLoad>
				self:RegisterForDrag( "LeftButton" )
			</OnLoad>
			<OnShow>
				self:ClearAllPoints()
				self:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
				PlaySound( SOUNDKIT.IG_MAINMENU_OPEN )
			</OnShow>
			<OnHide>
				PlaySound( SOUNDKIT.IG_MAINMENU_CLOSE )
			</OnHide>
			<OnDragStart>
				if not self.isLocked then
					self:StartMoving()
				end
			</OnDragStart>
			<OnDragStop>
				self:StopMovingOrSizing()
			</OnDragStop>
			<OnKeyDown>
				if key == "ESCAPE" then self:Hide() end
			</OnKeyDown>
		</Scripts>

		<Layers>

			<Layer level="BACKGROUND">
				<Texture atlas="Capacitance-Blacksmithing-BG" horizTile="false" vertTile="false">
					<Size x="695" y="630"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture atlas="AftLevelup-GlowLine" horizTile="false" vertTile="false">
					<Size x="400" y="20" />
						<Anchors>
							<Anchor point="TOP" x="0" y=""/>
						</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture atlas="UI-Character-Info-Title" horizTile="false" vertTile="false">
					<Size x="230" y="51" />
					<Anchors>
						<Anchor point="TOP" x="0" y="15"/>
					</Anchors>
				</Texture>
			</Layer>

			<Layer level="OVERLAY">

				<!-- Title text -->
				<FontString name="GC_OptionsNameTitle" inherits="Fancy18Font">
					<Anchors>
						<Anchor point="TOP" x="0" y="-1" />
					</Anchors>
					<Color r="1.0" g="0.82" b="0" a="1"/>
				</FontString>

				<!-- Scaling Option text -->
				<FontString name="GC_Option_ScaleText" inherits="QuestFont_Shadow_Huge">
					<Anchors>
						<Anchor point="TOPLEFT" x="30" y="-48" />
					</Anchors>
				</FontString>

				<!-- Counter's font text -->
				<FontString name="GC_Option_FontText" inherits="QuestFont_Shadow_Huge">
					<Anchors>
						<Anchor point="TOPLEFT" x="384" y="-48" />
					</Anchors>
				</FontString>

				<!-- Choose Thousands Separator Option text -->
				<FontString name="GC_Option_ThouSeparatorText" inherits="Fancy16Font">
					<Anchors>
						<Anchor point="TOPLEFT" x="30" y="-280" />
					</Anchors>
				</FontString>

				<!-- Choose Date Format Option text -->
				<FontString name="GC_Option_DateFormatText" inherits="Fancy16Font">
					<Anchors>
						<Anchor point="TOPLEFT" x="360" y="-280" />
					</Anchors>
				</FontString>

				<!-- History button Option text -->
				<FontString name="GC_Option_HistoryText" inherits="QuestFont_Shadow_Huge">
					<Anchors>
						<Anchor point="TOPLEFT" x="30" y="-324" />
					</Anchors>
				</FontString>

				<!-- Clear Database button Option text -->
				<FontString name="GC_Option_ClearDatabaseText" inherits="QuestFont_Shadow_Huge">
					<Anchors>
						<Anchor point="TOPLEFT" x="30" y="-414" />
					</Anchors>
				</FontString>

				<!-- Save - Load Option text -->
				<FontString name="GC_Option_ProfileText" inherits="QuestFont_Shadow_Huge">
					<Anchors>
						<Anchor point="TOPLEFT" x="30" y="-494" />
					</Anchors>
				</FontString>

			</Layer>

		</Layers>

		<Frames>

			<!-- Scaling Slider Bar -->
			<Slider name="GC_Options_ScalingSlider" inherits="MinimalSliderTemplate"
						drawLayer="OVERLAY" orientation="HORIZONTAL"
						minValue="0.5" maxValue="4" defaultValue="1" valueStep="0.25">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GC_Option_ScaleText" x="16" y="-32" />
				</Anchors>
				<Size x="180" y="18" />

				<Layers>
					<Layer>

						<!-- ShowMin Value -->
						<FontString name="$parentMinValue" inherits="QuestFont_Shadow_Small" text="0.5">
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="-8" y="-14" />
							</Anchors>
						</FontString>
						<!-- ShowMax Value -->
						<FontString name="$parentMaxValue" inherits="QuestFont_Shadow_Small" text="4">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" x="0" y="-14" />
							</Anchors>
						</FontString>
						<!-- Current Value -->
						<FontString name="GC_Scale_CurrentValue" inherits="ChatBubbleFont">
							<Anchors>
								<Anchor point="CENTER" x="0" y="-16" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnEnter> <!-- Sliders Tooltips not working in Classic - Do custom -->
						GoldCounter_Custom_Tooltip:SetOwner( _G["GC_Options_ScalingSlider"], "ANCHOR_TOP" )
						GoldCounter_Custom_Tooltip:ClearLines()

						GoldCounter_Custom_TooltipTextLeft1:SetFontObject(GameTooltipTextSmall)
						GoldCounter_Custom_Tooltip:SetText( GC_Locale_Text.OPTIONSPANELTXT_SCALE_TOOLTIP, nil, nil, nil, nil, true )
						GoldCounter_Custom_Tooltip:Show()
					</OnEnter>

					<OnLeave>
						GoldCounter_Custom_Tooltip:Hide()
					</OnLeave>

					<OnValueChanged>
						GC_Scale_CurrentValue:SetText( value )
						GoldCounter_MainFrame:SetScale( value )

						My_GC_Settings_Local.Scale = value

					</OnValueChanged>
				</Scripts>

			</Slider>

			<!--- Check button translucent mode -->
			<CheckButton name="GC_Options_CheckButton1" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPLEFT" x="30" y="-128" />
				</Anchors>
				<Size x="32" y="32" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Options_CheckButton1" x="32" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.TransView = true
							GC_ChangeViewMode( IsChecked ) -- Sound On
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.TransView = false
							GC_ChangeViewMode( IsChecked ) -- Sound Off
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
				</Scripts>

			</CheckButton>

			<!--- Check button Show Gold Only -->
			<CheckButton name="GC_Options_CheckButton2" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPLEFT" x="30" y="-156" />
				</Anchors>
				<Size x="32" y="32" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Options_CheckButton2" x="32" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.ShowGoldOnly = true
							GC_ShowOnlyGold( IsChecked )
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.ShowGoldOnly = false
							GC_ShowOnlyGold( IsChecked )
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
				</Scripts>

			</CheckButton>

			<!--- Check button Use Shift To Drag -->
			<CheckButton name="GC_Options_CheckButton3" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPLEFT" x="30" y="-184" />
				</Anchors>
				<Size x="32" y="32" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Options_CheckButton3" x="32" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.UseShiftToDrag = true
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.UseShiftToDrag = false
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
				</Scripts>

			</CheckButton>

			<!--- Check button Daily Reset -->
			<CheckButton name="GC_Options_CheckButton4" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPLEFT" x="30" y="-212" />
				</Anchors>
				<Size x="32" y="32" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Options_CheckButton4" x="32" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.DailyReset = true
							My_GC_Settings_Local.LastResetDate = tonumber( date("%y%m%d") )
							
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.DailyReset = false
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
				</Scripts>

			</CheckButton>

			<!--- Check button Hide in Combat -->
			<CheckButton name="GC_Options_CheckButton5" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPLEFT" x="30" y="-240" />
				</Anchors>
				<Size x="32" y="32" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Options_CheckButton5" x="32" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.HideInCombat = true
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.HideInCombat = false
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
				</Scripts>

			</CheckButton>

			<!--- Clear history button -->
			<Button name="GC_Options_ClearHistoryButton" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GC_Option_HistoryText" x="0" y="-40" />
				</Anchors>
				<Size x="96" y="32" />
			<Scripts>
				<OnClick>
					GC_ClearHistory()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Check button Minimap Button -->
			<CheckButton name="GC_Options_MinimapButton" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor point="TOPRIGHT" x="-35" y="-330" />
				</Anchors>
				<Size x="40" y="40" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="Fancy16Font">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="GC_Options_MinimapButton" x="-44" y="2" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.MinimapButtonUse = true
							GC_Icon:Show("GOLDCOUNTER")
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.MinimapButtonUse = false
							GC_Icon:Hide("GOLDCOUNTER")
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
					<OnEnter>
						GoldCounter_Custom_Tooltip:SetOwner(self, "ANCHOR_RIGHT")
						GoldCounter_Custom_TooltipTextLeft1:SetFontObject( GameTooltipHeader )
						GoldCounter_Custom_Tooltip:SetText(GC_Locale_Text.OPTIONSPANELTXT_MINIBUTTON, 1, 1, 1)
						GoldCounter_Custom_TooltipTextLeft2:SetFontObject( GameTooltipText )
						GoldCounter_Custom_Tooltip:AddLine(GC_Locale_Text.TOOLTIP_CHECKMINIMAP_TIP, nil, nil, nil, true)
						GoldCounter_Custom_Tooltip:Show()
					</OnEnter>
					<OnLeave>
						GoldCounter_Custom_Tooltip:Hide()
					</OnLeave>
				</Scripts>

			</CheckButton>

			<!--- Check button Lights Effects -->
			<CheckButton name="GC_Options_ButtonsFlash" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor relativeTo="GC_Options_MinimapButton" point="TOPLEFT" x="0" y="-40" />
				</Anchors>
				<Size x="40" y="40" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="Fancy16Font">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="GC_Options_ButtonsFlash" x="-44" y="2" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.IconsFlash = true
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )

							GC_CheckResting()
							GC_CheckFighting()
						else
							My_GC_Settings_Local.IconsFlash = false
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )

							StopLoop1()
							StopLoop2()
						end
					</OnClick>
					<OnEnter>
						GoldCounter_Custom_Tooltip:SetOwner(self, "ANCHOR_RIGHT")
						GoldCounter_Custom_TooltipTextLeft1:SetFontObject( GameTooltipHeader )
						GoldCounter_Custom_Tooltip:SetText(GC_Locale_Text.OPTIONSPANELTXT_FLASHICONS, 1, 1, 1)
						GoldCounter_Custom_TooltipTextLeft2:SetFontObject( GameTooltipText )
						GoldCounter_Custom_Tooltip:AddLine(GC_Locale_Text.TOOLTIP_CHECKLFX_TIP, nil, nil, nil, true)
						GoldCounter_Custom_Tooltip:Show()
					</OnEnter>
					<OnLeave>
						GoldCounter_Custom_Tooltip:Hide()
					</OnLeave>
				</Scripts>

			</CheckButton>

			<!--- Check button Bank Check -->
			<CheckButton name="GC_Options_CheckBank" inherits="ChatConfigCheckButtonTemplate" checked="false">

				<Anchors>
					<Anchor relativeTo="GC_Options_ButtonsFlash" point="TOPLEFT" x="0" y="-40" />
				</Anchors>
				<Size x="40" y="40" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="Fancy16Font">
							<Anchors>
								<Anchor point="RIGHT" relativeTo="GC_Options_CheckBank" x="-44" y="2" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						local IsChecked = self:GetChecked()

						if ( IsChecked ) then
							My_GC_Settings_Local.CheckBank = true
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
						else
							My_GC_Settings_Local.CheckBank = false
							PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF )
						end
					</OnClick>
					<OnEnter>
						GoldCounter_Custom_Tooltip:SetOwner(self, "ANCHOR_RIGHT")
						GoldCounter_Custom_TooltipTextLeft1:SetFontObject( GameTooltipHeader )
						GoldCounter_Custom_Tooltip:SetText(GC_Locale_Text.OPTIONSPANELTXT_CHECKBANK, 1, 1, 1)
						GoldCounter_Custom_TooltipTextLeft2:SetFontObject( GameTooltipText )
						GoldCounter_Custom_Tooltip:AddLine(GC_Locale_Text.TOOLTIP_CHECKBANK_TIP, nil, nil, nil, true)
						GoldCounter_Custom_Tooltip:Show()
					</OnEnter>
					<OnLeave>
						GoldCounter_Custom_Tooltip:Hide()
					</OnLeave>
				</Scripts>

			</CheckButton>

			<!--- Edit Box for History list lenght -->
			<EditBox name="GC_HistListRec_Len" inherits="InputBoxTemplate" numeric="true" letters="2" parentKey="EditBox"
				font="ChatFontNormal" autoFocus="false">
				<Anchors>
				<Anchor point="LEFT" relativeTo="GC_Options_ClearHistoryButton" x="320" y="0" />
				</Anchors>
				<Size x="32" y="16" />
				<Layers>
					<Layer>
					<!-- Show Option Text -->
					<FontString name="$parentDefText" inherits="FriendsFont_Large">
						<Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="GC_HistListRec_Len" x="-20" y="0" />
						</Anchors>
					</FontString>
					<!-- Show Min-Max values -->
					<FontString name="$parentDefText2" inherits="FriendsFont_Large" text="Test">
						<Anchors>
							<Anchor point="LEFT" relativePoint="LEFT" relativeTo="GC_HistListRec_Len" x="-16" y="-22" />
						</Anchors>
					</FontString>

					</Layer>
				</Layers>

			<Scripts>
				<OnEscapePressed>
					self:SetNumber( My_GC_Settings_Local.MaxHistoryRec )
					self:ClearFocus()
				</OnEscapePressed>
				<OnEditFocusLost>
					self:SetNumber( My_GC_Settings_Local.MaxHistoryRec )
					self:ClearFocus()
				</OnEditFocusLost>
				<OnKeyDown>
					local num = self:GetNumber()
					if key == "UP" then
						num = GC_CheckHistLen( num, 1 )
						self:SetNumber( num )
					elseif key == "DOWN" then
						num = GC_CheckHistLen( num, -1 )
						self:SetNumber( num )
					end
				</OnKeyDown>
				<OnEnterPressed>
					local num = self:GetNumber()
						num = GC_CheckHistLen( num, 0 )
						self:SetNumber( num )
						self:ClearFocus()
				</OnEnterPressed>
			</Scripts>
			</EditBox>

			<!--- Clear selected character from database button -->
			<Button name="GC_Options_ClearDB_Button" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GC_Option_ClearDatabaseText" x="0" y="-36" />
				</Anchors>
				<Size x="96" y="32" />
			<Scripts>
				<OnClick>
					GC_ClearSelectCharDB()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Profile SAVE button -->
			<Button name="GC_Options_ProfileSave_Button" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GC_Option_ProfileText" x="0" y="-40" />
				</Anchors>
				<Size x="96" y="32" />
			<Scripts>
				<OnClick>
					GC_SaveProfile()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Profile LOAD button -->
			<Button name="GC_Options_ProfileLoad_Button" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GC_Option_ProfileText" x="100" y="-40" />
				</Anchors>
				<Size x="96" y="32" />
			<Scripts>
				<OnClick>
				GC_LoadProfile()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Profile DELETE button -->
			<Button name="GC_Options_ProfileDelete_Button" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="GC_Options_ProfileSave_Button" x="0" y="-30" />
				</Anchors>
				<Size x="197" y="32" />
			<Scripts>
				<OnClick>
				GC_ClearProfile()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Radio button Profile 1 -->
			<CheckButton name="GC_Profile1_Button" inherits="UIRadioButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Options_ProfileLoad_Button" x="40" y="0" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile1_Button" x="18" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 1

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Radio button Profile 2 -->
			<CheckButton name="GC_Profile2_Button" inherits="UIRadioButtonTemplate" checked="false">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Profile1_Button" x="150" y="0" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile2_Button" x="18" y="0" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 2

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Radio button Profile 3 -->
			<CheckButton name="GC_Profile3_Button" inherits="UIRadioButtonTemplate" checked="false">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Profile2_Button" x="150" y="0" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile3_Button" x="18" y="0" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 3

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Radio button Profile 4 -->
			<CheckButton name="GC_Profile4_Button" inherits="UIRadioButtonTemplate" checked="false">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Profile1_Button" x="0" y="-30" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile4_Button" x="18" y="0" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 4

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Radio button Profile 5 -->
			<CheckButton name="GC_Profile5_Button" inherits="UIRadioButtonTemplate" checked="false">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Profile2_Button" x="0" y="-30" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile5_Button" x="18" y="0" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 5

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Radio button Profile 6 -->
			<CheckButton name="GC_Profile6_Button" inherits="UIRadioButtonTemplate" checked="false">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="GC_Profile3_Button" x="0" y="-30" />
				</Anchors>
				<Size x="16" y="16" />

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="$parentDefText" inherits="FriendsFont_Large">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Profile6_Button" x="18" y="0" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>
					<OnClick>
						GC_ProfileButtonChecked = 6

						for i = 1, 6, 1 do

							if ( i ~= GC_ProfileButtonChecked ) then
								_G["GC_Profile"..i.."_Button"]:SetChecked( false )
							else
								self:SetChecked( true )
							end
						end
						PlaySound( SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON )
					</OnClick>
				</Scripts>
			</CheckButton>

			<!--- Close button -->
			<Button name="GC_Options_CloseButton1" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" x="260" y="5" />
				</Anchors>
				<Size x="96" y="32" />
			<Scripts>
				<OnClick>
					GoldCounterOptionsPanel:Hide()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Close button Cross -->
			<Button name="GC_Options_CloseButton2" inherits="UIPanelButtonTemplate">
				<Size x="28" y="28" />
				<Anchors>
					<Anchor point="TOPRIGHT" x="-20" y="-20" />
				</Anchors>
			<NormalTexture file="Interface\AddOns\GoldCounter\Icons\Icon_CrossUp.tga" />
			<PushedTexture file="Interface\AddOns\GoldCounter\Icons\Icon_CrossDown.tga" />

			<HighlightTexture file="Interface\AddOns\GoldCounter\Icons\Icon_HighLight.tga" alphaMode="ADD">
				<Size x="28" y="28"/>
				<Anchors>
					<Anchor point="CENTER" x="0" y="0"/>
				</Anchors>
			</HighlightTexture>

			<Scripts>
				<OnClick>
					GoldCounterOptionsPanel:Hide()
				</OnClick>
			</Scripts>
			</Button>

			<!--- Reset Default button -->
			<Button name="GC_Options_ResetDefaultsButton1" inherits="UIPanelButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="GC_Options_CloseButton1" relativePoint="BOTTOM" x="-136" y="0" />
				</Anchors>
				<Size x="130" y="32" />
			<Scripts>
				<OnClick>
					GoldCounter_WarnDialog:Show()
				</OnClick>
			</Scripts>
			</Button>

		</Frames>

</Frame>

</Ui>
