working on separating bids and auctions

This commit is contained in:
Manuel Simon Hirsig
2015-11-23 03:02:36 +01:00
parent 5e256bd76c
commit c1ef4130e2
7 changed files with 525 additions and 278 deletions
+4 -79
View File
@@ -1,6 +1,6 @@
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="manage_frame.lua"/>
<Script file="bids_frame.lua"/>
<Frame name="AuxManageFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
<Frames>
@@ -16,44 +16,6 @@
</OnLoad>
</Scripts>
<Frames>
<Button name="$parentTab1" inherits="AuxTopTabTemplate" id="1">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="7" y="-2"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText('Bids')
</OnLoad>
<OnClick>
Aux.manage_frame.listing = this:GetID()
Aux.manage_frame.update_bid_records()
Aux.manage_frame.update_listing()
</OnClick>
</Scripts>
</Button>
<Button name="$parentTab2" inherits="AuxTopTabTemplate" id="2">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText('Auctions')
</OnLoad>
<OnClick>
Aux.manage_frame.listing = this:GetID()
Aux.manage_frame.update_auction_records()
Aux.manage_frame.update_listing()
</OnClick>
</Scripts>
</Button>
<Frame name="$parentBidListing">
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
@@ -61,7 +23,7 @@
</Anchors>
<Scripts>
<OnLoad>
local config = Aux.manage_frame.bid_listing_config
local config = Aux.bids_frame.bid_listing_config
this.sheet = Aux.sheet.create{
frame = this,
columns = config.columns,
@@ -75,27 +37,6 @@
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentAuctionListing">
<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.manage_frame.auction_listing_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,
on_row_update = config.on_row_update,
}
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentDialog" frameStrata="FULLSCREEN_DIALOG" inherits="OptionFrameBoxTemplate" enableMouse="true" enableMouseWheel="true" hidden="true">
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
@@ -150,7 +91,7 @@
<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnClick>
Aux.manage_frame.dialog_action()
Aux.bids_frame.dialog_action()
</OnClick>
</Scripts>
</Button>
@@ -159,7 +100,7 @@
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnClick>
Aux.manage_frame.dialog_cancel()
Aux.bids_frame.dialog_cancel()
</OnClick>
</Scripts>
</Button>
@@ -169,22 +110,6 @@
</Frame>
</Frames>
</Frame>
<Frame name="AuxManageAuctions" inherits="AuxFrameBoxTemplate">
<Size>
<AbsDimension x="400" y="326"/>
</Size>
<Anchors><Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="AuxManageBids"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
getglobal(this:GetName().."Title"):SetText('Auctions')
</OnLoad>
</Scripts>
<Frames>
</Frames>
</Frame>
</Frames>
</Frame>
</Ui>