working on shopping tooltips

This commit is contained in:
Manuel Simon Hirsig
2016-02-03 03:54:30 +01:00
parent a1263056dc
commit 55021a1e44
3 changed files with 43 additions and 14 deletions
+3 -2
View File
@@ -93,7 +93,7 @@ function private.add_filter()
local old_filter_string = private.search_box:GetText()
old_filter_string = Aux.util.trim(old_filter_string)
if strlen(old_filter_string) > 0 and not strfind(old_filter_string, ';$') then
if strlen(old_filter_string) > 0 then
old_filter_string = old_filter_string..';'
end
@@ -216,7 +216,8 @@ function public.on_load()
editbox:SetScript('OnReceiveDrag', function()
local item_info = Aux.cursor_item() and Aux.static.item_info(Aux.cursor_item().item_id)
if item_info then
this:SetText(item_info.name..'/exact')
this:SetText(strlower(item_info.name)..'/exact')
public.start_search()
end
ClearCursor()
end)