added clear button to search tab
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Aux = {
|
Aux = {
|
||||||
version = '2.6.10',
|
version = '2.6.11',
|
||||||
blizzard_ui_shown = false,
|
blizzard_ui_shown = false,
|
||||||
orig = {},
|
orig = {},
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-1
@@ -3,6 +3,7 @@ Aux.search_frame = public
|
|||||||
|
|
||||||
aux_favorite_searches = {}
|
aux_favorite_searches = {}
|
||||||
aux_recent_searches = {}
|
aux_recent_searches = {}
|
||||||
|
local scanned_records = {}
|
||||||
|
|
||||||
private.popup_info = {
|
private.popup_info = {
|
||||||
rename = {}
|
rename = {}
|
||||||
@@ -289,6 +290,17 @@ function public.on_load()
|
|||||||
btn:Disable()
|
btn:Disable()
|
||||||
private.buyout_button = btn
|
private.buyout_button = btn
|
||||||
end
|
end
|
||||||
|
do
|
||||||
|
local btn = Aux.gui.button(AuxSearchFrameResults, 16)
|
||||||
|
btn:SetPoint('TOPLEFT', private.buyout_button, 'TOPRIGHT', 5, 0)
|
||||||
|
btn:SetWidth(80)
|
||||||
|
btn:SetHeight(24)
|
||||||
|
btn:SetText('Clear')
|
||||||
|
btn:SetScript('OnClick', function()
|
||||||
|
while tremove(scanned_records) do end
|
||||||
|
private.results_listing:SetDatabase()
|
||||||
|
end)
|
||||||
|
end
|
||||||
do
|
do
|
||||||
local btn1 = Aux.gui.button(AuxSearchFrameFilter, 16)
|
local btn1 = Aux.gui.button(AuxSearchFrameFilter, 16)
|
||||||
btn1:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
|
btn1:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
|
||||||
@@ -786,7 +798,7 @@ function public.start_search(filter_string)
|
|||||||
private.status_bar:set_text('Scanning auctions...')
|
private.status_bar:set_text('Scanning auctions...')
|
||||||
|
|
||||||
private.results_listing:Clear()
|
private.results_listing:Clear()
|
||||||
local scanned_records = {}
|
scanned_records = {}
|
||||||
private.results_listing:SetDatabase(scanned_records)
|
private.results_listing:SetDatabase(scanned_records)
|
||||||
|
|
||||||
local current_query
|
local current_query
|
||||||
|
|||||||
Reference in New Issue
Block a user