added right click support where you could drag before, cleaned up the static database interface a bit

This commit is contained in:
Manuel Simon Hirsig
2016-02-20 06:22:41 +01:00
parent 4c4ee39458
commit db0c85e066
6 changed files with 65 additions and 48 deletions
+3 -5
View File
@@ -6,10 +6,8 @@ do
function m.sorted_item_names()
if not sorted_item_names then
sorted_item_names = {}
for key, value in Aux.static.auctionable_items do
if type(key) == 'number' then
tinsert(sorted_item_names, value.name)
end
for _, item_info in ipairs(Aux.static.items()) do
tinsert(sorted_item_names, item_info.name)
end
sort(sorted_item_names, function(a, b) return strlen(a) < strlen(b) or (strlen(a) == strlen(b) and a < b) end)
end
@@ -33,7 +31,7 @@ function m:complete()
current_filter = current_filter or {}
if current_filter.name
and Aux.static.auctionable_items[strupper(current_filter.name)]
and Aux.static.item_id(strupper(current_filter.name))
and not current_filter.min_level
and not current_filter.max_level
and not current_filter.class