refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-30 20:56:30 +02:00
parent fcd57ca300
commit f03acf43d6
4 changed files with 64 additions and 58 deletions
+8 -5
View File
@@ -33,17 +33,16 @@ private.FILTER = 3
function LOAD()
aux_search_tab_frame.create()
subtab = SAVED
current_search.placeholder = true
end
function OPEN()
frame:Show()
update_search_listings()
aux_search_tab_saved.update_search_listings()
end
function CLOSE()
close_settings()
current_search.table:SetSelectedRecord()
aux_search_tab_results.close_settings()
aux_search_tab_results.current_search.table:SetSelectedRecord()
frame:Hide()
end
@@ -57,6 +56,10 @@ function USE_ITEM(item_info)
execute(nil, false)
end
function public.execute(resume, real_time)
aux_search_tab_results.execute(resume, real_time)
end
function private.subtab.set(tab)
search_results_button:UnlockHighlight()
saved_searches_button:UnlockHighlight()
@@ -92,7 +95,7 @@ function public.add_filter(filter_string)
search_box:SetText(old_filter_string .. filter_string)
end
function private.blizzard_page_index(str)
function public.blizzard_page_index(str)
if tonumber(str) then
return max(0, tonumber(str) - 1)
end