refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-23 13:50:37 +02:00
parent a022dd671d
commit aa678e3058
10 changed files with 21 additions and 17 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
module 'post_tab' import 'scan' 'post' 'info'
module 'post_tab' import 'scan' 'scan_util' 'post' 'history' 'info' 'persistence' 'item_listing'
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'}}
@@ -88,7 +88,7 @@ end
function update_inventory_listing()
if not ACTIVE then return end
inventory_listing.populate(inventory_listing, values(filter(inventory_records, function(record)
item_listing.populate(inventory_listing, values(filter(inventory_records, function(record)
local settings = read_settings(record.key)
return record.aux_quantity > 0 and (not settings.hidden or show_hidden_checkbox:GetChecked())
end)))
+3 -3
View File
@@ -11,17 +11,17 @@ function create_frames()
frame.content:SetPoint('BOTTOMLEFT', aux_frame.content, 'BOTTOMLEFT', 0, 0)
frame.content:SetPoint('BOTTOMRIGHT', aux_frame.content, 'BOTTOMRIGHT', 0, 0)
frame.inventory = gui.panel(aux_frame.content)
frame.inventory = gui.panel(frame.content)
frame.inventory:SetWidth(212)
frame.inventory:SetPoint('TOPLEFT', 0, 0)
frame.inventory:SetPoint('BOTTOMLEFT', 0, 0)
frame.parameters = gui.panel(aux_frame.content)
frame.parameters = gui.panel(frame.content)
frame.parameters:SetHeight(173)
frame.parameters:SetPoint('TOPLEFT', frame.inventory, 'TOPRIGHT', 2.5, 0)
frame.parameters:SetPoint('TOPRIGHT', 0, 0)
frame.auctions = gui.panel(aux_frame.content)
frame.auctions = gui.panel(frame.content)
frame.auctions:SetHeight(228)
frame.auctions:SetPoint('BOTTOMLEFT', frame.inventory, 'BOTTOMRIGHT', 2.5, 0)
frame.auctions:SetPoint('BOTTOMRIGHT', 0, 0)
+1 -1
View File
@@ -1,4 +1,4 @@
module 'search_tab'
module 'search_tab' import 'info'
_g.aux_auto_buy_filter = ''