refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-07-15 23:10:49 +02:00
parent 5fe8586843
commit 565e0cdf8e
16 changed files with 44 additions and 39 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
local m, public, private = Aux.tab(3, 'auctions_frame')
local m, public, private = Aux.tab(3, 'auctions_tab')
local auction_records
+1 -1
View File
@@ -2,7 +2,7 @@
<Frame name="AuxAuctionsFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
<Scripts>
<OnUpdate>
Aux.auctions_frame.on_update()
Aux.auctions_tab.on_update()
</OnUpdate>
</Scripts>
<Frames>
+1 -1
View File
@@ -1,4 +1,4 @@
Aux.auctions_frame.FRAMES(function(m, public, private)
Aux.auctions_tab.FRAMES(function(m, public, private)
private.listing = Aux.auction_listing.CreateAuctionResultsTable(AuxAuctionsFrameListing, Aux.auction_listing.auctions_config)
m.listing:SetSort(1,2,3,4,5,6,7,8)
m.listing:Reset()
+1 -1
View File
@@ -1,4 +1,4 @@
local m, public, private = Aux.tab(4, 'bids_frame')
local m, public, private = Aux.tab(4, 'bids_tab')
local auction_records
+1 -1
View File
@@ -2,7 +2,7 @@
<Frame name="AuxBidsFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
<Scripts>
<OnUpdate>
Aux.bids_frame.on_update()
Aux.bids_tab.on_update()
</OnUpdate>
</Scripts>
<Frames>
+1 -1
View File
@@ -1,4 +1,4 @@
Aux.bids_frame.FRAMES(function(m, public, private)
Aux.bids_tab.FRAMES(function(m, public, private)
private.listing = Aux.auction_listing.CreateAuctionResultsTable(AuxBidsFrameListing, Aux.auction_listing.bids_config)
m.listing:SetSort(1,2,3,4,5,6,7,8)
m.listing:Reset()
+1 -1
View File
@@ -1,4 +1,4 @@
local m, public, private = Aux.tab(2, 'post_frame')
local m, public, private = Aux.tab(2, 'post_tab')
local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440
local settings_schema = {'record', '#', {stack_size='number'}, {duration='number'}, {start_price='number'}, {buyout_price='number'}, {hidden='boolean'}}
+1 -1
View File
@@ -6,7 +6,7 @@
</Anchors>
<Scripts>
<OnUpdate>
Aux.post_frame.on_update()
Aux.post_tab.on_update()
</OnUpdate>
</Scripts>
<Frames>
+4 -4
View File
@@ -1,4 +1,4 @@
Aux.post_frame.FRAMES(function(m, public, private)
Aux.post_tab.FRAMES(function(m, public, private)
Aux.gui.vertical_line(AuxPostFrameContent, 219)
AuxPostParametersItem:EnableMouse()
@@ -54,9 +54,9 @@ Aux.post_frame.FRAMES(function(m, public, private)
m.set_item(this.item_record)
elseif arg1 == 'RightButton' then
Aux.tab_group:set_tab(1)
Aux.search_frame.set_filter(strlower(Aux.info.item(this.item_record.item_id).name)..'/exact')
Aux.search_frame.disable_sniping()
Aux.search_frame.execute()
Aux.search_tab.set_filter(strlower(Aux.info.item(this.item_record.item_id).name)..'/exact')
Aux.search_tab.disable_sniping()
Aux.search_tab.execute()
end
end,
function()
+1 -1
View File
@@ -1,4 +1,4 @@
local m, public, private = Aux.tab(1, 'search_frame')
local m, public, private = Aux.tab(1, 'search_tab')
aux_favorite_searches = {}
aux_recent_searches = {}
+1 -1
View File
@@ -2,7 +2,7 @@
<Frame name="AuxSearchFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
<Scripts>
<OnUpdate>
Aux.search_frame.on_update()
Aux.search_tab.on_update()
</OnUpdate>
</Scripts>
<Frames>
+1 -1
View File
@@ -1,4 +1,4 @@
Aux.search_frame.FRAMES(function(m, public, private)
Aux.search_tab.FRAMES(function(m, public, private)
do
local btn = Aux.gui.button(AuxSearchFrame, 22)
btn:SetPoint('TOPLEFT', 5, -8)