<!-- GoldCounter.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">

<GameTooltip name="GoldCounter_Custom_Tooltip"	inherits="GameTooltipTemplate" />
<GameTooltip name="GC_MinimapButtonTooltip"		inherits="GameTooltipTemplate" />

<Frame name="GoldCounter_MainFrame" parent="UIParent" inherits="BackdropTemplate" toplevel="true" enableMouse="true" movable="true" clampedToScreen="true" frameStrata="MEDIUM">

        <Size> <AbsDimension x="220" y="32" /> </Size>
		<Anchors> <Anchor point="CENTER"/> </Anchors>

		<Scripts>
			<OnLoad>
				self:RegisterForDrag( "LeftButton" )
				GoldCounter_OnLoad()
			</OnLoad>
			<OnEvent>
				GoldCounter_OnEvent(self, event, ...)
			</OnEvent>
			<OnDragStart>
				if not self.isLocked then
					if My_GC_Settings_Local.UseShiftToDrag == true then
						if IsShiftKeyDown() then self:StartMoving() end
					else
						self:StartMoving()
					end
				end
			</OnDragStart>
			<OnDragStop>
				self:StopMovingOrSizing()
			</OnDragStop>
			<OnMouseDown>
				if button=="RightButton" then XML_Actions( 1 ) end
			</OnMouseDown>
			<OnEnter>
				if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
				 	GC_MinViewShowAllSetTooltip()
					GoldCounter_Custom_Tooltip:Show()
				end
			</OnEnter>
			<OnLeave>
				if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
					GoldCounter_Custom_Tooltip:Hide()
				end
			</OnLeave>
		</Scripts>

		<Frames>

				<!-- Infos Character Button -->
				<Button name="GC_InfoCardButton">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativePoint="LEFT" x="0" y="0" /> <!-- Pos set by ChangeViewMode -->
					</Anchors>
					<NormalTexture  file="Interface\common\help-i">
						<Size x="24" y="24"/>
						<Anchors>
							<Anchor point="CENTER" x="0" y="0"/>
						</Anchors>
					</NormalTexture>
					<HighlightTexture atlas="GarrLanding-CircleGlow" alphaMode="ADD">
						<Size x="21" y="21"/>
						<Anchors>
							<Anchor point="CENTER" x="0" y="0"/>
						</Anchors>
					</HighlightTexture>
					<Scripts>
						<OnEnter>
							GoldCounter_CharCard:Show()
						</OnEnter>
						<OnLeave>
							GoldCounter_CharCard:Hide()
						</OnLeave>
					</Scripts>
				</Button>
				
				<!-- Reset Button --> 
				<Button name="GC_ResetButton">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativePoint="RIGHT" x="-21" />
					</Anchors>
					<NormalTexture file="Interface\AddOns\GoldCounter\Icons\Icon_ResetUp" />
					<PushedTexture file="Interface\AddOns\GoldCounter\Icons\Icon_ResetDown" />
					<DisabledTexture file="Interface\AddOns\GoldCounter\Icons\Icon_ResetDisabled" />

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

					<Scripts>
						<OnLoad>
							self:RegisterForClicks( "LeftButtonUp", "RightButtonUp", "MiddleButtonUp" )
						</OnLoad>
						<OnClick>
							if MySavedMoney ~= 0 then
								GoldCounter_Custom_Tooltip:Hide()
								GoldCounter_Reset() 
								GoldCounter_Custom_Tooltip:Show()
							end
						</OnClick>
						<OnEnter>
							GoldCounter_SetHistoryList()
							GoldCounter_Custom_Tooltip:Show()
						</OnEnter>
						<OnLeave>
							GoldCounter_Custom_Tooltip:Hide()
						</OnLeave>
					</Scripts>
				</Button>

				<!-- Info Panel -->
				<Button name="GC_InfosAssetsButton">
					<Size> <AbsDimension x="16" y="16"/> </Size>
					<Anchors> <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0" relativeTo="GC_ResetButton" /> </Anchors>

					<NormalTexture atlas="banker" />
					<PushedTexture atlas="banker">
						<Anchors>
							<Anchor point="TOPLEFT" x="1" y="-1"/>
							<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
						</Anchors>
						<Color r="0.8" g="0.8" b="0.8" a="1"/>
					</PushedTexture>
					<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD">
						<Size x="16" y="16"/>
						<Anchors> <Anchor point="CENTER" x="0" y="0"/> </Anchors>
					</HighlightTexture>
					
					<Scripts>
						<OnLoad>
							self:RegisterForClicks( "LeftButtonDown", "RightButtonDown", "MiddleButtonDown" )
						</OnLoad>
						<OnClick>
							if GoldCounterCharPanel:IsShown() then GoldCounterCharPanel:Hide()
							else GoldCounterCharPanel:Show()
							end
						</OnClick>
						<OnEnter>
							GC_ShowCharTableTooltip( _G["GC_InfosAssetsButton"] )
							GoldCounter_Custom_Tooltip:Show()
						</OnEnter>
						<OnLeave>
							GoldCounter_Custom_Tooltip:Hide()
						</OnLeave>
					</Scripts>
				</Button>

				<!-- Copper Icon -->
				<Button name="GC_CopperButton">
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" x="-38" />
					</Anchors>
					<NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
						<Size>
							<AbsDimension x="14" y="14"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT"/>
						</Anchors>
						<TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
					</NormalTexture>

				<Scripts>
					<OnLoad>
						self:RegisterForClicks( "RightButtonDown" )
						self:RegisterForDrag( "LeftButton" )
					</OnLoad>
					<OnMouseDown>
						if button=="RightButton" then XML_Actions( 1 ) end
					</OnMouseDown>
					<OnEnter>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
						 	GC_MinViewShowAllSetTooltip()
							GoldCounter_Custom_Tooltip:Show()
						end
					</OnEnter>
					<OnLeave>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
							GoldCounter_Custom_Tooltip:Hide()
						end
					</OnLeave>
					<OnDragStart>
						if not GoldCounter_MainFrame.isLocked then
							if My_GC_Settings_Local.UseShiftToDrag == true then
								if IsShiftKeyDown() then
									GoldCounter_MainFrame:StartMoving()
								end
							else
								GoldCounter_MainFrame:StartMoving()
							end
						end
					</OnDragStart>
					<OnDragStop>
						GoldCounter_MainFrame:StopMovingOrSizing()
					</OnDragStop>
				</Scripts>

				</Button>

				<!-- Silver Icon -->
				<Button name="GC_SilverButton">
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="GC_CopperButton" relativePoint="LEFT" x="-24" />
					</Anchors>
					<NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
						<Size>
							<AbsDimension x="14" y="14"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT"/>
						</Anchors>
						<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
					</NormalTexture>

				<Scripts>
					<OnLoad>
						self:RegisterForClicks( "RightButtonDown" )
						self:RegisterForDrag( "LeftButton" )
					</OnLoad>
					<OnMouseDown>
						if button=="RightButton" then XML_Actions( 1 ) end
					</OnMouseDown>
					<OnEnter>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
						 	GC_MinViewShowAllSetTooltip()
							GoldCounter_Custom_Tooltip:Show()
						end
					</OnEnter>
					<OnLeave>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
							GoldCounter_Custom_Tooltip:Hide()
						end
					</OnLeave>
					<OnDragStart>
						if not GoldCounter_MainFrame.isLocked then
							if My_GC_Settings_Local.UseShiftToDrag == true then
								if IsShiftKeyDown() then
									GoldCounter_MainFrame:StartMoving()
								end
							else
								GoldCounter_MainFrame:StartMoving()
							end
						end
					</OnDragStart>
					<OnDragStop>
						GoldCounter_MainFrame:StopMovingOrSizing()
					</OnDragStop>
				</Scripts>

				</Button>

				<!-- Gold Icon -->
				<Button name="GC_GoldButton">
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="GC_SilverButton" relativePoint="LEFT" x="-24" />
					</Anchors>
					<NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
						<Size>
							<AbsDimension x="14" y="14"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT"/>
						</Anchors>
						<TexCoords left="0" right="0.25" top="0" bottom="1"/>
					</NormalTexture>

				<Scripts>
					<OnLoad>
						self:RegisterForClicks( "RightButtonDown" )
						self:RegisterForDrag( "LeftButton" )
					</OnLoad>
					<OnMouseDown>
						if button=="RightButton" then XML_Actions( 1 ) end
					</OnMouseDown>
					<OnEnter>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
						 	GC_MinViewShowAllSetTooltip()
							GoldCounter_Custom_Tooltip:Show()
						end
					</OnEnter>
					<OnLeave>
						if ( My_GC_Settings_Local.ShowGoldOnly == true ) then
							GoldCounter_Custom_Tooltip:Hide()
						end
					</OnLeave>
					<OnDragStart>
						if not GoldCounter_MainFrame.isLocked then
							if My_GC_Settings_Local.UseShiftToDrag == true then
								if IsShiftKeyDown() then
									GoldCounter_MainFrame:StartMoving()
								end
							else
								GoldCounter_MainFrame:StartMoving()
							end
						end
					</OnDragStart>
					<OnDragStop>
						GoldCounter_MainFrame:StopMovingOrSizing()
					</OnDragStop>
				</Scripts>

				</Button>
		</Frames>

		<Layers>
			<!-- Coppers Number -->
			<Layer level="OVERLAY">

				<FontString name="GC_ShowCoppers" inherits="SystemFont_Outline" justifyH="RIGHT">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="GC_CopperButton" relativePoint="LEFT" x="0" />
					</Anchors>
				</FontString>

			</Layer>
				
			<!-- Silvers Number -->
			<Layer level="OVERLAY">

				<FontString name="GC_ShowSilvers" inherits="SystemFont_Outline" justifyH="RIGHT">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="GC_SilverButton" relativePoint="LEFT" x="0" />
					</Anchors>
				</FontString>
			</Layer>

			<!-- Golds Number -->
			<Layer level="OVERLAY">

				<FontString name="GC_ShowGolds" inherits="SystemFont_Outline" justifyH="RIGHT">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="GC_GoldButton" relativePoint="LEFT" x="-1" />
					</Anchors>
				</FontString>
			</Layer>
			
		</Layers>

