413 lines
16 KiB
XML
413 lines
16 KiB
XML
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
|
|
|
|
<Script file="buy.lua"/>
|
|
|
|
<Frame>
|
|
<Scripts>
|
|
<OnUpdate>
|
|
Aux.buy.onupdate()
|
|
</OnUpdate>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Button name="SearchListItemTemplate" inherits="ListItemTemplate" virtual="true">
|
|
<Scripts>
|
|
<OnLoad>
|
|
this:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
|
</OnLoad>
|
|
<OnLeave>
|
|
GameTooltip:Hide()
|
|
ResetCursor()
|
|
</OnLeave>
|
|
<OnClick>
|
|
AuxBuyEntry_OnClick(index)
|
|
</OnClick>
|
|
<OnUpdate>
|
|
if index then
|
|
if IsControlKeyDown() then
|
|
ShowInspectCursor()
|
|
elseif IsAltKeyDown() then
|
|
SetCursor("BUY_CURSOR")
|
|
else
|
|
ResetCursor()
|
|
end
|
|
end
|
|
</OnUpdate>
|
|
</Scripts>
|
|
<HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor><Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
<TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
|
|
</HighlightTexture>
|
|
</Button>
|
|
|
|
<Frame name="AuxBuyTemplate" virtual="true" hidden="true">
|
|
<Size><AbsDimension x="694" y="447"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"/></Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<FontString inherits="GameFontNormal" text="Aux Buy">
|
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="20" y="-18"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
|
|
<FontString name="AuxBuyMessage" inherits="GameFontWhite">
|
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="145" y="-150"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<FontString inherits="GameFontHighlightSmall" text="Filters">
|
|
<Anchors>
|
|
<Anchor point="TOP" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="85" y="-85"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Frame name="AuxBuyList">
|
|
<Size><AbsDimension x="615" y="326"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="179" y="-94"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
AuxBuySheet = Aux.sheet.initialize(this)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="AuxBuyFilters">
|
|
<Size><AbsDimension x="1" y="1"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="28" y="-112"/></Offset></Anchor></Anchors>
|
|
<Frames>
|
|
<EditBox name="AuxBuyNameInputBox" autoFocus="false" inherits="InputBoxTemplate">
|
|
<Size><AbsDimension x="120" y="22"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Name" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-3" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnTextChanged>
|
|
Aux.completion.make_suggestions(this)
|
|
</OnTextChanged>
|
|
<OnTabPressed>
|
|
Aux.completion.highlight_next(this)
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
if Aux.completion.highlighted() then
|
|
Aux.completion.close(this)
|
|
end
|
|
this:ClearFocus()
|
|
Aux.buy.SearchButton_onclick()
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
|
|
<CheckButton name="AuxBuyExactCheckButton" inherits="UICheckButtonTemplate" checked="true">
|
|
<Size><AbsDimension x="22" y="22"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="123" y="0" /></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Exact" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</CheckButton>
|
|
|
|
<Frame name="AuxBuyCategoryDropDown" inherits="UIDropDownMenuTemplate">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-23" y="-30" /></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Category" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="20" y="8"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
UIDropDownMenu_Initialize(this, AuxBuyCategoryDropDown_Initialize)
|
|
UIDropDownMenu_SetWidth(140)
|
|
</OnLoad>
|
|
<OnShow>
|
|
UIDropDownMenu_Initialize(this, AuxBuyCategoryDropDown_Initialize)
|
|
</OnShow>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="AuxBuyQualityDropDown" inherits="UIDropDownMenuTemplate">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-23" y="-65" /></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
UIDropDownMenu_Initialize(this, AuxBuyQualityDropDown_Initialize)
|
|
</OnLoad>
|
|
<OnShow>
|
|
UIDropDownMenu_Initialize(this, AuxBuyQualityDropDown_Initialize)
|
|
</OnShow>
|
|
</Scripts>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Rarity" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="20" y="8"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
|
|
<EditBox name="AuxBuyMinLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
|
|
<Size><AbsDimension x="30" y="22"/></Size>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="-101"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString inherits="GameFontHighlightSmall" text="-">
|
|
<Anchors><Anchor point="LEFT" relativePoint="RIGHT"><Offset><AbsDimension x="-1" y="0"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Level Range" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-3" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEnterPressed>
|
|
this:ClearFocus();
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<EditBox name="AuxBuyMaxLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
|
|
<Size><AbsDimension x="30" y="22"/></Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="AuxBuyMinLevel" relativePoint="RIGHT"><Offset><AbsDimension x="8" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnEnterPressed>
|
|
this:ClearFocus();
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<CheckButton name="AuxBuyUsableCheckButton" inherits="UICheckButtonTemplate">
|
|
<Size><AbsDimension x="22" y="22"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="100" y="-101" /></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Usable" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</CheckButton>
|
|
|
|
<EditBox name="AuxBuyTooltipInputBox" autoFocus="false" inherits="InputBoxTemplate">
|
|
<Size><AbsDimension x="110" y="22"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="-131"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontHighlightSmall" text="Tooltip" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-3" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEnterPressed>
|
|
AuxBuyTooltipButton_OnClick(this)
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
|
|
<Frame name="AuxBuyTooltipDropDown" inherits="UIDropDownMenuTemplate" hidden="true">
|
|
<Scripts>
|
|
<OnLoad>
|
|
UIDropDownMenu_Initialize(this, AuxBuyTooltipDropDown_Initialize)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Button name="AuxBuyTooltipArrow">
|
|
<Size><AbsDimension x="24" y="24"/></Size>
|
|
<Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxBuyTooltipInputBox"><Offset><AbsDimension x="-4" y="0"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.buy.toggle_tooltip_dropdown()
|
|
PlaySound("igMainMenuOptionCheckBoxOn")
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
|
|
<Size><AbsDimension x="24" y="24"/></Size>
|
|
<Anchors><Anchor point="RIGHT"/></Anchors>
|
|
</NormalTexture>
|
|
<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
|
|
<Size><AbsDimension x="24" y="24"/></Size>
|
|
<Anchors><Anchor point="RIGHT"/></Anchors>
|
|
</PushedTexture>
|
|
<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
|
|
<Size><AbsDimension x="24" y="24"/></Size>
|
|
<Anchors><Anchor point="RIGHT"/></Anchors>
|
|
</DisabledTexture>
|
|
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
|
|
<Size><AbsDimension x="24" y="24"/></Size>
|
|
<Anchors><Anchor point="RIGHT"/></Anchors>
|
|
</HighlightTexture>
|
|
</Button>
|
|
<Button name="AuxBuyTooltipButton" inherits="UIPanelButtonTemplate" text="+">
|
|
<Size><AbsDimension x="22" y="22"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="127" y="-131"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
AuxBuyTooltipButton_OnClick(this)
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<Button name="AuxBuySearchButton" inherits="UIPanelButtonTemplate" text="Search">
|
|
<Size><AbsDimension x="166" y="22"/></Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="51" y="14"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.buy.SearchButton_onclick()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Button name="AuxBuyStopButton" inherits="UIPanelButtonTemplate" text="Stop" hidden="true">
|
|
<Size><AbsDimension x="166" y="22"/></Size>
|
|
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="51" y="14"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.buy.StopButton_onclick()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Button name="AuxBuyCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
|
|
<Size>
|
|
<AbsDimension x="80" y="22"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="130" y="14"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
HideUIPanel(this:GetParent():GetParent());
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Frame name="AuxBuyConfirmation" hidden="true">
|
|
<Size><AbsDimension x="634" y="306"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="188" y="-103"/></Offset></Anchor></Anchors>
|
|
<Frames>
|
|
<Button name="$parentItem">
|
|
<Size><AbsDimension x="54" y="54"/></Size>
|
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="-102" y="-80"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<FontString name="$parentName" inherits="GameFontHighlightLarge" justifyH="LEFT">
|
|
<Size><AbsDimension x="172" y="46"/></Size>
|
|
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="70" y="0"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
<Texture name="$parentLeft" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
|
|
<Size><AbsDimension x="10" y="54"/></Size>
|
|
<Anchors><Anchor point="LEFT" relativePoint="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
<TexCoords left="0" right="0.078125" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
<Texture name="$parentRight" file="Interface\AuctionFrame\UI-AuctionItemNameFrame"><Size><AbsDimension x="10" y="54"/></Size>
|
|
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="204" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.75" right="0.828125" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
<Texture file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
|
|
<Size><AbsDimension x="10" y="54"/></Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.078125" right="0.75" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="OVERLAY">
|
|
<FontString name="$parentCount" inherits="NumberFontNormalLarge" justifyH="RIGHT" hidden="true">
|
|
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-9" y="3"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEnter>
|
|
Aux.info.set_game_tooltip(this, this:GetParent().tooltip, 'ANCHOR_LEFT')
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide()
|
|
</OnLeave>
|
|
</Scripts>
|
|
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
|
|
</Button>
|
|
<Frame name="$parentBid" inherits="MoneyInputFrameTemplate">
|
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="115"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontNormalLarge" text="Price:" justifyH="RIGHT">
|
|
<Anchors><Anchor point="RIGHT" relativePoint="LEFT"><Offset><AbsDimension x="-10" y="0"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<Frame name="$parentBuyoutPrice" inherits="MoneyFrameTemplate">
|
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="108"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
MoneyFrame_OnLoad()
|
|
MoneyFrame_SetType("STATIC")
|
|
</OnLoad>
|
|
</Scripts>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontNormalLarge" text="Price:" justifyH="RIGHT">
|
|
<Anchors><Anchor point="RIGHT" relativePoint="LEFT"><Offset><AbsDimension x="-5" y="0"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<Button name="$parentActionButton" inherits="UIPanelButtonTemplate" text="Buy" disabled="true">
|
|
<Size><AbsDimension x="110" y="30"/> </Size>
|
|
<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="190" y="60"/></Offset></Anchor></Anchors>
|
|
<NormalText inherits="GameFontNormalLarge"/>
|
|
<DisabledText inherits="GameFontDisableLarge"/>
|
|
<HighlightText inherits="GameFontHighlightLarge"/>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.buy.dialog_action()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
|
|
<Size><AbsDimension x="110" y="30"/></Size>
|
|
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-190" y="60"/></Offset></Anchor></Anchors>
|
|
<NormalText inherits="GameFontNormalLarge"/>
|
|
<DisabledText inherits="GameFontDisableLarge"/>
|
|
<HighlightText inherits="GameFontHighlightLarge"/>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.buy.dialog_cancel()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Ui>
|