fixed up ui in buy and added missing filters, changed buy search mechanism

This commit is contained in:
Manuel Simon Hirsig
2015-09-30 23:32:00 +02:00
parent 08503eb68b
commit b955184c51
8 changed files with 1074 additions and 202 deletions
+100 -61
View File
@@ -1,7 +1,7 @@
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="buy.lua"/>
<Button name="AuxBuyEntryTemplate" virtual="true" hidden="true">
<Size><AbsDimension y="16"/></Size>
<Frames>
@@ -97,15 +97,6 @@
</FontString>
</Layer>
<Layer level="ARTWORK">
<FontString name="AuxBuyTotalLabel" inherits="GameFontHighlightSmall" text="Total">
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="70" y="22"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size><AbsDimension x="802" y="64"/></Size>
<Anchors>
@@ -137,45 +128,83 @@
</Layers>
<Frames>
<Frame name="AuxBuyList" inherits="ListTemplate">
<Size><AbsDimension x="610" y="334"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="187" y="-77"/></Offset></Anchor></Anchors>
<Scripts>
<OnLoad>
Aux.list.initialize(this, {{ width=50, logicalColumns={1,2,3} }, { width=50, logicalColumns={1,2,3} }})
</OnLoad>
</Scripts>
</Frame>
<Frame name="AuxBuyFilters">
<Size><AbsDimension x="1" y="1"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="80" y="-45"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="AuxBuySearchBoxLabel" inherits="GameFontHighlightSmall" text="Name">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0" /></Offset></Anchor></Anchors>
</FontString>
<FontString name="AuxBuyExactLabel" inherits="GameFontHighlightSmall" text="Exact">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="225" y="0" /></Offset></Anchor></Anchors>
</FontString>
</Layer>
</Layers>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="80" y="-46"/></Offset></Anchor></Anchors>
<Frames>
<EditBox name="AuxBuySearchBox" autoFocus="false" inherits="InputBoxTemplate">
<Size><AbsDimension x="180" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="40" y="0"/></Offset></Anchor></Anchors>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontHighlightSmall" text="Name">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-3" y="9"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnChar>
Aux.util.item_name_autocomplete()
</OnChar>
<OnEnterPressed>
this:ClearFocus()
AuxBuySearchButton_OnClick()
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="255" y="0" /></Offset></Anchor></Anchors>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="200" y="0" /></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontHighlightSmall" text="Exact">
<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="270" y="3" /></Offset></Anchor></Anchors>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="235" y="3" /></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontHighlightSmall" text="Category">
<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(200)
</OnLoad>
<OnShow>
UIDropDownMenu_Initialize(this, AuxBuyCategoryDropDown_Initialize)
@@ -183,9 +212,40 @@
</Scripts>
</Frame>
<CheckButton name="AuxBuyUsableCheckButton" inherits="UICheckButtonTemplate">
<Size><AbsDimension x="22" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="500" y="0" /></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontHighlightSmall" text="Usable">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="9"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</CheckButton>
<EditBox name="AuxBuyTooltipEdit" autoFocus="false" inherits="InputBoxTemplate">
<Size><AbsDimension x="130" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="430" y="0"/></Offset></Anchor></Anchors>
<Size><AbsDimension x="145" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="557" y="0"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontHighlightSmall" text="Tooltip">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-3" y="9"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnterPressed>
AuxBuyTooltipAddButton_OnClick(this)
@@ -194,7 +254,7 @@
</EditBox>
<Frame name="AuxBuyTooltipDropDown" inherits="UIDropDownMenuTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="413" y="0"/></Offset></Anchor></Anchors>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="555" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Left"):Hide()
@@ -202,7 +262,6 @@
getglobal(this:GetName().."Right"):Hide()
getglobal(this:GetName().."Text"):Hide()
getglobal(this:GetName().."Button"):SetScript("OnClick", Aux.buy.toggle_tooltip_dropdown)
UIDropDownMenu_SetWidth(115)
UIDropDownMenu_Initialize(this, AuxBuyTooltipDropDown_Initialize)
</OnLoad>
</Scripts>
@@ -210,7 +269,7 @@
<Button name="AuxBuyTooltipAddButton" inherits="UIPanelButtonTemplate" text="+">
<Size><AbsDimension x="22" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="578" y="0"/></Offset></Anchor></Anchors>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="720" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnClick>
AuxBuyTooltipAddButton_OnClick(this)
@@ -218,26 +277,6 @@
</Scripts>
</Button>
<Button name="AuxBuyTooltipRemoveButton" inherits="UIPanelButtonTemplate" text="-">
<Size><AbsDimension x="22" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="600" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnClick>
AuxBuyTooltipRemoveButton_OnClick(this)
</OnClick>
</Scripts>
</Button>
<Button name="AuxBuySearchButton" inherits="UIPanelButtonTemplate" text="Search">
<Size><AbsDimension x="80" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="653" y="0" /></Offset></Anchor></Anchors>
<Scripts>
<OnClick>
AuxBuySearchButton_OnClick()
</OnClick>
</Scripts>
</Button>
<!-- <Frame name="AuxBuySlotDropDown" inherits="UIDropDownMenuTemplate">
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="500" y="1" /></Offset></Anchor></Anchors>
<Scripts>
@@ -252,7 +291,7 @@
</Frames>
</Frame>
<Button name="AuxBuyBuySelectedButton" inherits="UIPanelButtonTemplate" text="Buy Selected Auctions">
<Button name="AuxBuySearchButton" inherits="UIPanelButtonTemplate" text="Search">
<Size><AbsDimension x="166" y="22"/></Size>
<Anchors>
<Anchor point="BOTTOMRIGHT">
@@ -263,26 +302,26 @@
</Anchors>
<Scripts>
<OnClick>
AuxBuyBuySelectedButton_OnClick()
Aux.buy.SearchButton_onclick()
</OnClick>
</Scripts>
</Button>
<Frame name="AuxBuyTotal" inherits="SmallMoneyFrameTemplate">
<Button name="AuxBuyStopButton" inherits="UIPanelButtonTemplate" text="Stop" hidden="true">
<Size><AbsDimension x="166" y="22"/></Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxBuyTotalLabel">
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
<AbsDimension x="51" y="14"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
SmallMoneyFrame_OnLoad()
MoneyFrame_SetType("STATIC")
</OnLoad>
<OnClick>
Aux.buy.StopButton_onclick()
</OnClick>
</Scripts>
</Frame>
</Button>
<ScrollFrame name="AuxBuyScrollFrame" inherits="FauxScrollFrameTemplate">
<Size><AbsDimension x="785" y="309"/></Size>