vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<!--
        Version: 3.9.0.1000 (Kangaroo)
        Revision: $Id: AuctioneerUI.xml 675 2006-01-05 19:33:38Z mentalpower $

        License:
                This program is free software; you can redistribute it and/or
                modify it under the terms of the GNU General Public License
                as published by the Free Software Foundation; either version 2
                of the License, or (at your option) any later version.

                This program is distributed in the hope that it will be useful,
                but WITHOUT ANY WARRANTY; without even the implied warranty of
                MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                GNU General Public License for more details.

                You should have received a copy of the GNU General Public License
                along with this program(see GPL.txt); if not, write to the Free Software
                Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-->
        <Script file="AuctioneerUI.lua"/>

        <Frame name="AuctionFrameTemplate" virtual="true">
                <Size>
                        <AbsDimension x="758" y="447"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT"/>
                </Anchors>
                <Frames>
                        <Button name="$parentCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
                                <Size>
                                        <AbsDimension x="80" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="66" y="14"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>HideUIPanel(this:GetParent():GetParent());</OnClick>
                                </Scripts>
                        </Button>
                </Frames>
        </Frame>

        <Frame name="AuctioneerMoneyInputFrameTemplate" virtual="true">
                <Size>
                        <AbsDimension x="176" y="18"/>
                </Size>
                <Frames>
                        <EditBox name="$parentGold" letters="5" historyLines="0" numeric="true" autoFocus="false">
                                <Size>
                                        <AbsDimension x="50" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="-5" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-10" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="10" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                                <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture file="Interface\MoneyFrame\UI-MoneyIcons">
                                                        <Size>
                                                                <AbsDimension x="13" y="13"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-8" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.25" top="0" bottom="1"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() and this:GetParent().previousFocus ) then
                                                        this:GetParent().previousFocus:SetFocus();
                                                else
                                                        getglobal(this:GetParent():GetName().."Silver"):SetFocus();
                                                end
                                        </OnTabPressed>
                                        <OnEnterPressed>
                                                getglobal(this:GetParent():GetName().."Silver"):SetFocus();
                                        </OnEnterPressed>
                                        <OnEscapePressed>
                                                this:ClearFocus();
                                        </OnEscapePressed>
                                        <OnTextChanged>
                                                MoneyInputFrame_OnTextChanged(this:GetParent());
                                        </OnTextChanged>
                                        <OnEditFocusLost>
                                                this:HighlightText(0, 0);
                                        </OnEditFocusLost>
                                        <OnEditFocusGained>
                                                this:HighlightText();
                                        </OnEditFocusGained>
                                </Scripts>
                                <FontString inherits="ChatFontNormal"/>
                        </EditBox>
                        <EditBox name="$parentSilver" letters="2" historyLines="0" numeric="true" autoFocus="false">
                                <Size>
                                        <AbsDimension x="30" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentGold" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="16" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="-5" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-10" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="10" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                                <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture file="Interface\MoneyFrame\UI-MoneyIcons">
                                                        <Size>
                                                                <AbsDimension x="13" y="13"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-8" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnTabPressed>
                                                if (IsShiftKeyDown()) then
                                                        getglobal(this:GetParent():GetName().."Gold"):SetFocus();
                                                else
                                                        getglobal(this:GetParent():GetName().."Copper"):SetFocus();
                                                end
                                        </OnTabPressed>
                                        <OnEnterPressed>
                                                getglobal(this:GetParent():GetName().."Copper"):SetFocus();
                                        </OnEnterPressed>
                                        <OnEscapePressed>
                                                this:ClearFocus();
                                        </OnEscapePressed>
                                        <OnTextChanged>
                                                MoneyInputFrame_OnTextChanged(this:GetParent());
                                        </OnTextChanged>
                                        <OnEditFocusLost>
                                                this:HighlightText(0, 0);
                                        </OnEditFocusLost>
                                        <OnEditFocusGained>
                                                this:HighlightText();
                                        </OnEditFocusGained>
                                </Scripts>
                                <FontString inherits="ChatFontNormal"/>
                        </EditBox>
                        <EditBox name="$parentCopper" letters="2" historyLines="0" numeric="true" autoFocus="false">
                                <Size>
                                        <AbsDimension x="30" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentSilver" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="16" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="-5" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="8" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-10" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
                                                        <Size>
                                                                <AbsDimension x="10" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                                <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
                                                </Texture>
                                                <Texture file="Interface\MoneyFrame\UI-MoneyIcons">
                                                        <Size>
                                                                <AbsDimension x="13" y="13"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="-8" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal(this:GetParent():GetName().."Silver"):SetFocus();
                                                else
                                                        if ( this:GetParent().nextFocus ) then
                                                                this:GetParent().nextFocus:SetFocus();
                                                        else
                                                                this:ClearFocus();
                                                        end
                                                end
                                        </OnTabPressed>
                                        <OnEnterPressed>
                                                if ( this:GetParent().nextFocus ) then
                                                        this:GetParent().nextFocus:SetFocus();
                                                else
                                                        this:ClearFocus();
                                                end
                                        </OnEnterPressed>
                                        <OnEscapePressed>
                                                this:ClearFocus();
                                        </OnEscapePressed>
                                        <OnTextChanged>
                                                MoneyInputFrame_OnTextChanged(this:GetParent());
                                        </OnTextChanged>
                                        <OnEditFocusLost>
                                                this:HighlightText(0, 0);
                                        </OnEditFocusLost>
                                        <OnEditFocusGained>
                                                this:HighlightText();
                                        </OnEditFocusGained>
                                </Scripts>
                                <FontString inherits="ChatFontNormal"/>
                        </EditBox>
                </Frames>
        </Frame>

        <CheckButton name="AuctioneerRadioButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="16" y="16"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <FontString name="$parentText" inherits="GameFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="5" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <NormalTexture file="Interface\Buttons\UI-RadioButton">
                        <TexCoords left="0" right="0.25" top="0" bottom="1"/>
                </NormalTexture>
                <HighlightTexture file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
                        <TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
                </HighlightTexture>
                <CheckedTexture file="Interface\Buttons\UI-RadioButton">
                        <TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
                </CheckedTexture>
        </CheckButton>

</Ui>