</Frame>

<!-- Player Card Frame -->
<Frame name="GoldCounter_CharCard" parent="UIParent" toplevel="true" enableMouse="false" movable="false" hidden="true" frameStrata="TOOLTIP" clampedtoscreen="true">
        <Size> <AbsDimension x="320" y="350" /> </Size>
		<Anchors> <Anchor point="BOTTOMRIGHT" relativeTo="UIParent" relativePoint="BOTTOMRIGHT" x="-20" y="20" /> </Anchors>

		<Scripts>
			<OnShow>
			<![CDATA[
				GC_CardInit()
				if My_GC_Settings_Local.Scale > 1 then
					if My_GC_Settings_Local.Scale > 2.5 then My_GC_Settings_Local.Scale = 2.5 end
					self:SetScale(My_GC_Settings_Local.Scale)
				else
					self:SetScale( 1 )
				end
			]]>
			</OnShow>
		</Scripts>

		<Layers>

			<Layer level="BACKGROUND">
				<Texture name="GC_Card_BG" atlas="Headhunter_BG" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="320" y="350"/> </Size>
					<Anchors> <Anchor point="TOPLEFT" relativeTo="GoldCounter_CharCard" /> </Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="GC_FactionTexture" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="64" y="64" /> </Size>
				        <Anchors> <Anchor point="BOTTOMRIGHT" x="-4" y="4" relativeTo="GoldCounter_CharCard" /> </Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="GC_CharPortraitRoundTexture" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="59" y="62" /> </Size>
				        <Anchors> <Anchor point="TOPLEFT" x="16" y="-16" relativeTo="GoldCounter_CharCard" /> </Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="GC_CharPortraitTexture" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="42" y="42" /> </Size>
				        <Anchors> <Anchor point="CENTER" relativeTo="GC_CharPortraitRoundTexture" x="0" y="4" /> </Anchors>
				</Texture>
			</Layer>

			<!-- TITLE - NAME LEVEL REALM -->
			<Layer level="OVERLAY">
				<FontString name="GC_Card_PlayerName" font="SystemFont_Outline">
				        <Anchors> <Anchor point="TOPLEFT" x="74" y="-38" /> </Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="GC_Card_Realm" font="SystemFont_Outline">
				        <Anchors>
						<Anchor point="TOPLEFT" relativeTo="GC_Card_PlayerName" x="0" y="-26" />
					</Anchors>
				</FontString>
			</Layer>
			
			<!-- Class Spe -->
			<Layer level="ARTWORK">
				<Texture name="GC_ClassIconTexture" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="28" y="28" /> </Size>
				        <Anchors> <Anchor point="TOPLEFT" x="42" y="-84" /> </Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="GC_Card_Class" font="SystemFont_Outline">
				        <Anchors>
						<Anchor point="TOPLEFT" relativeTo="GC_ClassIconTexture" x="32" y="-5" />
					</Anchors>
				</FontString>
			</Layer>
			
			<!-- Race -->
			<Layer level="ARTWORK">
				<Texture name="GC_RaceIconTexture" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="32" y="32" /> </Size>
				        <Anchors> <Anchor point="TOPLEFT" x="74" y="-115" /> </Anchors>
				</Texture>
			</Layer>
			
			<Layer level="OVERLAY">
				<FontString name="GC_Card_ClassSpe" font="SystemFont_Outline">
				        <Anchors>
						<Anchor point="TOPLEFT" relativeTo="GC_RaceIconTexture" x="36" y="2" />
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="GC_Card_PlayerRace" font="SystemFont_Outline">
				        <Anchors>
						<Anchor point="TOPLEFT" relativeTo="GC_Card_ClassSpe" x="0" y="-19" />
					</Anchors>
				</FontString>
			</Layer>

			<!-- Section Durabilité -->
			<Layer level="OVERLAY">
				<FontString name="GC_Card_Dura" font="Fancy18Font">
				        <Anchors>
						<Anchor point="TOPLEFT" x="40" y="-155" />
					</Anchors>
				<color r="0.7" g="1" b="0.7" a="1"/>
				</FontString>
			</Layer>

			<Layer level="ARTWORK">
				<Texture name="GC_Gear_Armor_IconTexture" file="Interface\Icons\inv_chest_plate15" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="24" y="24" /> </Size>
				        <Anchors> <Anchor point="TOPLEFT" relativeTo="GC_Card_Dura" x="4" y="-21" /> </Anchors>
				</Texture>
			</Layer>
				<Layer level="ARTWORK">
					<Texture name="GC_Gear_Armor_None" atlas="common-icon-redx" setAllPoints="true" alphaMode="BLEND" hidden="true">
						<Size> <AbsDimension x="20" y="20" /> </Size>
				        <Anchors> <Anchor point="LEFT" relativeTo="GC_Gear_Armor_IconTexture" relativePoint="RIGHT" x="8" y="0" /> </Anchors>
					</Texture>
				</Layer>

			<Layer level="ARTWORK">
				<Texture name="GC_Gear_Weapons_IconTexture" file="Interface\Icons\inv_sword_27" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="24" y="24" /> </Size>
				        <Anchors> <Anchor point="LEFT" relativeTo="GC_Gear_Armor_IconTexture" relativePoint="RIGHT" x="55" y="0" /> </Anchors>
				</Texture>
			</Layer>
				<Layer level="ARTWORK">
					<Texture name="GC_Gear_Weapons_None" atlas="common-icon-redx" setAllPoints="true" alphaMode="BLEND" hidden="true">
						<Size> <AbsDimension x="20" y="20" /> </Size>
				        <Anchors> <Anchor point="LEFT" relativeTo="GC_Gear_Weapons_IconTexture" relativePoint="RIGHT" x="8" y="0" /> </Anchors>
					</Texture>
				</Layer>

			<Layer level="ARTWORK">
				<Texture name="GC_iLevel_IconTexture" file="Interface\Icons\spell_magic_greaterblessingofkings" setAllPoints="true" alphaMode="BLEND">
					<Size> <AbsDimension x="24" y="24" /> </Size>
				        <Anchors> <Anchor point="LEFT" relativeTo="GC_Gear_Weapons_IconTexture" relativePoint="RIGHT" x="55" y="0" /> </Anchors>
				</Texture>
			</Layer>


			<Layer level="OVERLAY">
				<FontString name="GC_Card_GearDura" font="Fancy18Font">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_Gear_Armor_IconTexture" x="28" y="0" />
					</Anchors>
				<color r="0" g="0.7" b="1" a="1"/>
				</FontString>
			</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_Card_WeaponsDura" font="Fancy18Font">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_Gear_Weapons_IconTexture" x="28" y="0" />
					</Anchors>
				<color r="0" g="0.7" b="1" a="1"/>
				</FontString>
			</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_Card_iLevel" font="Fancy18Font">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_iLevel_IconTexture" x="28" y="0" />
					</Anchors>
				<color r="0" g="0.7" b="1" a="1"/>
				</FontString>
			</Layer>

			<!-- ### XP/Money data ### -->
			<Layer level="OVERLAY">
				<FontString name="GC_Card_XP" font="Fancy18Font">
				        <Anchors>
						<Anchor point="TOPLEFT" relativeTo="GC_Card_Dura" x="0" y="-52" />
					</Anchors>
				<color r="0.1" g="0.6" b="1" a="1"/>
				</FontString>
			</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_XP_Progress" font="FriendsFont_Large">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_Card_XP" x="0" y="-18" />
					</Anchors>
				<color r="1" g="0.7" b="0" a="1"/>
				</FontString>
			</Layer>
				<Layer level="OVERLAY">
					<FontString name="GC_XP_ProgressData" font="FriendsFont_Large">
					        <Anchors>
							<Anchor point="LEFT" relativeTo="GC_XP_Progress" x="126" y="0" />
						</Anchors>
					<color r="0" g="0.7" b="1" a="1"/>
					</FontString>
				</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_XP_Rest" font="FriendsFont_Large">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_XP_Progress" x="0" y="-18" />
					</Anchors>
				<color r="1" g="0.7" b="0" a="1"/>
				</FontString>
			</Layer>
				<Layer level="OVERLAY">
					<FontString name="GC_XP_RestData" font="FriendsFont_Large">
					        <Anchors>
							<Anchor point="LEFT" relativeTo="GC_XP_Rest" x="126" y="0" />
						</Anchors>
					<color r="0" g="0.7" b="1" a="1"/>
					</FontString>
				</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_XP_Recent" font="FriendsFont_Large">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_XP_Rest" x="0" y="-18" />
					</Anchors>
				<color r="1" g="0.7" b="0" a="1"/>
				</FontString>
			</Layer>
				<Layer level="OVERLAY">
					<FontString name="GC_XP_RecentData" font="FriendsFont_Large">
					        <Anchors>
							<Anchor point="LEFT" relativeTo="GC_XP_Recent" x="126" y="0" />
						</Anchors>
					<color r="0" g="0.7" b="1" a="1"/>
					</FontString>
				</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_XP_QuestXP" font="FriendsFont_Large">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_XP_Recent" x="0" y="-18" />
					</Anchors>
				<color r="1" g="0.7" b="0" a="1"/>
				</FontString>
			</Layer>
				<Layer level="OVERLAY">
					<FontString name="GC_XP_QuestXPData" font="FriendsFont_Large">
					        <Anchors>
							<Anchor point="LEFT" relativeTo="GC_XP_QuestXP" x="126" y="0" />
						</Anchors>
					<color r="0" g="0.7" b="1" a="1"/>
					</FontString>
				</Layer>

			<Layer level="OVERLAY">
				<FontString name="GC_XP_Data" font="FriendsFont_Large">
				        <Anchors>
						<Anchor point="LEFT" relativeTo="GC_XP_QuestXP" x="0" y="-18" />
					</Anchors>
				<color r="1" g="0.7" b="0" a="1"/>
				</FontString>
			</Layer>
				<Layer level="OVERLAY">
					<FontString name="GC_XP_NewData" font="FriendsFont_Large">
					        <Anchors>
							<Anchor point="LEFT" relativeTo="GC_XP_Data" x="126" y="0" />
						</Anchors>
					<color r="0" g="0.7" b="1" a="1"/>
					</FontString>
				</Layer>

		</Layers>
