309 lines
18 KiB
XML
309 lines
18 KiB
XML
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
|
|
|
|
<Script file="item_search_frame.lua"/>
|
|
|
|
<Frame>
|
|
<Scripts>
|
|
<OnUpdate>
|
|
Aux.item_search_frame.on_update()
|
|
</OnUpdate>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="AuxItemSearchFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
|
<Frames>
|
|
<Frame name="$parentItem" inherits="AuxFrameBoxTemplate">
|
|
<Size><AbsDimension x="213" y="120"/></Size>
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-35"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
getglobal(this:GetName().."Title"):SetText('Item')
|
|
</OnLoad>
|
|
</Scripts>
|
|
<Frames>
|
|
<Button name="$parentItem" inherits="AuxItemTemplate">
|
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-20"/></Offset></Anchor></Anchors>
|
|
<scripts>
|
|
<OnLoad>
|
|
this:SetHighlightTexture(nil)
|
|
</OnLoad>
|
|
<OnClick>
|
|
AuxItemSearchFrameItemItemInputBox:Show()
|
|
Aux.item_search_frame.update_item()
|
|
AuxItemSearchFrameItemItemInputBox:SetText('')
|
|
AuxItemSearchFrameItemItemInputBox:SetFocus()
|
|
</OnClick>
|
|
</scripts>
|
|
</Button>
|
|
|
|
<!--<EditBox name="$parentItemInputBox" autoFocus="false" inherits="AuxInputBoxTemplate">-->
|
|
<!--<Anchors><Anchor point="TOP"><Offset><AbsDimension x="2" y="-28"/></Offset></Anchor></Anchors>-->
|
|
<!--<Scripts>-->
|
|
<!--<OnLoad>-->
|
|
<!--this.selector = Aux.completion.selector(this)-->
|
|
<!--this:SetWidth(185)-->
|
|
<!--</OnLoad>-->
|
|
<!--<OnTextChanged>-->
|
|
<!--this.selector.suggest()-->
|
|
<!--</OnTextChanged>-->
|
|
<!--<OnTabPressed>-->
|
|
<!--if IsShiftKeyDown() then-->
|
|
<!--this.selector.previous()-->
|
|
<!--else-->
|
|
<!--this.selector.next()-->
|
|
<!--end-->
|
|
<!--</OnTabPressed>-->
|
|
<!--<OnEnterPressed>-->
|
|
<!--if this.selector.selected_value() then-->
|
|
<!--this:ClearFocus()-->
|
|
<!--end-->
|
|
<!--</OnEnterPressed>-->
|
|
<!--<OnEditFocusLost>-->
|
|
<!--this.selector.close()-->
|
|
<!--if this.selector.selected_value() then-->
|
|
<!--Aux.item_search_frame.set_item(this.selector.selected_value())-->
|
|
<!--end-->
|
|
<!--if Aux.item_search_frame.item_set() then-->
|
|
<!--this:Hide()-->
|
|
<!--this.selector.clear()-->
|
|
<!--Aux.item_search_frame.update_item()-->
|
|
<!--end-->
|
|
<!--</OnEditFocusLost>-->
|
|
<!--<OnEscapePressed>-->
|
|
<!--this.selector.clear()-->
|
|
<!--this:ClearFocus()-->
|
|
<!--</OnEscapePressed>-->
|
|
<!--</Scripts>-->
|
|
<!--</EditBox>-->
|
|
|
|
<!--<Button name="$parentRefreshButton" inherits="UIPanelButtonTemplate" text="Refresh" disabled="true">-->
|
|
<!--<Size><AbsDimension x="90" y="26"/></Size>-->
|
|
<!--<Anchors><Anchor point="BOTTOMLEFT" ><Offset><AbsDimension x="8" y="15"/></Offset></Anchor></Anchors>-->
|
|
<!--<Scripts>-->
|
|
<!--<OnClick>-->
|
|
<!--Aux.item_search_frame.start_search()-->
|
|
<!--</OnClick>-->
|
|
<!--</Scripts>-->
|
|
<!--</Button>-->
|
|
<!--<Button name="$parentStopButton" inherits="UIPanelButtonTemplate" text="Stop" hidden="true">-->
|
|
<!--<Size><AbsDimension x="90" y="26"/></Size>-->
|
|
<!--<Anchors><Anchor point="BOTTOMLEFT" ><Offset><AbsDimension x="8" y="15"/></Offset></Anchor></Anchors>-->
|
|
<!--<Scripts>-->
|
|
<!--<OnClick>-->
|
|
<!--Aux.item_search_frame.stop_search()-->
|
|
<!--</OnClick>-->
|
|
<!--</Scripts>-->
|
|
<!--</Button>-->
|
|
<EditBox name="$parentPageEditBox" numeric="true" autoFocus="false" inherits="AuxInputBoxTemplate">
|
|
<Anchors><Anchor point="BOTTOMLEFT" ><Offset><AbsDimension x="111" y="15"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
getglobal(this:GetName()..'Label'):SetText('Page')
|
|
this:SetWidth(30)
|
|
this:EnableMouse(false)
|
|
this:SetAlpha(0.5)
|
|
</OnLoad>
|
|
<OnEnterPressed>
|
|
this:ClearFocus()
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<CheckButton name="$parentAllPagesCheckButton" inherits="UICheckButtonTemplate" checked="true">
|
|
<Size><AbsDimension x="22" y="22"/></Size>
|
|
<Anchors><Anchor point="BOTTOMLEFT" ><Offset><AbsDimension x="144" y="15"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontNormalSmall" text="All" justifyH="LEFT">
|
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="9"/></Offset></Anchor></Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnClick>
|
|
AuxItemSearchFrameItemPageEditBox:EnableMouse(not this:GetChecked())
|
|
AuxItemSearchFrameItemPageEditBox:SetAlpha(this:GetChecked() and 0.5 or 1)
|
|
AuxItemSearchFrameItemPageEditBox:ClearFocus()
|
|
</OnClick>
|
|
</Scripts>
|
|
</CheckButton>
|
|
</Frames>
|
|
</Frame>
|
|
<Frame name="$parentRecentlySearched" inherits="AuxFrameBoxTemplate">
|
|
<Size>
|
|
<AbsDimension x="213" y="186"/>
|
|
</Size>
|
|
<Anchors><Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentItem"><Offset><AbsDimension x="0" y="-20"/></Offset></Anchor></Anchors>
|
|
<Anchors><Anchor point="BOTTOM" relativePoint="BOTTOM" relativeTo="$parentAuctions"><Offset><AbsDimension x="0" y="-20"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
getglobal(this:GetName().."Title"):SetText('Recently Searched')
|
|
</OnLoad>
|
|
</Scripts>
|
|
<Frames>
|
|
<Frame name="$parentListing">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="BOTTOM"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
local config = Aux.item_search_frame.recently_searched_config
|
|
this.sheet = Aux.sheet.create{
|
|
frame = this,
|
|
columns = config.columns,
|
|
sort_order = config.sort_order,
|
|
row_setter = config.row_setter,
|
|
on_row_click = config.on_row_click,
|
|
on_row_enter = config.on_row_enter,
|
|
on_row_leave = config.on_row_leave,
|
|
plain = true,
|
|
}
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
<Frame name="$parentAuctions" inherits="AuxFrameBoxTemplate">
|
|
<Size>
|
|
<AbsDimension x="620" y="326"/>
|
|
</Size>
|
|
<Anchors><Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentItem"><Offset><AbsDimension x="3" y="0"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
<!--getglobal(this:GetName().."Title"):SetText('Search Results')-->
|
|
</OnLoad>
|
|
</Scripts>
|
|
<Frames>
|
|
<Frame name="$parentBuyListing" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="BOTTOM"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
local config = Aux.item_search_frame.views[1]
|
|
this.sheet = Aux.sheet.create{
|
|
frame = this,
|
|
columns = config.columns,
|
|
sort_order = config.sort_order,
|
|
row_setter = config.row_setter,
|
|
on_row_click = config.on_row_click,
|
|
on_row_enter = config.on_row_enter,
|
|
on_row_leave = config.on_row_leave,
|
|
on_row_update = config.on_row_update,
|
|
}
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentBidListing" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="BOTTOM"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
local config = Aux.item_search_frame.views[2]
|
|
this.sheet = Aux.sheet.create{
|
|
frame = this,
|
|
columns = config.columns,
|
|
sort_order = config.sort_order,
|
|
row_setter = config.row_setter,
|
|
on_row_click = config.on_row_click,
|
|
on_row_enter = config.on_row_enter,
|
|
on_row_leave = config.on_row_leave,
|
|
on_row_update = config.on_row_update,
|
|
}
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentFullListing" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="BOTTOM"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
local config = Aux.item_search_frame.views[3]
|
|
this.sheet = Aux.sheet.create{
|
|
frame = this,
|
|
columns = config.columns,
|
|
sort_order = config.sort_order,
|
|
row_setter = config.row_setter,
|
|
on_row_click = config.on_row_click,
|
|
on_row_enter = config.on_row_enter,
|
|
on_row_leave = config.on_row_leave,
|
|
on_row_update = config.on_row_update,
|
|
}
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentConfirmation" frameStrata="FULLSCREEN_DIALOG" inherits="OptionFrameBoxTemplate" enableMouse="true" enableMouseWheel="true" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnMouseWheel></OnMouseWheel>
|
|
</Scripts>
|
|
<Frames>
|
|
<Frame name="$parentContent">
|
|
<Anchors><Anchor point="CENTER"><Offset><AbsDimension x="0" y="5"/></Offset></Anchor></Anchors>
|
|
<Size><AbsDimension x="193" y="120"/></Size>
|
|
<Frames>
|
|
<Frame name="$parentItem" inherits="AuxItemTemplate">
|
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
</Frame>
|
|
<Frame name="$parentBid" inherits="MoneyInputFrameTemplate">
|
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="43"/></Offset></Anchor></Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontNormal" 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="SmallMoneyFrameTemplate">
|
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="45"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
SmallMoneyFrame_OnLoad()
|
|
MoneyFrame_SetType("STATIC")
|
|
</OnLoad>
|
|
</Scripts>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString inherits="GameFontNormal" 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="90" y="26"/> </Size>
|
|
<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.item_search_frame.dialog_action()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
|
|
<Size><AbsDimension x="90" y="26"/></Size>
|
|
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Aux.item_search_frame.dialog_cancel()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Ui>
|