<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">
    
    <Font name="gw_button_font_black" font="Interface\AddOns\GW2_UI\fonts\headlines.ttf" virtual="true">
          <Color r="0" b="0" g="0"></Color>
          <FontHeight>
              <AbsValue val="14"/>
          </FontHeight>
		  <Scripts>
            <OnLoad>
				 self:SetFont(GwLocalization['FONT_BOLD'],14)
            </OnLoad>
        </Scripts>
  </Font>
    <Frame name="GwSettingsMoverFrame" frameStrata="HIGH" enableMouse="true" movable="true" parent="UIParent" virtual="true">
        <Size x="470" y="40"></Size>
       <Anchors>
            <Anchor point="CENTER" x="0" y="256"></Anchor>
        </Anchors>
        <Scripts>
            <OnLoad>
                self:RegisterForDrag("LeftButton");
            </OnLoad>

              <OnDragStart>self:StartMoving();</OnDragStart>
              <OnDragStop>self:StopMovingOrSizing();</OnDragStop>
        </Scripts>
        
    </Frame>
    <Frame name="GwSettingsWindow" frameStrata="HIGH" enableMouse="true" parent="UIParent" virtual="true">
        <Size x="512" y="512"></Size>
        <Anchors>
            <Anchor point="TOP" relativeTo="GwSettingsMoverFrame" relativePoint="TOP" x="20" y="-40"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture name="$parentBackground" parentKey="background"  file="Interface\AddOns\GW2_UI\textures\bag\bagbg">
                    <Size x="512" y="512"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture name="$parentHeader" file="Interface\AddOns\GW2_UI\textures\bag\bagheader">
                    <Size x="512" y="64"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture name="$parentHeader" file="Interface\AddOns\GW2_UI\textures\bag\bagheader-right">
                    <Size x="512" y="64"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>

                <Texture name="$parentFooter" file="Interface\AddOns\GW2_UI\textures\bag\bagfooter">
                    <Size x="512" y="64"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="2" />
                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="2" />
                    </Anchors>
                </Texture>
                <Texture name="$parentLeft" file="Interface\AddOns\GW2_UI\textures\bag\bagleftpanel">
                    <Size x="40" y="512"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="0" />
                    </Anchors>
                </Texture>               
                
            </Layer>
            <Layer textureSubLevel="2">
                <Texture  file="Interface\AddOns\GW2_UI\textures\bag\bottom-right">
                    <Size x="128" y="128"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>

            </Layer>
            <Layer textureSubLevel="3">
                <Texture name="$parentHeader" file="Interface\AddOns\GW2_UI\textures\settingsicon">
                    <Size x="128" y="128"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="TOPLEFT" x="-16" y="16" />
                    </Anchors>
                </Texture>
                <FontString name="$parentHeaderString" text="Settings" inherits="GameFontNormalSmall" justifyH="LEFT">
                    <Size x="512" y="40"></Size>
                    <Color r="1" b="0.73" g="0.93"></Color>
                    <Anchors>
                    <Anchor point="TOPLEFT" x="30" y="40"></Anchor>
                    </Anchors>
                </FontString>  
                <FontString name="$parentVersionString" text="Version" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="200" y="40"></Size>
                    <Color r="1" b="0.73" g="0.93"></Color>
                    <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="-40"></Anchor>
                    </Anchors>
                </FontString>            
                
            </Layer>
        </Layers>
            <Frames>
                <Button name="$parentMoveHud" inherits="GwStandardButton" text="Move HUD">
                     <Size x="100" y="28" />

                         <Anchors><Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="10" y="-5"/></Anchors>

                    <Scripts>
                        <OnClick>
                            if InCombatLockdown() then
                                DEFAULT_CHAT_FRAME:AddMessage(GwLocalization['HUD_MOVE_ERR'])
                                return
                            end 
                            gw_moveHudObjects()
                        </OnClick>
                    </Scripts>
                </Button> 
              
                <Button name="$parentSave"  inherits="GwStandardButton" text="Save and Reload">
                     <Size x="130" y="28" />
                    <Anchors><Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="-5" y="-5"/></Anchors>

                    <Scripts>
                        <OnClick>
                            ReloadUI();
                        </OnClick>
                    </Scripts>
                </Button> 
       
                <Frame name="$parentContainer">
                    <Size x="512" y="512"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                    </Anchors>
                    <Frames>                    
                        <Frame name="GwSettingsModuleOption">
                            <Size x="660" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="Modules" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Enable and disable modules if you prefer to use other addons, or those you simply don't like." inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-30"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,241/255,209/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['MODULES_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(181/255,160/255,128/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['MODULES_DESC'])
                                </OnLoad>
                            </Scripts>
                        </Frame>
                        <Frame hidden="true" name="GwSettingsTargetOptions">
                            <Size x="660" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="Target" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Edit the target frame settings."  inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-30"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,241/255,209/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['TARGET_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(181/255,160/255,128/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['TARGET_DESC'])
                                </OnLoad>
                            </Scripts>
                        </Frame>
                        <Frame hidden="true" name="GwSettingsFocusOptions">
                            <Size x="660" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="Focus" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Edit focus frame settings."  inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-30"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,241/255,209/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['FOCUS_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(181/255,160/255,128/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['FOCUS_DESC'])
                                </OnLoad>
                            </Scripts>
                        </Frame>
                        
                        <Frame hidden="true" name="GwSettingsHudOptions">
                            <Size x="660" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="HUD" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Edit HUD modules, for more customization."  inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-30"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,241/255,209/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['HUD_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(181/255,160/255,128/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['HUD_DESC'])
                                </OnLoad>
                            </Scripts>
                        </Frame>  
                        <Frame hidden="true" name="GwSettingsGroupframe">
                            <Size x="660" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="Group" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Edit group modules, for more customization."  inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="5" y="-30"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,241/255,209/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['GROUP_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(181/255,160/255,128/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['GROUP_DESC'])
                                </OnLoad>
                            </Scripts>
                        </Frame> 
                        <Frame hidden="true" name="GwSettingsProfilesframe">
                            <Size x="512" y="480"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                            <Layers>
                            <layer level="OVERLAY">
                                <FontString name="$parentHeader" text="Profiles" inherits="GameFontNormalSmall" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="1" b="1" g="1"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="10" y="-10"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString name="$parentSub" text="Profile is a easy way to share settings across character and realm."  inherits="GameFontNormalSmall" justifyV="TOP" justifyH="LEFT">
                                    <Size x="512" y="25"></Size>
                                    <Color r="0.6" b="0.6" g="0.6"></Color>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="10" y="-40"></Anchor>
                                        <Anchor point="TOPRIGHT" x="-10" y="-40"></Anchor>
                                    </Anchors>
                                </FontString>
                            </layer>
                        </Layers>
                            <Frames>
                                
                                
                                <Slider name="$parentSlider" parentKey="slider" orientation="VERTICAL" enableMouse="true" virtual="true">
                                    <Size x="12" y="12"></Size>
                                    <Anchors>
                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-12" y="-32"></Anchor>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-12" y="32"></Anchor>
                                    </Anchors>
                        
   
                                    <ThumbTexture name="$parentThumb" parentKey="thumb" file="Interface\AddOns\GW2_UI\textures\scrollbarmiddle">
                                        <Size x="12" y="100"/>
                                        <Anchors>
                                            <Anchor point="TOP" relativePoint="TOP" ></Anchor>
                                        </Anchors>
                                    </ThumbTexture>
                                    <Layers>
                                        <Layer>
                                            <Texture file="Interface\AddOns\GW2_UI\textures\scrollbg">
                                                <Anchors>
                                                    <Anchor point="TOP" relativePoint="TOP"></Anchor>
                                                    <Anchor point="BOTTOM" relativePoint="BOTTOM"></Anchor>
                                                </Anchors>
                                            </Texture>
                                        </Layer>
                                    </Layers>
                                    <Scripts>
                                        <OnValueChanged>
                                            self:GetParent().scrollFrame:SetVerticalScroll(value)
                                        </OnValueChanged>
                                        <OnLoad>
                                           
                                            self:SetMinMaxValues(0, 512)
                                           
                                        </OnLoad>
                                    </Scripts>
                                </Slider>
                                <Button name="$parentScrollButtonUp">
                                    <Size x="12" y="12"></Size>
                                    <Anchors>
                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-12" y="-22"></Anchor>
                                    </Anchors>
                                    <Layers>
                                        <Layer>
                                            <Texture file="Interface\AddOns\GW2_UI\textures\scrollbutton">
                                                <Size x="12" y="12"></Size>
                                                <Anchors>
                                                    <Anchor point="TOP" relativePoint="TOP"></Anchor>
                                                </Anchors>
                                            </Texture>
                                        </Layer>
                                    </Layers>
                                </Button>
                                <Button name="$parentScrollButtonDown">
                                    <Size x="12" y="12"></Size>
                                        <Anchors>
                                            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-12" y="18"></Anchor>
                                    </Anchors>
                                    <Layers>
                                        <Layer>
                                            <Texture file="Interface\AddOns\GW2_UI\textures\scrollbutton">
                                                <Size x="12" y="12"></Size>
                                                <Anchors>
                                                    <Anchor point="TOP" relativePoint="TOP"></Anchor>
                                                </Anchors>
                                                <TexCoords left="0" right="1" top="1" bottom="0" />
                                            </Texture>
                                        </Layer>
                                    </Layers>
                                </Button>
                                
                                <ScrollFrame name="$parentscrollframe" parentKey="scrollFrame">
                                    <Size x="480" y="442"></Size>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="0" y="-70"></Anchor>
                                    </Anchors>
                                    <Scripts>
                                        <OnMouseWheel>
                                            delta = -delta * 10
                                            local s = math.max(0,self:GetVerticalScroll() + delta)
                                            
                                            if self.maxScroll~=nil then
                                                s = math.min(self.maxScroll,s)
                                            end
                                            
                                            self:SetVerticalScroll(s)
                                            self:GetParent().slider:SetValue(s)
                                        </OnMouseWheel>
                                    </Scripts>
                                </ScrollFrame>
                                <Frame name="$parentScrollchild" parentKey="scrollchild">
                                      <Size x="480" y="442"></Size>
                                    <Anchors>
                                        <Anchor point="TOPLEFT" x="0" y="0"></Anchor>
                                        <Anchor point="BOTTOMRIGHT" x="0" y="0"></Anchor>
                                    </Anchors>
                                </Frame>
                            </Frames>
                            <Scripts>
                                <OnLoad>
                                    _G[self:GetName()..'Header']:SetFont(DAMAGE_TEXT_FONT,20)
                                    _G[self:GetName()..'Header']:SetTextColor(255/255,255/255,255/255)
									_G[self:GetName()..'Header']:SetText(GwLocalization['PROFILES_CAT_1'])
                                    _G[self:GetName()..'Sub']:SetFont(UNIT_NAME_FONT,12)
                                    _G[self:GetName()..'Sub']:SetTextColor(125/255,125/255,125/255)
									_G[self:GetName()..'Sub']:SetText(GwLocalization['PROFILES_DESC'])
                                    
                          
                                </OnLoad>
                                <OnShow>
                                    GwSettingsWindow.background:SetTexture('Interface\\AddOns\\GW2_UI\\textures\\profiles\\profiles-bg')
                                </OnShow>
                                <OnHide>
                                    GwSettingsWindow.background:SetTexture('Interface\\AddOns\\GW2_UI\\textures\\bag\\bagbg')
                                </OnHide>
                            </Scripts>
                        </Frame>
                    
                    </Frames>                    
                </Frame>  
                <Button name="GwSettingsButtonClose" text="" >
                <Size x="20" y="20" />
                <Anchors><Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="30"/></Anchors>
                <NormalTexture file="Interface\AddOns\GW2_UI\textures\window-close-button-normal"></NormalTexture>
                <PushedTexture  file="Interface\AddOns\GW2_UI\textures\window-close-button-hover"></PushedTexture >
                <HighlightTexture  file="Interface\AddOns\GW2_UI\textures\window-close-button-hover"></HighlightTexture >

                <NormalFont style="ChatBubbleFont"></NormalFont>
                <HighlightFont style="ChatBubbleFont"></HighlightFont>
                <Scripts>
                    <OnClick>
                        self:GetParent():Hide()
                    </OnClick>
                </Scripts>
            </Button>
            </Frames>
            <Scripts>
                <OnLoad>
                    GwSettingsWindowHeaderString:SetFont(DAMAGE_TEXT_FONT,24)
                    GwSettingsWindowVersionString:SetFont(UNIT_NAME_FONT,12)
                    GwSettingsWindowVersionString:SetText(GW_VERSION_STRING)
					GwSettingsWindowHeaderString:SetText(GwLocalization['SETTINGS_TITLE'])
					GwSettingsWindowMoveHud:SetText(GwLocalization['MOVE_HUD_BUTTON'])
					GwSettingsWindowSave:SetText(GwLocalization['SETTINGS_SAVE_RELOAD'])
					

					
					
                </OnLoad>
            </Scripts>
    </Frame>
    <Button name="GwSettingsLabel" parent="GwSettingsWindow" virtual="true">
        <Size x="40" y="40"></Size>
        <Layers>
            <Layer>
                <Texture parentKey="iconbg" name="$parentTextureBg" hidden="true"  file="Interface\AddOns\GW2_UI\textures\settingsiconbg">
                <Size x="64" y="40"></Size>
                    <Anchors>
                        <Anchor point="CENTER" x="-6" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <Texture name="$parentTexture"  file="Interface\AddOns\GW2_UI\textures\icon-module">
                <Size x="32" y="32"></Size>
                    <Anchors>
                        <Anchor point="CENTER" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>   
            </Layer>
        </Layers>
         <Scripts>
             <OnEnter>
                 _G[self:GetName()..'Texture']:SetBlendMode('ADD')
             </OnEnter>
             <OnLeave>

                 _G[self:GetName()..'Texture']:SetBlendMode('BLEND')
             </OnLeave>
        </Scripts>
    </Button>
    

    
    <Button name="GwOptionBox" frameStrata="HIGH"  virtual="true">
        <Size x="244" y="40"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="OVERLAY" textureSubLevel="2">
                <FontString name="$parentTitle" text="Settings"     inherits="GameFontNormalSmall" justifyH="LEFT">
                    <Size x="256" y="25"></Size>
                    <Color r="1" b="1" g="1"></Color>
                    <Anchors>
                        <Anchor point="LEFT" x="35" y="0"></Anchor>
                        </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <CheckButton name="$parentCheckButton" checked="true">
                <HitRectInsets left="0" right="0" top="0" bottom="0"/>
                <Size x="16" y="16"></Size>
                <Anchors>
                    <Anchor point="LEFT" relativePoint="LEFT" x="5"></Anchor>
                </Anchors>
                <NormalTexture file="Interface\AddOns\GW2_UI\textures\checkbox"></NormalTexture>
                <CheckedTexture file="Interface\AddOns\GW2_UI\textures\checkboxchecked"></CheckedTexture>
            </CheckButton>
        </Frames>
    </Button> 
    <Button name="GwOptionBoxSlider" frameStrata="HIGH"  virtual="true">
        <Size x="500" y="40"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>   
            <Layer level="OVERLAY" textureSubLevel="2">
            <FontString name="$parentTitle" text="Settings" inherits="GameFontNormalSmall" justifyH="LEFT">
                        <Size x="256" y="25"></Size>
                        <Color r="1" b="1" g="1"></Color>
                        <Anchors>
                            <Anchor point="LEFT" x="5" y="0"></Anchor>
                        </Anchors>
                    </FontString>

            </Layer>
        </Layers>
        <Frames>
            <Slider name="$parentSlider" orientation="HORIZONTAL" enableMouse="true" virtual="true">
                <Size x="256" y="16"></Size>
                <Anchors>
                    <Anchor point="RIGHT" relativePoint="RIGHT" x="-10"></Anchor>
                </Anchors>
                <HitRectInsets left="0" right="0" top="-10" bottom="-10"/>
   
                <ThumbTexture name="$parentThumb" file="Interface\AddOns\GW2_UI\textures\sliderhandle">
                    <Size x="16" y="16"/>
                </ThumbTexture>
                <Layers>
                    <Layer>
                        <Texture  file="Interface\AddOns\GW2_UI\textures\sliderbg">
                            <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT"></Anchor>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>
            </Slider>
        </Frames>
    </Button>
    <Button name="GwOptionBoxDropDown" frameStrata="HIGH"  virtual="true">
        <Size x="500" y="40"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>   
            <Layer level="OVERLAY" textureSubLevel="2">
            <FontString name="$parentTitle" text="Settings" inherits="GameFontNormalSmall" justifyH="LEFT">
                        <Size x="256" y="25"></Size>
                        <Color r="1" b="1" g="1"></Color>
                        <Anchors>
                            <Anchor point="TOPLEFT" x="5" y="0"></Anchor>
                        </Anchors>
                    </FontString>

            </Layer>
        </Layers>
        <Frames>
            <Frame name="$parentcontainer" hidden="true" frameStrata="HIGH" parentKey="container">
                 <Size x="250" y="20"></Size>
                 <Anchors>
                     <Anchor point="RIGHT" relativePoint="RIGHT" x="-10" y="0"></Anchor>
                </Anchors>
           
            </Frame>
            <Button parentKey="button" name="$parentDd">
             <Size x="250" y="20"></Size>
                 <Anchors>
                     <Anchor point="RIGHT" relativePoint="RIGHT" x="-10" y="0"></Anchor>
                </Anchors>
                     <Layers>
                    <Layer level="BACKGROUND" textureSubLevel="2">
                        <Texture  file="Interface\AddOns\GW2_UI\textures\gwstatusbar">
                            <Color r="0" b="0" g="0"></Color>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT"></Anchor>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                    <Layer level="OVERLAY" textureSubLayer="3">
                        <FontString parentKey="string" text="" inherits="GameFontNormalSmall" justifyH="LEFT" justifyY="CENTER">
                        <Size x="240" y="20"></Size>
                        <Color r="1" b="1" g="1"></Color>
                        <Anchors>
                            <Anchor point="CENTER"></Anchor>
                        </Anchors>
                        </FontString>
               
                    </Layer>
                    <Layer level="OVERLAY" textureSubLayer="4">
                        <Texture name="$parentArrow"  file="Interface\AddOns\GW2_UI\textures\arrowdown_down">
                            <Color r="1" g="1" b="1" a="1"></Color>
                             <Size x="18" y="18"></Size>
                            <Anchors>
                               <Anchor point="RIGHT"></Anchor>
                            </Anchors>
                        </Texture>     
                    </Layer>
                </Layers>
            </Button>
        </Frames>
    </Button>
    
    <Button name="GwDropDownItem"  frameStrata="HIGH" virtual="true"  >
        <Size x="250" y="20"></Size>
        <Layers>
            <Layer level="OVERLAY" textureSubLevel="2">
                <Texture  file="Interface\AddOns\GW2_UI\textures\gwstatusbar">
                    <Color r="0" b="0" g="0"></Color>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT"></Anchor>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="OVERLAY" textureSubLayer="3">
                <FontString parentKey="string" text="" inherits="GameFontNormalSmall" justifyH="LEFT" justifyY="CENTER">
                        <Size x="240" y="20"></Size>
                        <Color r="1" b="1" g="1"></Color>
                        <Anchors>
                            <Anchor point="CENTER"></Anchor>
                        </Anchors>
                </FontString>
            </Layer>
        </Layers>
    </Button>
    
    <Button name="GwStandardButton" text="" virtual="true">
        <Size x="128" y="24" />
                            
        <NormalTexture file="Interface\AddOns\GW2_UI\textures\questviewbutton"></NormalTexture>
        <DisabledTexture file="Interface\AddOns\GW2_UI\textures\questviewbutton_disable"></DisabledTexture>

      
        <NormalFont style="gw_button_font_black"></NormalFont>
        <HighlightFont style="gw_button_font_black"></HighlightFont>
        
        <Layers>
            <Layer textureSubLevel="3">
                <Texture parentKey="hover" name="$parentOnHover" file="Interface\AddOns\GW2_UI\textures\questviewbutton_hover">
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="LEFT"></Anchor>
                        <Anchor point="TOP" relativePoint="TOP"></Anchor>
                        <Anchor point="BOTTOM" relativePoint="BOTTOM"></Anchor>
                        <Anchor point="RIGHT" relativePoint="LEFT"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        
        <Scripts>
            <OnEnter>
                
                gw_button_enter(self)
            </OnEnter>
            <OnLeave>
                gw_button_leave(self)
            </OnLeave>
        </Scripts>
       
    </Button>
    
            
    <Button name="GwProfileItem" virtual="true">
        <size x="470" y="66"></size>
        <Anchors>
            <Anchor point="TOPLEFT" x="10" y="0"></Anchor>
        </Anchors>
        <Layers>
            <Layer>
                <Texture name="$parentHeader" parentKey="background"    file="Interface\AddOns\GW2_UI\textures\profiles\profile-item">
                    <size x="480" y="66"></size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                    </Anchors>
                     <TexCoords left="0" right="1" top="0" bottom="0.5" />
                </Texture>
            </Layer>
            <Layer textureSubLevel="2">
                <Texture name="$parentHeader" parentKey="icon"    file="Interface\icons\inv_helmet_151">
                    <size x="56" y="56"></size>
                    <Anchors>
                        <Anchor point="LEFT" x="5" ></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
            </Layer>
            <Layer textureSubLevel="3">
                <Texture name="$parentHeader" parentKey="portraitframe" file="Interface\AddOns\GW2_UI\textures\profiles\portraitframe">
                    <size x="64" y="64"></size>
                    <Anchors>
                        <Anchor point="LEFT" x="1" ></Anchor>
                    </Anchors>
                </Texture>
                <FontString name="$parentName" parentKey="name"     text="Name not yet loaded" justifyH="LEFT">
                    <Size x="200" y="15"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="65" y="-5"></Anchor>
                    </Anchors>
                </FontString>
                <FontString name="$parentDesc" parentKey="desc" text="If you see this message. We forgot to load some text. Dont worry we have very capable sample text just like this one to fill you with the information." justifyV="TOP" justifyH="LEFT">
                    <Size x="200" y="50"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="65" y="-25"></Anchor>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-100" y="-10"></Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Scripts>
            <OnLoad>
                self.name:SetFont(UNIT_NAME_FONT,14)
                self.name:SetTextColor(1,1,1) 
                
                self.desc:SetFont(UNIT_NAME_FONT,12)
                self.desc:SetTextColor(125/255,125/255,125/255)
                self.desc:SetText(GwLocalization['PROFILES_MISSING_LOAD'])
                                               
            </OnLoad>
            <OnEnter>
                if self.deleteable~=nil and self.deleteable==true then
                    self.deleteButton:Show()
                end
                if self.activateAble~=nil and self.activateAble==true then
                    self.activateButton:Show()
                end
                self.background:SetBlendMode('ADD')
            </OnEnter>
            <OnLeave>
                if self.deleteable~=nil and self.deleteable==true then
                    self.deleteButton:Hide()
                end 
                
                    self.activateButton:Hide()
              
                self.background:SetBlendMode('BLEND')
            </OnLeave>
        </Scripts>
        <Frames>
            <Button name="$parentDelete" hidden="true" parentKey="deleteButton">
                <size x="56" y="20"></size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="-10" y="5"></Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <Texture name="$parentHeader" parentKey="background"    file="Interface\AddOns\GW2_UI\textures\profiles\profile-item">
                            <size x="56" y="20"></size>
                            <Anchors>
                                <Anchor point="BOTTOMRIGHT" x="0" ></Anchor>
                                                            </Anchors>
                            <Color r="1" g="0.5" b="0.5" a="1"></Color>
                        </Texture>
                        
                    </Layer>
                    <Layer textureSubLevel="2">
                        <FontString parentKey="string" text="Delete"  justifyH="CENTER" >
                            <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0">    </Anchor>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0"   y="0"></Anchor>
                            </Anchors>
                        </FontString>    
                    </Layer>
                </Layers>
                <Scripts>
                    <OnEnter>
                        if self:GetParent().deleteable~=nil and self:GetParent().deleteable==true   then
                            self:GetParent().deleteButton:Show()
                        end
                         if self:GetParent().activateAble~=nil and self:GetParent().activateAble==true   then
                            self:GetParent().activateButton:Show()
                        end
                    </OnEnter>
                    <OnClick>
                        gwWarningPromt(GwLocalization['PROFILES_DELETE'],function() 
                            gw_Delete_Settings_Profile(self:GetParent().profileID)
                            gw_Update_Profile_Window()
                        end)
                    </OnClick>
                    <OnLoad>
                        self.string:SetFont(UNIT_NAME_FONT,12)
                        self.string:SetTextColor(255/255,255/255,255/255)
						self.string:SetText(GwLocalization['SETTINGS_DELETE'])
                    </OnLoad>
                </Scripts>
            </Button> 
            <Button name="$parentActivateButton" hidden="true" inherits="GwStandardButton" text="Activate" parentKey="activateButton">
                <Size x="70" y="20" />
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-10" y="35"></Anchor>
                </Anchors>
                <Scripts>
                    <OnEnter>
                        if self:GetParent().activateAble~=nil and self:GetParent().activateAble==true   then
                            self:GetParent().activateButton:Show()
                        end
                        if self:GetParent().deleteable~=nil and self:GetParent().deleteable==true   then
                            self:GetParent().deleteButton:Show()
                        end
                    </OnEnter>
                    <OnClick>
                        gw_Set_Active_Profile(self:GetParent().profileID)                  gw_Update_Profile_Window()
                        self:Hide()
                    </OnClick>
					<OnLoad>
						self:SetText(GwLocalization['SETTINGS_ACTIVATE'])
                    </OnLoad>
                </Scripts>
            </Button>
        </Frames>
    </Button>
    
    <Frame name="GwWarningPromt" hidden="true" frameStrata="DIALOG"  enableMouse="true" topLevel="true" virtual="true">
        <Size x="350" y="150"></Size>
        <Anchors>
            <Anchor point="CENTER"></Anchor>
        </Anchors>
        <Layers>
            <Layer>
                <Texture parentKey="background" file="Interface\AddOns\GW2_UI\textures\party\manage-group-bg">
                    <Size x="350" y="150"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT"></Anchor>
                        <Anchor point="BOTTOMRIGHT"></Anchor>
                    </Anchors>
                    <TexCoords left="0.2" right="0.8" top="0.2" bottom="0.8" />
                    <Color r="0.8" b="0.8" g="0.8" a="0.9"></Color>
                </Texture> 
              
            </Layer>
            <Layer textureSubLevel="2">
                <Texture parentKey="background" file="Interface\AddOns\GW2_UI\textures\warning-icon">
                    <Size x="50" y="50"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" x="15" y="-15"></Anchor>
                    </Anchors>
                    
                </Texture>
                <FontString parentKey="string" text="Not yet loaded" justifyH="LEFT" justifyV="TOP">
                    <Anchors>
                        <Anchor point="TOPLEFT" x="70" y="-15"></Anchor>
                        <Anchor point="BOTTOMRIGHT" x="-15" y="15"></Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            
            <EditBox name="$parentInput" hidden="true" parentKey="input" autoFocus="false">
                <Size x="110" y="20"></Size>
                <Anchors>
                    <Anchor point="LEFT" relativePoint="LEFT" x="15" y="-15"></Anchor>
                    <Anchor point="RIGHT" relativePoint="RIGHT" x="-15" y="0"></Anchor>
                </Anchors>
                 <Layers>
                     <Layer level="BACKGROUND">
                         <Texture file="Interface\AddOns\GW2_UI\textures\gwstatusbar-bg">
                             
                             <Anchors>
                                 <Anchor point="TOPLEFT" x="-5" y="3"></Anchor>
                                 <Anchor point="BOTTOMRIGHT" x="5" y="-3"></Anchor>
                             </Anchors>
                             <TexCoords left="0" right="0.2" top="0" bottom="1.0"/>
                         </Texture>
    
                     </Layer>
                </Layers>
                <FontString inherits="ChatFontNormal" />
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus()
                    </OnEscapePressed>
                    <OnEditFocusGained>

                    </OnEditFocusGained>
                    <OnEditFocusLost>
                     
                    </OnEditFocusLost>
                    <OnLoad>
                        
                    </OnLoad>
                    <OnEnterPressed>
                        if self:GetParent().method~=nil then
                            self:GetParent().method()
                        end
                        self:GetParent():Hide()
                    </OnEnterPressed>
                </Scripts>
            </EditBox>
            
            <Button name="$parentAccept" inherits="GwStandardButton" text="Accept" parentKey="acceptButton">
                <Size x="85" y="20" />
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-110" y="15"></Anchor>
                </Anchors>
                <Scripts>
					<OnLoad>
						self:SetText(GwLocalization['SETTINGS_ACCEPT'] )
					</OnLoad>
                    <OnClick>
                        if self:GetParent().method~=nil then
                            self:GetParent().method()
                        end
                        self:GetParent():Hide()
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentcancel" inherits="GwStandardButton" text="Cancel" parentKey="cancelButton">
                <Size x="85" y="20" />
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-15" y="15"></Anchor>
                </Anchors>
                <Scripts>
					<OnLoad>
						self:SetText(GwLocalization['SETTINGS_CANCEL'])
					</OnLoad>
                    <OnClick>
                
                        self:GetParent():Hide()
                    </OnClick>
                </Scripts>
            </Button>
        </Frames>
        <Scripts>
            <OnLoad>
                self.string:SetFont(UNIT_NAME_FONT,14)
                self.string:SetTextColor(1,1,1)
            </OnLoad>
        </Scripts>
    </Frame>
    
    <Button name="GwCreateNewProfile" inherits="GwStandardButton" virtual="true" text="New Profile" parentKey="createButton">
        <Size x="70" y="20" />
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
        </Anchors>
        <Scripts>
            <OnLoad>
                self:SetWidth(self:GetTextWidth() + 10)
				self:SetText(GwLocalization['PROFILES_NEW_PROFILE'])
            </OnLoad>
            <OnClick>
                gwInputPromtPromt('New profile name',function() 
                    gw_Add_Settings_Profile(GwWarningPromt.input:GetText())
                    GwWarningPromt:Hide()
                end)
            </OnClick>
                </Scripts>
    </Button>
    
</Ui>
