swapped bid and buyout button

This commit is contained in:
Manuel Simon Hirsig
2016-02-03 12:47:29 +01:00
parent 393b6a2ad6
commit cc7fa72527
2 changed files with 18 additions and 18 deletions
+5 -5
View File
@@ -20,12 +20,12 @@ function public.inventory_index(slot)
INVTYPE_FINGER = {11, 12},
INVTYPE_TRINKET = {13, 14},
INVTYPE_CLOAK = {15},
INVTYPE_2HWEAPON = {16},
INVTYPE_WEAPONMAINHAND = {16},
INVTYPE_2HWEAPON = {16, 17},
INVTYPE_WEAPONMAINHAND = {16, 17},
INVTYPE_WEAPON = {16, 17},
INVTYPE_WEAPONOFFHAND = {17},
INVTYPE_HOLDABLE = {17},
INVTYPE_SHIELD = {17},
INVTYPE_WEAPONOFFHAND = {16, 17},
INVTYPE_HOLDABLE = {16, 17},
INVTYPE_SHIELD = {16, 17},
INVTYPE_RANGED = {18},
INVTYPE_RANGEDRIGHT = {18},
INVTYPE_TABARD = {19},
+13 -13
View File
@@ -263,23 +263,23 @@ function public.on_load()
private.status_bar = status_bar
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 16)
local btn = Aux.gui.button(AuxFilterSearchFrameResults, 16)
btn:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Buyout')
btn:Disable()
RESULTS.buyout_button = btn
end
do
local btn = Aux.gui.button(AuxFilterSearchFrameResults, 16)
btn:SetPoint('TOPLEFT', RESULTS.buyout_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Bid')
btn:Disable()
private.bid_button = btn
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 16)
btn:SetPoint('TOPLEFT', private.bid_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Buyout')
btn:Disable()
RESULTS.buyout_button = btn
end
do
local btn1 = Aux.gui.button(AuxFilterSearchFrameFilter, 16)
btn1:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
@@ -773,7 +773,7 @@ function public.start_search()
on_page_loaded = function(page, total_pages)
current_page = page + 1
current_total_pages = total_pages
private.status_bar:update_status(100 * (current_page - 1) / current_total_pages, 100 * (current_query - 1) / getn(queries)) -- TODO
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 100 * (current_page - 1) / current_total_pages) -- TODO
private.status_bar:set_text(format('Scanning %d / %d (Page %d / %d)', current_query, getn(queries), current_page, current_total_pages))
end,
on_page_scanned = function()
@@ -782,10 +782,10 @@ function public.start_search()
on_start_query = function(query_index)
current_query = query_index
if current_page then
private.status_bar:update_status(100 * (current_page - 1) / current_total_pages, 100 * (current_query - 1) / getn(queries)) -- TODO
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 100 * (current_page - 1) / current_total_pages) -- TODO
private.status_bar:set_text(format('Scanning %d / %d (Page %d / %d)', current_query, getn(queries), current_page, current_total_pages))
else
private.status_bar:update_status(0, 100 * (current_query - 1) / getn(queries)) -- TODO
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 0) -- TODO
private.status_bar:set_text(format('Scanning %d / %d', current_query, getn(queries)))
end
end,