vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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">
    <Script file = "DepositBox.lua"/>
    <Frame
        name = "DepositBoxUI_Frame"
        frameStrata = "HIGH"
        toplevel = "true">
        <Frames>
            <Button
                name = "DepositBoxUI_Main_BlockButton"
                movable = "true"
                frameStrata = "HIGH"
                toplevel = "true"
                hidden = "false"
                parent = "UIParent"
                enableMouse = "true">
                <Size>
                    <AbsDimension x = "130" y = "32"/>
                </Size>
                <Anchors>
                    <Anchor point = "TOPLEFT" relativePoint = "TOPLEFT"></Anchor>
                </Anchors>
                <Backdrop
                    name = "$parentBackdrop"
                    bgFile = "Interface\TutorialFrame\TutorialFrameBackground"
                    edgeFile = "Interface\DialogFrame\UI-DialogBox-Border"
                    tile = "true">
                    <EdgeSize>
                        <AbsValue val = "16"/>
                    </EdgeSize>
                    <TileSize>
                        <AbsValue val = "32"/>
                    </TileSize>
                    <BackgroundInsets>
                        <AbsInset
                            left = "5"
                            right = "5"
                            top = "5"
                            bottom = "5"/>
                    </BackgroundInsets>
                </Backdrop>
                <Layers>
                    <Layer level = "BACKGROUND">
                        <FontString
                            name = "DepositBoxUI_BlockButtonText"
                            inherits = "GameFontNormal"
                            nonspacewrap = "true"
                            text = "Deposit Box">
                            <Size>
                                <AbsDimension x = "90" y = "12"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER">
                                    <Offset>
                                        <AbsDimension x = "0" y = "1"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
                <Frames>
                    <Frame name = "DepositBoxUI_Main_MoneyDisplayFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor point = "TOP">
                                <Offset>
                                    <AbsDimension x = "-30" y = "1"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Frames>
                            <Button name = "DepositBoxUI_Main_MoneyDisplayCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Main_MoneyDisplayCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "1" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                                <PushedTextOffset x = "0" y = "0"/>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleDepositBox();</OnClick>
                                    <OnMouseUp>
                                        if ( DepositBoxUI_Main_BlockButton.isMoving ) then
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                        end
                                    </OnMouseUp>
                                    <OnDragStart>
                                        DepositBoxUI_Main_BlockButton:StartMoving();
                                        DepositBoxUI_Main_BlockButton.isMoving = true;
                                    </OnDragStart>
                                    <OnDragStop>
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                    </OnDragStop>
                                    <OnShow>this:RegisterForDrag("LeftButton");</OnShow>
                                </Scripts>
                            </Button>
                            <Button name = "DepositBoxUI_Main_MoneyDisplaySilver">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_Main_MoneyDisplayCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-1" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Main_MoneyDisplaySilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "1" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                                <PushedTextOffset x = "0" y = "0"/>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleDepositBox();</OnClick>
                                    <OnMouseUp>
                                        if ( DepositBoxUI_Main_BlockButton.isMoving ) then
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                        end
                                    </OnMouseUp>
                                    <OnDragStart>
                                        DepositBoxUI_Main_BlockButton:StartMoving();
                                        DepositBoxUI_Main_BlockButton.isMoving = true;
                                    </OnDragStart>
                                    <OnDragStop>
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                    </OnDragStop>
                                    <OnShow>this:RegisterForDrag("LeftButton");</OnShow>
                                </Scripts>
                            </Button>
                            <Button name = "DepositBoxUI_Main_MoneyDisplayGold">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_Main_MoneyDisplaySilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-1" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Main_MoneyDisplayGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "RIGHT">
                                    <Anchors>
                                        <Anchor point = "RIGHT">
                                            <Offset>
                                                <AbsDimension x = "-15" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                                <PushedTextOffset x = "0" y = "0"/>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleDepositBox();</OnClick>
                                    <OnMouseUp>
                                        if ( DepositBoxUI_Main_BlockButton.isMoving ) then
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                        end
                                    </OnMouseUp>
                                    <OnDragStart>
                                        DepositBoxUI_Main_BlockButton:StartMoving();
                                        DepositBoxUI_Main_BlockButton.isMoving = true;
                                    </OnDragStart>
                                    <OnDragStop>
                                        DepositBoxUI_Main_BlockButton:StopMovingOrSizing();
                                        DepositBoxUI_Main_BlockButton.isMoving = false;
                                    </OnDragStop>
                                    <OnShow>this:RegisterForDrag("LeftButton");</OnShow>
                                </Scripts>
                            </Button>
                        </Frames>
                    </Frame>
                </Frames>
                <Scripts>
                    <OnClick>DepositBox_ToggleDepositBox();</OnClick>
                    <OnMouseUp>
                        if ( this.isMoving ) then
                        this:StopMovingOrSizing();
                        this.isMoving = false;
                        end
                    </OnMouseUp>
                    <OnDragStart>
                        this:StartMoving();
                        this.isMoving = true;
                    </OnDragStart>
                    <OnDragStop>
                        this:StopMovingOrSizing();
                        this.isMoving = false;
                    </OnDragStop>
                    <OnShow>this:RegisterForDrag("LeftButton");</OnShow>
                </Scripts>
            </Button>
            <!--MINIMAP BUTTON -->
            <Frame
                name = "DepositBoxUI_Main_MiniMapButtonFrame"
                parent = "Minimap"
                enableMouse = "true"
                hidden = "false"
                frameStrata = "MEDIUM">
                <Size>
                    <AbsDimension x = "32" y = "32"/>
                </Size>
                <Anchors>
                    <Anchor
                        point = "TOPLEFT"
                        relativeTo = "Minimap"
                        relativePoint = "RIGHT">
                        <Offset>
                            <AbsDimension x = "2" y = "0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Frames>
                    <Button name = "DepositBoxUI_Main_MiniMapButton">
                        <Size>
                            <AbsDimension x = "32" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor point = "TOPLEFT">
                                <Offset>
                                    <AbsDimension x = "0" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <NormalTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxMiniMapButton-Up"/>
                        <PushedTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxMiniMapButton-Down"/>
                        <HighlightTexture alphaMode = "ADD" file = "Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
                        <Scripts>
                            <OnClick>DepositBox_ToggleDepositBox();</OnClick>
                            <OnEnter>
                                GameTooltip:SetOwner(DepositBoxUI_Main_MiniMapButton, "ANCHOR_LEFT");
                                GameTooltip:SetText("Deposit Box");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                    </Button>
                </Frames>
            </Frame>
            <!--DEPOSIT BOX FRAME -->
            <Frame
                name = "DepositBoxUI_DepositBoxFrame"
                frameStrata = "FULLSCREEN"
                toplevel = "true"
                parent = "UIParent"
                enableMouse = "true">
                <Size>
                    <AbsDimension x = "260" y = "260"/>
                </Size>
                <Backdrop
                    name = "DepositBox_Backdrop"
                    bgFile = "Interface\TutorialFrame\TutorialFrameBackground"
                    edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
                    tile = "true">
                    <EdgeSize>
                        <AbsValue val = "16"/>
                    </EdgeSize>
                    <BackgroundInsets>
                        <AbsInset
                            left = "5"
                            right = "5"
                            top = "5"
                            bottom = "5"/>
                    </BackgroundInsets>
                </Backdrop>
                <Anchors>
                    <Anchor point = "TOP">
                        <Offset>
                            <AbsDimension x = "0" y = "-30"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Frames>
                    <Frame name = "DepositBoxUI_DepositBox_MoneyStoredFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor point = "TOP">
                                <Offset>
                                    <AbsDimension x = "25" y = "-7"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Frames>
                            <Button name = "DepositBoxUI_DepositBox_MoneyStoredCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyStoredCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyStoredSilver">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyStoredCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyStoredSilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyStoredGold">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyStoredSilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyStoredGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "RIGHT">
                                    <Anchors>
                                        <Anchor point = "RIGHT">
                                            <Offset>
                                                <AbsDimension x = "-23" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyStoredLabel">
                                <Size>
                                    <AbsDimension x = "50" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "LEFT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyStoredGold"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-88" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyStoredLabelText"
                                    inherits = "GameFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT"/>
                                    </Anchors>
                                </NormalText>
                                <Scripts>
                                    <OnEnter>DepositBox_ShowTotalMoney();</OnEnter>
                                    <OnLeave>GameTooltip:Hide();</OnLeave>
                                </Scripts>
                            </Button>
                        </Frames>
                    </Frame>
                    <Frame name = "DepositBoxUI_DepositBox_MoneyBagFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPRIGHT"
                                relativeTo = "DepositBoxUI_DepositBox_MoneyStoredFrame"
                                relativePoint = "BOTTOMRIGHT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-20"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Frames>
                            <Button name = "DepositBoxUI_DepositBox_MoneyBagCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyBagCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyBagSilver">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyBagCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyBagSilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyBagGold">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyBagSilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyBagGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "RIGHT">
                                    <Anchors>
                                        <Anchor point = "RIGHT">
                                            <Offset>
                                                <AbsDimension x = "-23" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_MoneyBagLabel">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "LEFT"
                                        relativeTo = "DepositBoxUI_DepositBox_MoneyBagGold"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-88" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_MoneyBagLabelText"
                                    inherits = "GameFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT"/>
                                    </Anchors>
                                </NormalText>
                                <Scripts>
                                    <OnEnter>DepositBox_ShowTotalMoney();</OnEnter>
                                    <OnLeave>GameTooltip:Hide();</OnLeave>
                                </Scripts>
                            </Button>
                        </Frames>
                    </Frame>
                    <Frame name = "DepositBoxUI_DepositBox_MoneyInputFrame" inherits = "MoneyInputFrameTemplate">
                        <Anchors>
                            <Anchor
                                point = "TOPRIGHT"
                                relativeTo = "DepositBoxUI_DepositBox_MoneyBagFrame"
                                relativePoint = "BOTTOMRIGHT">
                                <Offset>
                                    <AbsDimension x = "9" y = "-30"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxUI_DepositBox_MoneyInputLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Money Input:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMLEFT" relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "-47" y = "6"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                    </Frame>
                    <Button name = "DepositBoxUI_DepositBox_ClearButton">
                        <Size>
                            <AbsDimension x = "32" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_MoneyInputLabel"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "-5" y = "-3"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <NormalTexture file = "Interface\Buttons\CancelButton-Up"/>
                        <PushedTexture file = "Interface\Buttons\CancelButton-Down"/>
                        <HighlightTexture alphaMode = "ADD" file = "Interface\Buttons\CancelButton-Highlight"/>
                        <Scripts>
                            <OnClick>
                                MoneyInputFrame_ResetMoney(DepositBoxUI_DepositBox_MoneyInputFrame);
                                MoneyInputFrame_ClearFocus(DepositBoxUI_DepositBox_MoneyInputFrame);
                            </OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                     
                                GameTooltip:SetText("Clear Input");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                    </Button>
                    <Button name = "DepositBoxUI_DepositBox_StoreButton">
                        <Size>
                            <AbsDimension x = "32" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "LEFT"
                                relativeTo = "DepositBoxUI_DepositBox_MoneyBagFrame"
                                relativePoint = "CENTER">
                                <Offset>
                                    <AbsDimension x = "15" y = "25"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <NormalTexture file = "Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
                        <PushedTexture file = "Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
                        <HighlightTexture alphaMode = "ADD" file = "Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight"/>
                        <Scripts>
                            <OnClick>
                                if (GetCursorMoney() > 0) then
                                DropCursorMoney();
                                end                                                     
                                DepositBox_StoreCash();
                            </OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Deposit Money");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                    </Button>
                    <Button name = "DepositBoxUI_DepositBox_RetrieveButton">
                        <Size>
                            <AbsDimension x = "32" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "LEFT"
                                relativeTo = "DepositBoxUI_DepositBox_StoreButton"
                                relativePoint = "RIGHT">
                                <Offset>
                                    <AbsDimension x = "10" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <NormalTexture file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
                        <PushedTexture file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
                        <HighlightTexture alphaMode = "ADD" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight"/>
                        <Scripts>
                            <OnClick>
                                if (GetCursorMoney() > 0) then
                                DropCursorMoney();
                                end
                                DepositBox_RetrieveCash();
                            </OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Withdraw Money");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                    </Button>
                    <CheckButton name = "DepositBoxUI_DepositBox_DirectCheckButton">
                        <Size>
                            <AbsDimension x = "30" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_ClearButton"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "3" y = "-25"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxDirectLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Direct Deposit:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMLEFT" relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "0" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnClick>DepositBox_ToggleUsingDirectDeposit();</OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Toggle Direct Deposit");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                        <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT"/>
                            </Anchors>
                        </NormalTexture>
                        <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT">
                                    <Offset>
                                        <AbsDimension x = "0" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </HighlightTexture>
                        <CheckedTexture name = "$parentCheck" file = "Interface\Buttons\UI-CheckBox-Check"/>
                    </CheckButton>
                    <Slider
                        name = "DepositBoxUI_DepositBox_PercentageSlider"
                        orientation = "HORIZONTAL"
                        minValue = "1"
                        maxValue = "100"
                        valueStep = "1"
                        defaultValue = "1">
                        <Size>
                            <AbsDimension x = "150" y = "16"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_DirectCheckButton"
                                relativePoint = "TOPLEFT">
                                <Offset>
                                    <AbsDimension x = "50" y = "-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Backdrop
                            bgFile = "Interface\Buttons\UI-SliderBar-Background"
                            edgeFile = "Interface\Buttons\UI-SliderBar-Border"
                            tile = "true">
                            <EdgeSize>
                                <AbsValue val = "8"/>
                            </EdgeSize>
                            <TileSize>
                                <AbsValue val = "8"/>
                            </TileSize>
                            <BackgroundInsets>
                                <AbsInset
                                    left = "3"
                                    right = "3"
                                    top = "6"
                                    bottom = "6"/>
                            </BackgroundInsets>
                        </Backdrop>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString name = "$parentText" inherits = "GameFontNormalSmall">
                                    <Anchors>
                                        <Anchor point = "BOTTOM" relativePoint = "TOP"/>
                                    </Anchors>
                                </FontString>
                                <FontString inherits = "GameFontHighlightSmall" text = "1%">
                                    <Anchors>
                                        <Anchor point = "TOP" relativePoint = "BOTTOMLEFT"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString inherits = "GameFontHighlightSmall" text = "100%">
                                    <Anchors>
                                        <Anchor point = "TOP" relativePoint = "BOTTOMRIGHT"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString
                                    name = "DepositBoxPercentageText"
                                    inherits = "GameFontHighlightSmall"
                                    text = "1%">
                                    <Anchors>
                                        <Anchor point = "BOTTOM" relativePoint = "TOP"></Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnValueChanged>DepositBox_OnValueChanged();</OnValueChanged>
                        </Scripts>
                        <ThumbTexture file = "Interface\Buttons\UI-SliderBar-Button-Vertical">
                            <Size>
                                <AbsDimension x = "32" y = "32"/>
                            </Size>
                        </ThumbTexture>
                    </Slider>
                    <CheckButton name = "DepositBoxUI_DepositBox_ThresholdCheckButton">
                        <Size>
                            <AbsDimension x = "30" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_DirectCheckButton"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-20"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxThresholdLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Bag Threshold:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMLEFT" relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "0" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnClick>DepositBox_ToggleUsingThreshold();</OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Toggle Using a Bag Money Threshold");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                        <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP"/>
                        <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD"/>
                        <CheckedTexture file = "Interface\Buttons\UI-CheckBox-Check"/>
                        <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER">
                                    <Offset>
                                        <AbsDimension x = "0" y = "2"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </DisabledTexture>
                        <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Disabled"/>
                    </CheckButton>
                    <Frame name = "DepositBoxUI_DepositBox_ThresholdFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_ThresholdCheckButton"
                                relativePoint = "TOPRIGHT">
                                <Offset>
                                    <AbsDimension x = "13" y = "2"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Frames>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdSilver">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_ThresholdCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdSilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdGold">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_ThresholdSilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-13" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                        </Frames>
                        <Scripts>
                            <OnShow>DepositBox_UpdateThresholdDisplay();</OnShow>
                        </Scripts>
                    </Frame>
                    <!--<Frame name = "DepositBoxUI_DepositBox_ThresholdDisplayFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_ThresholdCheckButton"
                                relativePoint = "TOPRIGHT">
                                <Offset>
                                    <AbsDimension x = "13" y = "1"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Frames>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdSilver">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_ThresholdCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdSilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_DepositBox_ThresholdGold">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_DepositBox_ThresholdSilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_DepositBox_ThresholdGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-13" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                        </Frames>
                        <Scripts>
                            <OnShow>DepositBox_UpdateThresholdDisplay();</OnShow>
                        </Scripts>
                    </Frame>-->
                    <Frame name = "DepositBoxUI_DepositBox_ThresholdInputFrame" inherits = "MoneyInputFrameTemplate">
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBox_ThresholdFrame"
                                relativePoint = "TOPLEFT">
                                <Offset>
                                    <AbsDimension x = "3" y = "-6"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnHide>
                                if (DepositBoxUI_DepositBox_ThresholdFrame ~= nil) then
                                DepositBoxUI_DepositBox_ThresholdFrame:Show();
                                end
                            </OnHide>
                            <OnShow>
                                if (DepositBoxUI_DepositBox_ThresholdFrame ~= nil) then
                                DepositBoxUI_DepositBox_ThresholdFrame:Hide();
                                end
                            </OnShow>
                        </Scripts>
                    </Frame>
                </Frames>
                <Scripts>
                    <OnShow>
                        if (DepositBoxUI_OptionsFrame ~= nil) then
                        DepositBoxUI_OptionsFrame:Hide();
                        end
                        if (DepositBoxUI_OptionsTab ~= nil) then
                        DepositBoxUI_OptionsTab:SetChecked(0);
                        end
                        if (DepositBoxUI_DepositBoxTab ~= nil) then
                        DepositBoxUI_DepositBoxTab:SetChecked(1);
                        end
                    </OnShow>
                </Scripts>
            </Frame>
            <!--OPTIONS FRAME -->
            <Frame
                name = "DepositBoxUI_OptionsFrame"
                frameStrata = "HIGH"
                toplevel = "true"
                parent = "UIParent"
                enableMouse = "true">
                <Size>
                    <AbsDimension x = "260" y = "260"/>
                </Size>
                <Backdrop
                    bgFile = "Interface\TutorialFrame\TutorialFrameBackground"
                    edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
                    tile = "true">
                    <EdgeSize>
                        <AbsValue val = "16"/>
                    </EdgeSize>
                    <BackgroundInsets>
                        <AbsInset
                            left = "5"
                            right = "5"
                            top = "5"
                            bottom = "5"/>
                    </BackgroundInsets>
                </Backdrop>
                <Anchors>
                    <Anchor
                        point = "TOPLEFT"
                        relativeTo = "DepositBoxUI_DepositBoxFrame"
                        relativePoint = "TOPLEFT">
                        <Offset>
                            <AbsDimension x = "0" y = "0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnShow>
                        DepositBoxUI_DepositBoxFrame:Hide();
                        DepositBoxUI_OptionsTab:SetChecked(1);
                        DepositBoxUI_DepositBoxTab:SetChecked(0);
                    </OnShow>
                    <OnLoad>DepositBoxUI_OptionsFrame:Hide();</OnLoad>
                </Scripts>
                <Frames>
                    <Slider
                        name = "DepositBoxUI_Options_MiniMapSlider"
                        orientation = "HORIZONTAL"
                        minValue = "1"
                        maxValue = "360"
                        valueStep = "1"
                        defaultValue = "1">
                        <Size>
                            <AbsDimension x = "150" y = "16"/>
                        </Size>
                        <Anchors>
                            <Anchor point = "TOP" relativePoint = "TOP">
                                <Offset>
                                    <AbsDimension x = "20" y = "-30"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Backdrop
                            bgFile = "Interface\Buttons\UI-SliderBar-Background"
                            edgeFile = "Interface\Buttons\UI-SliderBar-Border"
                            tile = "true">
                            <EdgeSize>
                                <AbsValue val = "8"/>
                            </EdgeSize>
                            <TileSize>
                                <AbsValue val = "8"/>
                            </TileSize>
                            <BackgroundInsets>
                                <AbsInset
                                    left = "3"
                                    right = "3"
                                    top = "6"
                                    bottom = "6"/>
                            </BackgroundInsets>
                        </Backdrop>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxUI_Options_MiniMapLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Minimap Button:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMRIGHT" relativePoint = "TOP">
                                            <Offset>
                                                <AbsDimension x = "-37" y = "10"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString inherits = "GameFontHighlightSmall" text = "1">
                                    <Anchors>
                                        <Anchor point = "TOP" relativePoint = "BOTTOMLEFT"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString inherits = "GameFontHighlightSmall" text = "360">
                                    <Anchors>
                                        <Anchor point = "TOP" relativePoint = "BOTTOMRIGHT"></Anchor>
                                    </Anchors>
                                </FontString>
                                <FontString
                                    name = "DepositBoxUI_Options_MiniMapSliderText"
                                    inherits = "GameFontHighlightSmall"
                                    text = "1">
                                    <Anchors>
                                        <Anchor point = "BOTTOM" relativePoint = "TOP"></Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnValueChanged>DepositBox_MiniMapOnValueChanged();</OnValueChanged>
                        </Scripts>
                        <ThumbTexture file = "Interface\Buttons\UI-SliderBar-Button-Vertical">
                            <Size>
                                <AbsDimension x = "32" y = "32"/>
                            </Size>
                        </ThumbTexture>
                    </Slider>
                    <CheckButton name = "DepositBoxUI_Options_MiniMapCheckButton">
                        <Size>
                            <AbsDimension x = "30" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MiniMapLabel"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "-4" y = "-3"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>DepositBox_ToggleMiniMapButton();</OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Toggle MiniMap Button");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                        <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT"/>
                            </Anchors>
                        </NormalTexture>
                        <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT">
                                    <Offset>
                                        <AbsDimension x = "0" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </HighlightTexture>
                        <CheckedTexture name = "$parentCheck" file = "Interface\Buttons\UI-CheckBox-Check"/>
                        <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER">
                                    <Offset>
                                        <AbsDimension x = "0" y = "1"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </DisabledTexture>
                        <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Check-Disabled"/>
                    </CheckButton>
                    <!--Money Display -->
                    <Frame name = "DepositBoxUI_Options_MoneyDisplayFrame">
                        <Size>
                            <AbsDimension x = "60" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MiniMapSlider"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-40"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxUI_Options_MoneyDisplayLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Money Display:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMLEFT" relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "-50" y = "6"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Frames>
                            <CheckButton name = "DepositBoxUI_Options_MoneyDisplayCheckButton">
                                <Size>
                                    <AbsDimension x = "30" y = "30"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "TOPLEFT"
                                        relativeTo = "DepositBoxUI_Options_MoneyDisplayLabel"
                                        relativePoint = "BOTTOMLEFT">
                                        <Offset>
                                            <AbsDimension x = "-4" y = "-3"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleUsingMoneyDisplay();</OnClick>
                                    <OnEnter>
                                        if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                        else
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                        end                                                                     
                                        GameTooltip:SetText("Toggle Money Display");
                                    </OnEnter>
                                    <OnLeave>GameTooltip:Hide();</OnLeave>
                                </Scripts>
                                <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP"/>
                                <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD"/>
                                <CheckedTexture file = "Interface\Buttons\UI-CheckBox-Check"/>
                                <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                                    <Size>
                                        <AbsDimension x = "30" y = "30"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "CENTER">
                                            <Offset>
                                                <AbsDimension x = "0" y = "2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </DisabledTexture>
                                <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Check-Disabled"/>
                            </CheckButton>
                            <CheckButton name = "DepositBoxUI_Options_MoneyDisplay_BagCheckButton">
                                <Size>
                                    <AbsDimension x = "20" y = "20"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "TOPLEFT"
                                        relativeTo = "DepositBoxUI_Options_MoneyDisplayCheckButton"
                                        relativePoint = "TOPRIGHT">
                                        <Offset>
                                            <AbsDimension x = "40" y = "-6"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleMoneyDisplayType("Bag");</OnClick>
                                    <OnEnter>
                                        if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                        else
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                        end                                                                     
                                        GameTooltip:SetText("Display Bag Money");
                                    </OnEnter>
                                    <OnLeave>GameTooltip:Hide();</OnLeave>
                                </Scripts>
                                <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP"/>
                                <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD"/>
                                <CheckedTexture file = "Interface\Buttons\UI-CheckBox-Check"/>
                                <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                                    <Size>
                                        <AbsDimension x = "20" y = "20"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "CENTER">
                                            <Offset>
                                                <AbsDimension x = "0" y = "1"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </DisabledTexture>
                                <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Check-Disabled"/>
                                <NormalText
                                    inherits = "GameFontHighlightSmall"
                                    justifyH = "LEFT"
                                    text = "Bag:">
                                    <Anchors>
                                        <Anchor
                                            point = "RIGHT"
                                            relativeTo = "DepositBoxUI_Options_MoneyDisplay_BagCheckButton"
                                            relativePoint = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "0" y = "2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                                <PushedTextOffset x = "0" y = "0"/>
                            </CheckButton>
                            <CheckButton name = "DepositBoxUI_Options_MoneyDisplay_BoxCheckButton">
                                <Size>
                                    <AbsDimension x = "20" y = "20"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "TOPLEFT"
                                        relativeTo = "DepositBoxUI_Options_MoneyDisplay_BagCheckButton"
                                        relativePoint = "TOPRIGHT">
                                        <Offset>
                                            <AbsDimension x = "50" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <Scripts>
                                    <OnClick>DepositBox_ToggleMoneyDisplayType("Box");</OnClick>
                                    <OnEnter>
                                        if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                        else
                                        GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                        end                                                                     
                                        GameTooltip:SetText("Display Stored Money");
                                    </OnEnter>
                                    <OnLeave>GameTooltip:Hide();</OnLeave>
                                </Scripts>
                                <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP"/>
                                <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD"/>
                                <CheckedTexture file = "Interface\Buttons\UI-CheckBox-Check"/>
                                <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                                    <Size>
                                        <AbsDimension x = "20" y = "20"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "CENTER">
                                            <Offset>
                                                <AbsDimension x = "0" y = "1"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </DisabledTexture>
                                <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Check-Disabled"/>
                                <NormalText
                                    inherits = "GameFontHighlightSmall"
                                    justifyH = "LEFT"
                                    text = "Stored:">
                                    <Anchors>
                                        <Anchor
                                            point = "RIGHT"
                                            relativeTo = "DepositBoxUI_Options_MoneyDisplay_BoxCheckButton"
                                            relativePoint = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "0" y = "2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                                <PushedTextOffset x = "0" y = "0"/>
                            </CheckButton>
                        </Frames>
                    </Frame>
                    <!--Money Alert / Storage Target Frame -->
                    <Frame name = "DepositBoxUI_Options_MoneyInputFrame" inherits = "MoneyInputFrameTemplate">
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MoneyDisplayFrame"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-20"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString
                                    name = "DepositBoxUI_Options_MoneyAlertLabel"
                                    inherits = "GameFontHighlightSmall"
                                    text = "Storage Target:">
                                    <Anchors>
                                        <Anchor point = "BOTTOMLEFT" relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "-50" y = "6"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Scripts>
                            <OnHide>
                                if (DepositBoxUI_Options_MoneyAlertFrame ~= nil) then
                                DepositBoxUI_Options_MoneyAlertFrame:Show();
                                end
                            </OnHide>
                            <OnShow>
                                if (DepositBoxUI_Options_MoneyAlertFrame ~= nil) then
                                DepositBoxUI_Options_MoneyAlertFrame:Hide();
                                end
                            </OnShow>
                        </Scripts>
                    </Frame>
                    <CheckButton name = "DepositBoxUI_Options_MoneyAlertCheckButton">
                        <Size>
                            <AbsDimension x = "30" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MoneyAlertLabel"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "-4" y = "-3"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>DepositBox_ToggleUsingMoneyAlert();</OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Toggle Using a Storage Target");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                        <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP"/>
                        <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD"/>
                        <CheckedTexture file = "Interface\Buttons\UI-CheckBox-Check"/>
                        <DisabledTexture file = "Interface\AddOns\DepositBox\Images\DepositBoxCheckDisabled">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER">
                                    <Offset>
                                        <AbsDimension x = "0" y = "2"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </DisabledTexture>
                        <DisabledCheckedTexture file = "Interface\Buttons\UI-CheckBox-Disabled"/>
                    </CheckButton>
                    <Frame name = "DepositBoxUI_Options_MoneyAlertFrame">
                        <Size>
                            <AbsDimension x = "170" y = "32"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MoneyInputFrame"
                                relativePoint = "TOPLEFT">
                                <Offset>
                                    <AbsDimension x = "-3" y = "6"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer level = "ARTWORK">
                                <FontString inherits = "GameFontHighlightSmall" text = "Storage Target:">
                                    <Anchors>
                                        <Anchor
                                            point = "TOPLEFT"
                                            relativeTo = "DepositBoxUI_Options_MoneyAlertLabel"
                                            relativePoint = "TOPLEFT">
                                            <Offset>
                                                <AbsDimension x = "0" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                        <Frames>
                            <Button name = "DepositBoxUI_Options_MoneyAlertCopper">
                                <Size>
                                    <AbsDimension x = "32" y = "13"/>
                                </Size>
                                <Anchors>
                                    <Anchor point = "RIGHT">
                                        <Offset>
                                            <AbsDimension x = "-2" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.5"
                                        right = "0.75"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Options_MoneyAlertCopperText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_Options_MoneyAlertSilver">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_Options_MoneyAlertCopper"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0.25"
                                        right = "0.5"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Options_MoneyAlertSilverText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-3" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                            <Button name = "DepositBoxUI_Options_MoneyAlertGold">
                                <Size>
                                    <AbsDimension x = "32" y = "12"/>
                                </Size>
                                <Anchors>
                                    <Anchor
                                        point = "RIGHT"
                                        relativeTo = "DepositBoxUI_Options_MoneyAlertSilver"
                                        relativePoint = "LEFT">
                                        <Offset>
                                            <AbsDimension x = "-14" y = "0"/>
                                        </Offset>
                                    </Anchor>
                                </Anchors>
                                <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                                    <Size>
                                        <AbsDimension x = "13" y = "13"/>
                                    </Size>
                                    <Anchors>
                                        <Anchor point = "RIGHT"/>
                                    </Anchors>
                                    <TexCoords
                                        left = "0"
                                        right = "0.25"
                                        top = "0"
                                        bottom = "1"/>
                                </NormalTexture>
                                <NormalText
                                    name = "DepositBoxUI_Options_MoneyAlertGoldText"
                                    inherits = "NumberFontNormal"
                                    justifyH = "LEFT">
                                    <Anchors>
                                        <Anchor point = "LEFT">
                                            <Offset>
                                                <AbsDimension x = "-13" y = "0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </NormalText>
                            </Button>
                        </Frames>
                        <Scripts>
                            <OnShow>DepositBox_UpdateMoneyAlertDisplay();</OnShow>
                        </Scripts>
                    </Frame>
                    <Button
                        name = "DepositBoxUI_Options_HideButton"
                        inherits = "OptionsButtonTemplate"
                        text = "Hide">
                        <Size>
                            <AbsDimension x = "80" y = "20"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPRIGHT"
                                relativeTo = "DepositBoxUI_Options_MoneyAlertFrame"
                                relativePoint = "BOTTOMRIGHT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-25"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                if (DepositBoxUI_Options_MoneyAlertCheckButton:GetChecked() ~= nil) then
                                DepositBox_PerformTargetHide();
                                end
                            </OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Hide until target is reached");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                    </Button>
                    <CheckButton name = "DepositBoxUI_Options_CompatableCheckButton">
                        <Size>
                            <AbsDimension x = "30" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Options_MoneyAlertCheckButton"
                                relativePoint = "BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x = "0" y = "-25"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>DepositBox_ToggleACMode();</OnClick>
                            <OnEnter>
                                if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
                                else
                                GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
                                end                                                                     
                                GameTooltip:SetText("Toggle Compatibility with Accountant type Addons");
                            </OnEnter>
                            <OnLeave>GameTooltip:Hide();</OnLeave>
                        </Scripts>
                        <NormalTexture file = "Interface\Buttons\UI-CheckBox-UP">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT"/>
                            </Anchors>
                        </NormalTexture>
                        <HighlightTexture file = "Interface\Buttons\UI-CheckBox-Highlight" alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "30" y = "30"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "TOPLEFT">
                                    <Offset>
                                        <AbsDimension x = "0" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </HighlightTexture>
                        <CheckedTexture name = "$parentCheck" file = "Interface\Buttons\UI-CheckBox-Check"/>
                        <NormalText
                            inherits = "GameFontHighlightSmall"
                            justifyH = "LEFT"
                            text = "AC Mode:">
                            <Anchors>
                                <Anchor
                                    point = "BOTTOMLEFT"
                                    relativeTo = "DepositBoxUI_Options_CompatableCheckButton"
                                    relativePoint = "TOPLEFT">
                                    <Offset>
                                        <AbsDimension x = "4" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </NormalText>
                        <PushedTextOffset x = "0" y = "0"/>
                    </CheckButton>
                </Frames>
            </Frame>
            <!--TABS -->
            <Frame
                name = "DepositBoxUI_Main_TabsFrame"
                parent = "UIParent"
                toplevel = "true"
                frameStrata = "HIGH">
                <Size>
                    <AbsDimension x = "200" y = "30"/>
                </Size>
                <Frames>
                    <!--Storage Tab -->
                    <CheckButton name = "DepositBoxUI_DepositBoxTab">
                        <Size>
                            <AbsDimension x = "80" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_Main_TabsFrame"
                                relativePoint = "TOPLEFT">
                            </Anchor>
                        </Anchors>
                        <Backdrop
                            bgFile = "Interface\TutorialFrame\TutorialFrameBackground"
                            edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
                            tile = "true">
                            <EdgeSize>
                                <AbsValue val = "16"/>
                            </EdgeSize>
                            <BackgroundInsets>
                                <AbsInset
                                    left = "5"
                                    right = "5"
                                    top = "5"
                                    bottom = "5"/>
                            </BackgroundInsets>
                        </Backdrop>
                        <Layers>
                            <Layer level = "BACKGROUND">
                                <FontString
                                    inherits = "GameFontNormal"
                                    nonspacewrap = "true"
                                    text = "Storage">
                                    <Size>
                                        <AbsDimension x = "90" y = "12"/>
                                    </Size>
                                </FontString>
                            </Layer>
                        </Layers>
                        <CheckedTexture
                            name = "$parentCheck"
                            file = "Interface\Buttons\CheckButtonHilight"
                            alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "76" y = "26"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER"/>
                            </Anchors>
                        </CheckedTexture>
                        <HighlightTexture
                            name = "$parentCheck"
                            file = "Interface\Buttons\ButtonHilight-Square"
                            alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "76" y = "26"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER"/>
                            </Anchors>
                        </HighlightTexture>
                        <Scripts>
                            <OnClick>
                                if (DepositBoxUI_DepositBoxFrame:IsShown()) then
                                DepositBoxUI_DepositBoxTab:SetChecked(1);
                                end
                                DepositBoxUI_DepositBoxFrame:Show();
                                DepositBoxUI_OptionsTab:SetChecked(0);
                            </OnClick>
                        </Scripts>
                    </CheckButton>
                    <!--Options Tab -->
                    <CheckButton name = "DepositBoxUI_OptionsTab">
                        <Size>
                            <AbsDimension x = "80" y = "30"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "TOPLEFT"
                                relativeTo = "DepositBoxUI_DepositBoxTab"
                                relativePoint = "TOPRIGHT">
                                <Offset>
                                    <AbsDimension x = "1" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Backdrop
                            bgFile = "Interface\TutorialFrame\TutorialFrameBackground"
                            edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
                            tile = "true">
                            <EdgeSize>
                                <AbsValue val = "16"/>
                            </EdgeSize>
                            <BackgroundInsets>
                                <AbsInset
                                    left = "5"
                                    right = "5"
                                    top = "5"
                                    bottom = "5"/>
                            </BackgroundInsets>
                        </Backdrop>
                        <Layers>
                            <Layer level = "BACKGROUND">
                                <FontString
                                    inherits = "GameFontNormal"
                                    nonspacewrap = "true"
                                    text = "Options">
                                    <Size>
                                        <AbsDimension x = "90" y = "12"/>
                                    </Size>
                                </FontString>
                            </Layer>
                        </Layers>
                        <CheckedTexture
                            name = "$parentCheck"
                            file = "Interface\Buttons\CheckButtonHilight"
                            alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "76" y = "26"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER"/>
                            </Anchors>
                        </CheckedTexture>
                        <HighlightTexture
                            name = "$parentCheck"
                            file = "Interface\Buttons\ButtonHilight-Square"
                            alphaMode = "ADD">
                            <Size>
                                <AbsDimension x = "76" y = "26"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "CENTER"/>
                            </Anchors>
                        </HighlightTexture>
                        <Scripts>
                            <OnClick>
                                if (DepositBoxUI_OptionsFrame:IsShown()) then
                                DepositBoxUI_DepositBoxTab:SetChecked(0);
                                DepositBoxUI_OptionsTab:SetChecked(1);
                                end
                                DepositBoxUI_DepositBoxTab:SetChecked(0);
                                DepositBoxUI_OptionsFrame:Show();
                            </OnClick>
                        </Scripts>
                    </CheckButton>
                </Frames>
            </Frame>
        </Frames>
        <Scripts>
            <OnLoad>
                DepositBoxUI_DepositBox_MoneyStoredCopperText:SetText("0");
                DepositBoxUI_DepositBox_MoneyStoredSilverText:SetText("0");
                DepositBoxUI_DepositBox_MoneyStoredGoldText:SetText("0");
                DepositBoxUI_DepositBox_MoneyStoredLabelText:SetText("Stored:");
                
                DepositBoxUI_DepositBox_MoneyBagCopperText:SetText("0");
                DepositBoxUI_DepositBox_MoneyBagSilverText:SetText("0");
                DepositBoxUI_DepositBox_MoneyBagGoldText:SetText("0");
                DepositBoxUI_DepositBox_MoneyBagLabelText:SetText("Bag:");
                
                DepositBoxUI_DepositBoxFrame:Hide();
                DepositBoxUI_OptionsFrame:Hide();
                DepositBoxUI_Main_BlockButton:Hide();
                DepositBoxUI_Main_MiniMapButtonFrame:Hide();
                DepositBoxUI_Main_TabsFrame:Hide();
                
                DepositBox_OnLoad();
            </OnLoad>
            <OnEvent>DepositBox_OnEvent();</OnEvent>
        </Scripts>
    </Frame>
    <Frame parent = "UIParent">
        <Frames>
            <Button
                name = "TitanPanelDepositBoxButton"
                inherits = "TitanPanelComboTemplate"
                frameStrata = "FULLSCREEN"
                toplevel = "true">
                <Frames>
                    <Button
                        name = "$parentGoldButton"
                        inherits = "TitanPanelChildButtonTemplate"
                        hidden = "false">
                        <Size>
                            <AbsDimension x = "32" y = "13"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "LEFT"
                                relativeTo = "$parentText"
                                relativePoint = "RIGHT">
                                <Offset>
                                    <AbsDimension x = "2" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                if(TitanPanelBarButton~=nil) then
                                if (arg1 == "LeftButton") then
                                DepositBox_ToggleDepositBox();
                                end
                                TitanPanelButton_OnClick(arg1)
                                end
                            </OnClick>
                        </Scripts>
                        <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                            <Size>
                                <AbsDimension x = "13" y = "13"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "RIGHT"/>
                            </Anchors>
                            <TexCoords
                                left = "0"
                                right = "0.25"
                                top = "0"
                                bottom = "1"/>
                        </NormalTexture>
                        <NormalText
                            name = "$parentText"
                            inherits = "GameFontHighlightSmall"
                            justifyH = "LEFT">
                            <Anchors>
                                <Anchor point = "RIGHT">
                                    <Offset>
                                        <AbsDimension x = "-14" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </NormalText>
                        <PushedTextOffset x = "0" y = "0"/>
                    </Button>
                    <Button
                        name = "$parentSilverButton"
                        inherits = "TitanPanelChildButtonTemplate"
                        hidden = "false">
                        <Size>
                            <AbsDimension x = "32" y = "13"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "LEFT"
                                relativeTo = "$parentGoldButton"
                                relativePoint = "RIGHT">
                                <Offset>
                                    <AbsDimension x = "-1" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                if(TitanPanelBarButton~=nil) then
                                if (arg1 == "LeftButton") then
                                DepositBox_ToggleDepositBox();
                                end
                                TitanPanelButton_OnClick(arg1)
                                end
                            </OnClick>
                        </Scripts>
                        <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                            <Size>
                                <AbsDimension x = "13" y = "13"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "RIGHT"/>
                            </Anchors>
                            <TexCoords
                                left = "0.25"
                                right = "0.5"
                                top = "0"
                                bottom = "1"/>
                        </NormalTexture>
                        <NormalText
                            name = "$parentText"
                            inherits = "GameFontHighlightSmall"
                            justifyH = "LEFT">
                            <Anchors>
                                <Anchor point = "LEFT">
                                    <Offset>
                                        <AbsDimension x = "3" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </NormalText>
                        <PushedTextOffset x = "0" y = "0"/>
                    </Button>
                    <Button
                        name = "$parentCopperButton"
                        inherits = "TitanPanelChildButtonTemplate"
                        hidden = "false">
                        <Size>
                            <AbsDimension x = "32" y = "13"/>
                        </Size>
                        <Anchors>
                            <Anchor
                                point = "LEFT"
                                relativeTo = "$parentSilverButton"
                                relativePoint = "RIGHT">
                                <Offset>
                                    <AbsDimension x = "-1" y = "0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                if(TitanPanelBarButton~=nil) then
                                if (arg1 == "LeftButton") then
                                DepositBox_ToggleDepositBox();
                                end
                                TitanPanelButton_OnClick(arg1)
                                end
                            </OnClick>
                        </Scripts>
                        <NormalTexture file = "Interface\MoneyFrame\UI-MoneyIcons">
                            <Size>
                                <AbsDimension x = "13" y = "13"/>
                            </Size>
                            <Anchors>
                                <Anchor point = "RIGHT"/>
                            </Anchors>
                            <TexCoords
                                left = "0.5"
                                right = "0.75"
                                top = "0"
                                bottom = "1"/>
                        </NormalTexture>
                        <NormalText
                            name = "$parentText"
                            inherits = "GameFontHighlightSmall"
                            justifyH = "LEFT">
                            <Anchors>
                                <Anchor point = "LEFT">
                                    <Offset>
                                        <AbsDimension x = "3" y = "0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </NormalText>
                        <PushedTextOffset x = "0" y = "0"/>
                    </Button>
                </Frames>
                <Scripts>
                    <OnLoad>
                        if(TitanPanelBarButton ~= nil) then
                        DepositBox_Titan_OnLoad();
                        TitanPanelButton_OnLoad();
                        end
                    </OnLoad>
                    <OnClick>
                        if(TitanPanelBarButton ~= nil) then
                        if (arg1 == "LeftButton") then
                        DepositBox_ToggleDepositBox();
                        end
                        TitanPanelButton_OnClick(arg1)
                        end
                    </OnClick>
                </Scripts>
            </Button>
        </Frames>
    </Frame>
</Ui>