<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="GwQuestviewFrame" hidden="true" frameStrata="DIALOG" enableMouse="true" virtual="true">
        <Size x="1024" y="512"></Size>
        <Anchors>
            <Anchor point="center" x="0" y="0" />
        </Anchors>
        <Layers>
            <Layer textureSubLevel="1" level="BACKGROUND">
                <Texture name="$parentBackgroundBorder" file="Interface\AddOns\GW2_UI\textures\questviewborder">
                    <Size x="1024" y="512"></Size>
                    <Anchors>
                        <Anchor point="center" x="0" y="0" />
                    </Anchors>
                </Texture>
            </Layer>
            <Layer textureSubLevel="2" >
                <Texture name="$parentBackground" file="Interface\AddOns\GW2_UI\textures\questviewbg">
                    <Size x="950" y="475"></Size>
                    <Anchors>
                        <Anchor point="center" x="0" y="0" />
                    </Anchors>
                </Texture>
            </Layer>

        </Layers>
        
        <Frames>
            <Frame name="$parentContainer">
                <Size x="950" y="474"></Size>
                <Anchors>
                    <Anchor point="center" x="0" y="0" />
                </Anchors>
                <Frames>
                    <PlayerModel  frameStrata="DIALOG" name="$parentPlayerModel">
                        <Size x="950" y="474"></Size>
                        <Anchors>
                            <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="1" />
                        </Anchors>
                        <Scripts>
                            <OnLoad>
                               
                              
                       
                                self:SetRotation(0.7)
                                self:SetPosition(-3,-1.2,-0.5)
                    
                                self:SetUnit('player')
                            </OnLoad>
                        </Scripts>
                    </PlayerModel> 
                    <PlayerModel name="$parentGiverModel">
                        <Size x="950" y="474"></Size>
                        <Anchors>
                            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="1" />
                        </Anchors>
                        <Scripts>
                            <OnLoad>
                                
                           
                               
                                    self:SetRotation(-0.7)
                                    self:SetPosition(-3,1.2,-0.5)
                          
                                self:SetUnit('player')
                                
                            </OnLoad>
                        </Scripts>
                    </PlayerModel>
                    
                    <Button name="$parentDialog" frameStrata="DIALOG">
                        <Size x="950" y="474"></Size>
                        <Anchors>
                            <Anchor point="center" x="0" y="0" />
                        </Anchors>
                        <Layers>
                            <Layer level="OVERLAY">
                                <Texture name="$parentBackground" file="Interface\AddOns\GW2_UI\textures\questviewbottom">
                                    <Size x="950" y="475"></Size>
                                    <Anchors>
                                        <Anchor point="center" x="0" y="0" />
                                    </Anchors>
                                </Texture>
                            </Layer>
                            <Layer level="OVERLAY" textureSubLevel="2">
                                <FontString name="$parentString" inherits="GameFontNormal" text="Test text" justify="CENTER">
                                    <Size x="950" y="100"></Size>
                                    <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" />
                                    </Anchors>
                      
                                </FontString>
                                <FontString name="$parentQuestTitle" inherits="GameFontNormal" text="Test text" justify="CENTER">
                                    <Size x="950" y="100"></Size>
                                    <Anchors>
                                        <Anchor point="TOP" relativePoint="TOP" x="0" y="0" />
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnLoad>
                                GwQuestviewFrameContainerDialogString:SetFont(STANDARD_TEXT_FONT,14)
                                GwQuestviewFrameContainerDialogString:SetTextColor(1,1,1)
                                              
                                GwQuestviewFrameContainerDialogQuestTitle:SetTextColor(255/255,197/255,39/255)
                                GwQuestviewFrameContainerDialogQuestTitle:SetFont(DAMAGE_TEXT_FONT,24)
                            </OnLoad>
                        </Scripts>
                    </Button>
                    
                                
                    <Button name="$parentAcceptButton" inherits="GwStandardButton">
                        <Size x="80" y="24" />
                        <Anchors>
                            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"></Anchor>
                        </Anchors>
                 
                    </Button>
                    <Button name="$parentDeclineQuest" text="Decline" inherits="GwStandardButton">
                        <Size x="80" y="24" />
                        <Anchors>
                            <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"></Anchor>
                        </Anchors>
                        <Scripts>
						<OnLoad>
                                GwQuestviewFrameContainerDeclineQuest:SetText(GwLocalization['QUEST_VIEW_DECLINE'])
                            </OnLoad>
                            <OnClick>
                                DeclineQuest();
                                GwQuestviewFrame:Hide()
                            </OnClick>
                        </Scripts>
                    </Button>
                    
                </Frames>
            </Frame>

            
        </Frames>
        
    </Frame>

    
</Ui>
