Quantcast
<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="DJBagsMainBarTemplate" virtual="true">
        <Size x="300" y="25" />
        <Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Buttons\WHITE8x8">
            <EdgeSize>
                <AbsValue val="1" />
            </EdgeSize>
        </Backdrop>
        <Frames>
            <CheckButton name="$parentBagBtn" inherits="UIRadioButtonTemplate">
                <Anchors>
                    <Anchor point="RIGHT" relativePoint="RIGHT" relativeTo="$parent" x="-5"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        DJDBagsBagsButton_OnClick(self)
                    </OnClick>
                </Scripts>
            </CheckButton>
            <Button name="$parentClearButton">
                <Size x="25" y="25" />
                <Anchors>
                    <Anchor point="RIGHT" relativeTo="$parentBagBtn" relativePoint="LEFT" x="-3" />
                </Anchors>
                <NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up" />
                <PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down" />
                <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD">
                    <Size x="22" y="23"/>
                    <Anchors>
                        <Anchor point="CENTER" x="0" y="0"/>
                    </Anchors>
                </HighlightTexture>
                <Scripts>
                    <OnEnter>
                        GameTooltip:SetOwner(self, 'TOPRIGHT')
                        GameTooltip:SetText(DJBags_LOCALE_CLEAR_NEW_ITEMS)
                        GameTooltip:Show()
                    </OnEnter>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                    <OnClick>
                        C_NewItems:ClearAll()
                    </OnClick>
                </Scripts>
            </Button>
            <EditBox name="$parentSearchBox" parentKey="search" inherits="BagSearchBoxTemplate" letters="15">
                <Size x="96" y="18"/>
                <Anchors>
                    <Anchor point="RIGHT" relativeTo="$parentClearButton" relativePoint="LEFT" x="-3" />
                </Anchors>
            </EditBox>
            <Frame name="$parentMoney" inherits="SmallMoneyFrameTemplate" hidden="false">
                <Anchors>
                    <Anchor point="RIGHT" relativeTo="$parentSearchBox" relativePoint="LEFT"/>
                </Anchors>
                <Scripts>
                    <OnLoad>
                        SmallMoneyFrame_OnLoad(self);
                        MoneyFrame_SetType(self, "PLAYER");
                        MoneyFrame_SetMaxDisplayWidth(self, 168);
                    </OnLoad>
                </Scripts>
            </Frame>
        </Frames>
        <Scripts>
            <OnLoad>
                self:SetBackdropColor(0, 0, 0, 0.6)
                self:SetBackdropBorderColor(0.3, 0.3, 0.3, 1)
            </OnLoad>
        </Scripts>
    </Frame>
</Ui>