<GuiXml>
    <Controls>

        <TopLevelControl name="TashDLMainWindowControl" mouseEnabled="true" movable="true" hidden="true">
            <Dimensions x="600" y="600" />
            <Anchor point="TOPRIGHT" relativeTo="GuiRoot" relativePoint="CENTER" offsetX="0" offsetY="-300" />
            <Controls>
                <Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop" />

                <Label name="$(parent)Label" font="ZoFontAnnounceMedium" color="ffffff" text="Chatter memory" alpha="0.85">
                    <Anchor point="TOPLEFT"  relativeTo="$(parent)" relativePoint="TOPLEFT" />
                </Label>

                <Texture name="$(parent)TopDivider" textureFile="/esoui/art/miscellaneous/horizontaldivider.dds" tier="HIGH">
                    <Dimensions x="600" y="4"/>
                    <Anchor point="TOP" relativeTo="$(parent)" offsetY="38" />
                </Texture>

                <Button name="$(parent)ButtonCloseAddon" inherits="ZO_ButtonBehaviorClickSound">
                    <Dimensions x="40" y="40" />
                    <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="15" />
                    <Textures normal="EsoUI/Art/Buttons/closebutton_up.dds"
                              pressed="EsoUI/Art/Buttons/closebutton_down.dds"
                              mouseOver="EsoUI/Art/Buttons/closebutton_mouseover.dds"
                              disabled="EsoUI/Art/Buttons/closebutton_disabled.dds"/>

                    <OnClicked>
                        TashDialogueLog.interface.mainWindow:Toggle()
                    </OnClicked>

                </Button>

                <Control name="$(parent)PhraseList">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)TopDivider" relativePoint="BOTTOMLEFT" />
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/>
                    <Controls>
                        <Label name="$(parent)ShowDuplicatesLabel" text="Duplicates: " font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL">
                            <Anchor point="TOPLEFT" offsetY="5" />
                        </Label>
                        <Label name="$(parent)ShowDuplicatesAll" text="All" font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" mouseEnabled="true" >
                            <Anchor point="TOPLEFT" relativeTo="$(parent)ShowDuplicatesLabel" relativePoint="TOPRIGHT" offsetX="40" />
                            <OnMouseUp>
                                self.list:OnDuplicatesModeButtonClick(TashDialogueLog.constants.IGNORE_DUPLICATES_SHOW_ALL)
                            </OnMouseUp>
                        </Label>
                        <Label name="$(parent)ShowDuplicatesFirst" text="First" font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" mouseEnabled="true" >
                            <Anchor point="TOPLEFT" relativeTo="$(parent)ShowDuplicatesAll" relativePoint="TOPRIGHT" offsetX="25"/>
                            <OnMouseUp>
                                self.list:OnDuplicatesModeButtonClick(TashDialogueLog.constants.IGNORE_DUPLICATES_SHOW_FIRST)
                            </OnMouseUp>
                        </Label>
                        <Label name="$(parent)ShowDuplicatesLast" text="Last" font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" mouseEnabled="true" >
                            <Anchor point="TOPLEFT" relativeTo="$(parent)ShowDuplicatesFirst" relativePoint="TOPRIGHT" offsetX="25"/>
                            <OnMouseUp>
                                self.list:OnDuplicatesModeButtonClick(TashDialogueLog.constants.IGNORE_DUPLICATES_SHOW_LAST)
                            </OnMouseUp>
                        </Label>
                        <Label name="$(parent)AuthorSearchLabel" text="Author: " font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL">
                            <Anchor point="TOPLEFT" offsetY="5" relativeTo="$(parent)ShowDuplicatesLabel" relativePoint="BOTTOMLEFT" />
                            <Dimensions x="80" />
                        </Label>
                        <Backdrop name="$(parent)AuthorSearch" inherits="ZO_EditBackdrop">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)AuthorSearchLabel" relativePoint="TOPRIGHT" offsetX="15" offsetY="-3"/>
                            <Dimensions x="200" />
                            <Controls>
                                <EditBox name="$(parent)Box" inherits="ZO_DefaultEditForBackdrop ZO_EditDefaultText">
                                    <OnInitialized>
                                        ZO_EditDefaultText_Initialize(self, "Enter NPC name")
                                    </OnInitialized>
                                </EditBox>
                            </Controls>
                        </Backdrop>

                        <Label name="$(parent)FullTextSearchLabel" text="Text: " font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)AuthorSearchLabel" offsetY="5" relativePoint="BOTTOMLEFT" />
                            <Dimensions x="80" />
                        </Label>
                        <Backdrop name="$(parent)FullTextSearch" inherits="ZO_EditBackdrop">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)FullTextSearchLabel" relativePoint="TOPRIGHT" offsetX="15" offsetY="-3"/>
                            <Dimensions x="200" />
                            <Controls>
                                <EditBox name="$(parent)Box" inherits="ZO_DefaultEditForBackdrop ZO_EditDefaultText">
                                    <OnInitialized>
                                        ZO_EditDefaultText_Initialize(self, "Enter search phrase")
                                    </OnInitialized>
                                </EditBox>
                            </Controls>
                        </Backdrop>


                        <Control name="$(parent)Headers">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)FullTextSearchLabel" offsetY="5"/>
                            <Dimensions y="32" />

                            <Controls>


                                <!--
                                <Control name="$(parent)ts" inherits="ZO_SortHeader">
                                    <OnInitialized>
                                        ZO_SortHeader_Initialize(self, "Time", "timestamp", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                    </OnInitialized>
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offset="12" />
                                    <Dimensions x="150" y="32" />
                                </Control>
                                <Control name="$(parent)NPC" inherits="ZO_SortHeader">
                                    <OnInitialized>
                                        ZO_SortHeader_Initialize(self, "NPC", "NPC", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                    </OnInitialized>
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)ts" offset="12" relativePoint="TOPRIGHT" />
                                    <Dimensions x="150" y="32" />
                                </Control>
                                <Control name="$(parent)optionText" inherits="ZO_SortHeader">
                                    <OnInitialized>
                                        ZO_SortHeader_Initialize(self, "option", "optionText", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                    </OnInitialized>
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)NPC" offset="12" relativePoint="TOPRIGHT"  />
                                    <Dimensions x="150" y="32" />
                                </Control>
                                <Control name="$(parent)bodyText" inherits="ZO_SortHeader">
                                    <OnInitialized>
                                        ZO_SortHeader_Initialize(self, "Body", "bodyText", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                    </OnInitialized>
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)optionText" offset="12" relativePoint="TOPRIGHT"  />
                                    <Dimensions x="150" y="32" />
                                </Control>

                                -->
                            </Controls>

                        </Control>

                        <Control name="$(parent)List" inherits="ZO_ScrollList">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)Headers" relativePoint="BOTTOMLEFT" />
                            <Anchor point="BOTTOMRIGHT" relativeTo="(parent)" relativePoint="BOTTOMRIGHT" />
                        </Control>
                    </Controls>

                </Control>

            </Controls>
        </TopLevelControl>

        <Button name="TashDLPhraseRow" virtual="true">
            <Dimensions y="70" x="588"/>
            <Anchor point="RIGHT" relativePoint="$(parent)" relativeTo="RIGHT" offsetX="-12" />

            <OnMouseEnter>
                self.obj:OnMouseEnter(self)
            </OnMouseEnter>
            <OnMouseExit>
                self.obj:OnMouseExit(self)
            </OnMouseExit>
            <OnMouseUp>
                -- TashDialogueLog.interface.mainWindow.phraseTooltip:Update(self, button, upInside)
            </OnMouseUp>

            <Controls>
                <Label name="$(parent)Time" font="ZoFontWinH4" wrapMode="ELLIPSIS" text="TIME_LABEL">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" />
                    <Dimensions x="150" y="32" />
                </Label>
                <Label name="$(parent)NPC" font="ZoFontWinH4" wrapMode="ELLIPSIS" text="NPC_LABEL" color="55ab80">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Time" relativePoint="TOPRIGHT" />
                    <Dimensions x="150" y="32" />
                </Label>
                <Label name="$(parent)OptionText" font="ZoFontWinH4" wrapMode="ELLIPSIS" color="c5c29e">
                    <Dimensions x="288" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)NPC"  relativePoint="TOPRIGHT"  />
                </Label>
                <Label name="$(parent)BodyText" font="ZoFontWinH4" wrapMode="ELLIPSIS">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Time" relativePoint="BOTTOMLEFT" />
                    <Dimensions x="588" y="32" />
                </Label>
            </Controls>
        </Button>




        <TopLevelControl name="TashDLPhraseTooltipControl" inherits="TashDLPhraseTooltipTemplate">
            <Anchor point="TOPLEFT" relativeTo="TashDLMainWindowControl" relativePoint="TOPRIGHT" offsetX="12" offsetY="0" />
            <Anchor point="BOTTOMRIGHT" relativeTo="TashDLMainWindowControl" relativePoint="BOTTOMRIGHT" offsetX="612" offsetY="0" />
        </TopLevelControl>

    </Controls>
</GuiXml>