refactoring
This commit is contained in:
+2
-2
@@ -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 property.default_settings.get()
|
||||
function default_settings.get()
|
||||
return -object('duration', DURATION_8 , 'stack_size', 1, 'start_price', 0, 'buyout_price', 0, 'hidden', false)
|
||||
end
|
||||
|
||||
do
|
||||
local data
|
||||
function property.data.get()
|
||||
function data.get()
|
||||
if not data then
|
||||
local dataset = persistence.dataset
|
||||
data = dataset.post or t
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ function create_frames()
|
||||
if arg1 == 'LeftButton' then
|
||||
set_item(this.item_record)
|
||||
elseif arg1 == 'RightButton' then
|
||||
set_tab(1)
|
||||
tab = 1
|
||||
search_tab.set_filter(strlower(info.item(this.item_record.item_id).name)..'/exact')
|
||||
search_tab.execute(nil, false)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user