easier to do things this way

This commit is contained in:
gretchen
2024-03-08 12:49:18 +01:00
parent c902b4c45e
commit 7605c0653b
3 changed files with 15 additions and 15 deletions
+10 -10
View File
@@ -20,7 +20,7 @@ local settings_schema = {'tuple', '#', {duration='number'}, {start_price='number
local scan_id, inventory_records, bid_records, buyout_records = 0, {}, {}, {}
M.DURATION_6, M.DURATION_24, M.DURATION_72 = 360, 1440, 4320
M.DURATION_2, M.DURATION_8, M.DURATION_24 = 120, 480, 1440
refresh = true
@@ -207,11 +207,11 @@ function post_auctions()
local key = selected_item.key
local duration_code
if duration == DURATION_6 then
if duration == DURATION_2 then
duration_code = 2
elseif duration == DURATION_24 then
elseif duration == DURATION_8 then
duration_code = 3
elseif duration == DURATION_72 then
elseif duration == DURATION_24 then
duration_code = 4
end
@@ -259,11 +259,11 @@ function M.post_auctions_bind()
local key = selected_item.key
local duration_code
if duration == DURATION_6 then
if duration == DURATION_2 then
duration_code = 2
elseif duration == DURATION_24 then
elseif duration == DURATION_8 then
duration_code = 3
elseif duration == DURATION_72 then
elseif duration == DURATION_24 then
duration_code = 4
end
@@ -606,17 +606,17 @@ function initialize_duration_dropdown()
end
UIDropDownMenu_AddButton{
text = '6 Hours',
value = DURATION_6,
value = DURATION_2,
func = on_click,
}
UIDropDownMenu_AddButton{
text = '24 Hours',
value = DURATION_24,
value = DURATION_8,
func = on_click,
}
UIDropDownMenu_AddButton{
text = '72 Hours',
value = DURATION_72,
value = DURATION_24,
func = on_click,
}
end