tooltips for post and left click search shortcuts

This commit is contained in:
Manuel Simon Hirsig
2016-03-23 01:08:02 +01:00
parent 7b633191bb
commit 4d7c3772ae
6 changed files with 44 additions and 24 deletions
+7 -2
View File
@@ -17,8 +17,13 @@ function public.on_load()
{ name='Bid', width=.125, align='RIGHT' },
{ name='Buy', width=.125, align='RIGHT' },
})
private.listing:SetHandler('OnClick', function(table, row_data, column)
private.on_row_click(row_data.record)
private.listing:SetHandler('OnClick', function(table, row_data, column, button)
if button == 'LeftButton' then
private.on_row_click(row_data.record)
elseif button == 'RightButton' then
Aux.tab_group:set_tab(1)
Aux.search_frame.start_search(strlower(Aux.info.item(this.row.data.record.item_id).name)..'/exact')
end
end)
private.listing:SetHandler('OnEnter', function(table, row_data, column)
Aux.info.set_tooltip(row_data.record.itemstring, column.row, 'ANCHOR_RIGHT')