improved tooltip filter parser

This commit is contained in:
Manuel Simon Hirsig
2016-02-02 22:34:29 +01:00
parent 3cf3f8ccea
commit 710b36f3f0
3 changed files with 38 additions and 15 deletions
+11
View File
@@ -19,6 +19,9 @@ function m.display_name(item_id)
end
function m:complete()
if IsControlKeyDown() then -- TODO problem is ctrl-v, maybe find a better solution
return
end
local filter_string = this:GetText()
@@ -30,6 +33,11 @@ function m:complete()
if current_filter or not completed_filter_string then
current_filter = current_filter or {}
tinsert(options, 'and')
tinsert(options, 'or')
tinsert(options, 'not')
tinsert(options, 'tt')
if current_filter.name
and Aux.static.auctionable_items[strupper(current_filter.name)]
and not current_filter.min_level
@@ -110,6 +118,9 @@ function m:complete()
end
function m:complete_item()
if IsControlKeyDown() then -- TODO problem is ctrl-v, maybe find a better solution
return
end
local text = this:GetText()