</Frame>

<!-- Warning Dialog -->
<Frame name="GoldCounter_WarnDialog" parent="UIParent" toplevel="true" enableMouse="false" movable="false" hidden="true" enableKeyboard="true" frameStrata="FULLSCREEN_DIALOG">
        <Size> <AbsDimension x="370" y="200" /> </Size>
		<Anchors> <Anchor point="CENTER" /> </Anchors>

	<Scripts>
		<OnShow>
			GC_Options_ResetDefaultsButton1:Disable()
			GoldCounterOptionsPanel:Hide()
			GoldCounterCharPanel:Hide()
				GC_Reset_EraseDB_Checked = false
				GC_Reset_EraseAllProfiles_Checked = false
				GC_Reset_EraseDB:SetChecked( false )
				GC_Reset_EraseAllProfiles:SetChecked( false )
		</OnShow>
		<OnHide>
			GC_Options_ResetDefaultsButton1:Enable()
			PlaySound( SOUNDKIT.IG_MAINMENU_CLOSE )
		</OnHide>
		<OnKeyDown>
			if key == "ESCAPE" then
				self:Hide()
			end
		</OnKeyDown>
	</Scripts>

	<Frames>

	<CheckButton name="GC_Reset_EraseDB" inherits="ChatConfigCheckButtonTemplate" parent="GoldCounter_WarnDialog" checked="false">
				<Size x="28" y="28" />
				<Anchors> <Anchor point="TOPLEFT" x="8" y="-100" /> </Anchors>

				<Layers>
					<Layer>

						<!-- Show Option Text -->
						<FontString name="GC_Reset_EraseDB_Text" inherits="SystemFont_Shadow_Med3">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Reset_EraseDB" x="28" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

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

	</CheckButton>

	<CheckButton name="GC_Reset_EraseAllProfiles" inherits="ChatConfigCheckButtonTemplate" parent="GoldCounter_WarnDialog" checked="false">
					<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GC_Reset_EraseDB" x="0" y="-24" />
				</Anchors>
				<Size x="28" y="28" />

				<Layers>
					<Layer level="OVERLAY">

						<!-- Show Option Text -->
						<FontString name="GC_Reset_EraseAllProfiles_Text" inherits="SystemFont_Shadow_Med3">
							<Anchors>
								<Anchor point="LEFT" relativeTo="GC_Reset_EraseAllProfiles" x="28" y="1" />
							</Anchors>
						</FontString>

					</Layer>
				</Layers>

				<Scripts>

					<OnClick>
						local IsChecked = self:GetChecked()

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

	</CheckButton>

	<Button name="GC_WarnDialogOKButton" inherits="UIPanelButtonTemplate" text="OK">
		<Size x="96" y="32" />
		<Anchors>
			<Anchor point="BOTTOM" x="-64" y="7" />
		</Anchors>
		<Scripts>
			<OnClick>
				GoldCounter_WarnDialog:Hide()
				GC_ResetDefault()
			</OnClick>
		</Scripts>
	</Button>

	<Button name="GC_WarnDialogCancelButton" inherits="UIPanelButtonTemplate">
		<Size x="96" y="32" />
		<Anchors>
			<Anchor point="BOTTOM" x="64" y="7" />
		</Anchors>
		<Scripts>
			<OnClick>
				GoldCounter_WarnDialog:Hide()
			</OnClick>
		</Scripts>
	</Button>

	</Frames>

	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="GC_Warn_Dialog_Background" atlas="Capacitance-Blacksmithing-BG" horizTile="false" vertTile="false">
				<Size x="350" y="180"/>
				<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="322" y="18" />
				<Anchors>
					<Anchor point="TOP" x="0" y=""/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<Texture name="GC_Warn_Dialog_Title" atlas="UI-Character-Info-Title" horizTile="false" vertTile="false">
				<Size x="150" y="48" />
				<Anchors>
					<Anchor point="TOP" x="0" y="20"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<Texture atlas="Mobile-LegendaryQuestIcon" horizTile="false" vertTile="false">
				<Size x="50" y="50" />
				<Anchors>
					<Anchor point="TOPLEFT" x="10" y="-8"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<FontString name="DialogTitleText" inherits="Fancy18Font" text="GoldCounter">
				<Anchors>
					<Anchor point="CENTER" relativeTo="GC_Warn_Dialog_Title" relativePoint="CENTER" x="0" y="0" />
				</Anchors>
					<Color r="1.0" g="0.82" b="0" a="1"/>
			</FontString>
		</Layer>

		<Layer level="OVERLAY">
			<FontString name="GC_Warn_DialogText" font="ErrorFont">
				<Anchors>
					<Anchor point="CENTER" x="-4" y="26" />
				</Anchors>
			</FontString>
		</Layer>

	</Layers>

</Frame>

</Ui>
