vanilla-wow-addons – Rev 1
?pathlinks?
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<!--
Version: 3.9.0.1000 (Kangaroo)
Revision: $Id: AuctionFramePost.xml 791 2006-04-02 01:58:59Z vindicator $
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="AuctionFramePost.lua"/>
<Frame name="AuctionFramePost" inherits="AuctionFrameTemplate" hidden="true">
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentTitle" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-18"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentTabText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOP" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="85" y="-85"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentPriceModelText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="27" y="-152"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentPriceModelNoteText" inherits="GameFontHighlightSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentPriceModelText">
<Offset>
<AbsDimension x="0" y="-46"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentSavePriceText" inherits="GameFontNormalSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentPriceModelText">
<Offset>
<AbsDimension x="25" y="-46"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentStartPriceText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentPriceModelNoteText">
<Offset>
<AbsDimension x="0" y="-18"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentStartPriceInvalidText" inherits="GameFontRedSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentStartPriceText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentBuyoutPriceText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentStartPriceText">
<Offset>
<AbsDimension x="0" y="-36"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentBuyoutPriceInvalidText" inherits="GameFontRedSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBuyoutPriceText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentQuantityText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBuyoutPriceText">
<Offset>
<AbsDimension x="0" y="-36"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentQuantityInvalidText" inherits="GameFontRedSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentQuantityText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentMultiplyText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentQuantityText">
<Offset>
<AbsDimension x="35" y="-18"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentStackCountText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMultiplyText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="31" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentDurationText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentQuantityText">
<Offset>
<AbsDimension x="0" y="-36"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentDepositText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentDurationText">
<Offset>
<AbsDimension x="0" y="-36"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentUnknownDepositText" inherits="GameFontRedSmall" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentDepositText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<!-- Post Auctions controls -->
<Frames>
<Button name="$parentAuctionItem">
<Size>
<AbsDimension x="37" y="37"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="30" y="-113"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\Buttons\UI-Slot-Background">
<Size>
<AbsDimension x="39" y="39"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-2" y="2"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.640625" top="0" bottom="0.640625"/>
</Texture>
<FontString name="$parentName" inherits="GameFontNormal">
<Size>
<AbsDimension x="100" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-5" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="BORDER">
<Texture name="$parentIconTexture"/>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterForDrag("LeftButton");
</OnLoad>
<OnReceiveDrag>
AuctionFramePost_AuctionItem_OnClick(this);
</OnReceiveDrag>
<OnDragStart>
AuctionFramePost_AuctionItem_OnClick(this);
</OnDragStart>
<OnClick>
AuctionFramePost_AuctionItem_OnClick(this);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
local parent = this:GetParent()
local name = parent:GetItemName();
if (name) then
local bag, slot, id = EnhTooltip.FindItemInBags(name);
local _, link, rarity = GetItemInfo(id);
GameTooltip:SetHyperlink(link);
GameTooltip:Show();
local hyperlink = GetContainerItemLink(bag, slot);
EnhTooltip.TooltipCall(GameTooltip, parent:GetItemName(), hyperlink, rarity, parent:GetStackSize());
else
GameTooltip:SetText(AUCTION_ITEM_TEXT, 1.0, 1.0, 1.0);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
</Button>
<Frame name="$parentPriceModelDropDown" inherits="UIDropDownMenuTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentPriceModelText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-20" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(130);
getglobal(this:GetName().."Text"):SetJustifyH("LEFT");
</OnLoad>
</Scripts>
</Frame>
<CheckButton name="$parentSavePriceCheckBox" hidden="true">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentSavePriceText" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="3"/>
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
</CheckButton>
<Frame name="$parentStartPrice" inherits="AuctioneerMoneyInputFrameTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentStartPriceText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
MoneyInputFrame_SetOnvalueChangedFunc(this, AuctionFramePost_StartPrice_OnChanged);
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentBuyoutPrice" inherits="AuctioneerMoneyInputFrameTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBuyoutPriceText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
MoneyInputFrame_SetOnvalueChangedFunc(this, AuctionFramePost_BuyoutPrice_OnChanged);
</OnLoad>
</Scripts>
</Frame>
<EditBox name="$parentStackSize" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentQuantityText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-6"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnTextChanged>
AuctionFramePost_StackSize_OnTextChanged();
</OnTextChanged>
<OnTabPressed>
if (IsShiftKeyDown()) then
getglobal(this:GetParent():GetName().."BuyoutPriceCopper"):SetFocus();
else
getglobal(this:GetParent():GetName().."StackCount"):SetFocus();
end
</OnTabPressed>
<OnEditFocusLost>
this:HighlightText(0, 0);
</OnEditFocusLost>
<OnEditFocusGained>
this:HighlightText();
</OnEditFocusGained>
</Scripts>
</EditBox>
<EditBox name="$parentStackCount" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="22" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentStackSize" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="17" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnTextChanged>
AuctionFramePost_StackCount_OnTextChanged();
</OnTextChanged>
<OnTabPressed>
if (IsShiftKeyDown()) then
getglobal(this:GetParent():GetName().."StackSize"):SetFocus();
else
getglobal(this:GetParent():GetName().."StartPriceGold"):SetFocus();
end
</OnTabPressed>
<OnEditFocusLost>
this:HighlightText(0, 0);
</OnEditFocusLost>
<OnEditFocusGained>
this:HighlightText();
</OnEditFocusGained>
</Scripts>
</EditBox>
<CheckButton name="$parentShortAuctionRadio" inherits="AuctioneerRadioButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentDurationText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>getglobal(this:GetName().."Text"):SetText("2");</OnLoad>
<OnClick>AuctionFramePost_DurationRadioButton_OnClick(this, this:GetID())</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="$parentMediumAuctionRadio" inherits="AuctioneerRadioButtonTemplate" id="2">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentShortAuctionRadio" relativePoint="RIGHT">
<Offset>
<AbsDimension x="16" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>getglobal(this:GetName().."Text"):SetText("8");</OnLoad>
<OnClick>AuctionFramePost_DurationRadioButton_OnClick(this, this:GetID())</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="$parentLongAuctionRadio" inherits="AuctioneerRadioButtonTemplate" id="3">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMediumAuctionRadio" relativePoint="RIGHT">
<Offset>
<AbsDimension x="16" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>getglobal(this:GetName().."Text"):SetText("24");</OnLoad>
<OnClick>AuctionFramePost_DurationRadioButton_OnClick(this, this:GetID())</OnClick>
</Scripts>
</CheckButton>
<Frame name="$parentDepositMoneyFrame" inherits="SmallMoneyFrameTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentDepositText" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="3" y="1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this.small = 1;
this.staticMoney = 0;
MoneyFrame_SetType("STATIC");
</OnLoad>
</Scripts>
</Frame>
<Button name="$parentCreateAuctionButton" inherits="UIPanelButtonTemplate">
<Size>
<AbsDimension x="120" y="22"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="40" y="48"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetText(_AUCT('UiPostAuctions'));
</OnLoad>
<OnClick>
AuctionFramePost_CreateAuctionButton_OnClick(this);
</OnClick>
</Scripts>
</Button>
<!-- Current Auctions List -->
<Frame name="$parentList" inherits="ListTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="187" y="-77"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="610" y="334"/>
</Size>
<Frames>
<Button name="$parentItem1" inherits="ListItemTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentColumn1Sort" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="4" y="-4"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem2" inherits="ListItemTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem3" inherits="ListItemTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem4" inherits="ListItemTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem5" inherits="ListItemTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem6" inherits="ListItemTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem7" inherits="ListItemTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem8" inherits="ListItemTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem9" inherits="ListItemTemplate" id="9">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem10" inherits="ListItemTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem11" inherits="ListItemTemplate" id="11">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem12" inherits="ListItemTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem13" inherits="ListItemTemplate" id="13">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem12" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem14" inherits="ListItemTemplate" id="14">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem13" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem15" inherits="ListItemTemplate" id="15">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem14" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem16" inherits="ListItemTemplate" id="16">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem15" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem17" inherits="ListItemTemplate" id="17">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem16" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem18" inherits="ListItemTemplate" id="18">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem17" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItem19" inherits="ListItemTemplate" id="19">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentItem18" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
</Frame>
</Frames>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Title"):SetText(_AUCT('UiPostAuctions'));
getglobal(this:GetName().."TabText"):SetText(_AUCT('UiPost'));
getglobal(this:GetName().."PriceModelText"):SetText(_AUCT('UiPriceBasedOnLabel'));
getglobal(this:GetName().."SavePriceText"):SetText(_AUCT('UiMakeFixedPriceLabel'));
getglobal(this:GetName().."StartPriceText"):SetText(_AUCT('UiStartingPriceLabel'));
getglobal(this:GetName().."StartPriceInvalidText"):SetText(_AUCT('UiStartingPriceRequiredError'));
getglobal(this:GetName().."BuyoutPriceText"):SetText(_AUCT('UiBuyoutPriceLabel'));
getglobal(this:GetName().."BuyoutPriceInvalidText"):SetText(_AUCT('UiBuyoutPriceTooLowError'));
getglobal(this:GetName().."QuantityText"):SetText(_AUCT('UiQuantityLabel'));
getglobal(this:GetName().."MultiplyText"):SetText("x");
getglobal(this:GetName().."StackCountText"):SetText(_AUCT('UiStacksLabel'));
getglobal(this:GetName().."DurationText"):SetText(_AUCT('UiDurationLabel'));
getglobal(this:GetName().."DepositText"):SetText(_AUCT('UiDepositLabel'));
getglobal(this:GetName().."UnknownDepositText"):SetText(_AUCT('UiUnknownError'));
AuctionFramePost_OnLoad();
</OnLoad>
</Scripts>
</Frame>
<Button name="AuctionFrameTabPost" inherits="AuctionTabTemplate" hidden="true">
<Scripts>
<OnLoad>
this:SetText(_AUCT('UiPostAuctions'));
</OnLoad>
</Scripts>
</Button>
</Ui>
Generated by GNU Enscript 1.6.5.90.