refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-27 14:14:16 +02:00
parent 22c3d0436e
commit 93203bd3e1
8 changed files with 26 additions and 31 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ aux 'post_tab' local scan, scan_util, post, history, info, persistence, item_lis
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'}}
function default_settings.get()
function private.default_settings.get()
return -object('duration', DURATION_8 , 'stack_size', 1, 'start_price', 0, 'buyout_price', 0, 'hidden', false)
end
do
local data
function data.get()
function private.data.get()
if not data then
local dataset = persistence.dataset
data = dataset.post or t
+1 -1
View File
@@ -78,7 +78,7 @@ function USE_ITEM(item_info)
execute(nil, false)
end
function subtab.set(tab)
function private.subtab.set(tab)
search_results_button:UnlockHighlight()
saved_searches_button:UnlockHighlight()
new_filter_button:UnlockHighlight()
+1 -1
View File
@@ -23,7 +23,7 @@ do
local searches = t
local search_index = 1
function current_search.get() return searches[search_index] end
function private.current_search.get() return searches[search_index] end
function update_search(index)
searches[search_index].status_bar:Hide()