reworked buying mechanism

This commit is contained in:
Manuel Simon Hirsig
2016-01-24 00:25:28 +01:00
parent c104881f46
commit 3258e60214
6 changed files with 90 additions and 218 deletions
-123
View File
@@ -35,65 +35,6 @@
</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>
@@ -237,70 +178,6 @@
</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>