enhtooltip support removed
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ local methods = {
|
|||||||
local rt = this:GetParent().row.rt
|
local rt = this:GetParent().row.rt
|
||||||
local rowData = this:GetParent().row.data
|
local rowData = this:GetParent().row.data
|
||||||
if rowData and rowData.record then
|
if rowData and rowData.record then
|
||||||
Aux.info.set_tooltip(rowData.record.itemstring, rowData.record.EnhTooltip_info, this, 'ANCHOR_RIGHT')
|
Aux.info.set_tooltip(rowData.record.itemstring, this, 'ANCHOR_RIGHT')
|
||||||
Aux.info.set_shopping_tooltip(rowData.record.slot)
|
Aux.info.set_shopping_tooltip(rowData.record.slot)
|
||||||
rt.isShowingItemTooltip = true
|
rt.isShowingItemTooltip = true
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ function public.on_load()
|
|||||||
private.on_row_click(row_data.record)
|
private.on_row_click(row_data.record)
|
||||||
end)
|
end)
|
||||||
private.listing:SetHandler('OnEnter', function(table, row_data, column)
|
private.listing:SetHandler('OnEnter', function(table, row_data, column)
|
||||||
Aux.info.set_tooltip(row_data.record.itemstring, row_data.record.EnhTooltip_info, column.row, 'ANCHOR_RIGHT')
|
Aux.info.set_tooltip(row_data.record.itemstring, column.row, 'ANCHOR_RIGHT')
|
||||||
end)
|
end)
|
||||||
private.listing:SetHandler('OnLeave', function(table, row_data, column)
|
private.listing:SetHandler('OnLeave', function(table, row_data, column)
|
||||||
GameTooltip:Hide()
|
GameTooltip:Hide()
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ function public.on_load()
|
|||||||
private.on_row_click(row_data.record)
|
private.on_row_click(row_data.record)
|
||||||
end)
|
end)
|
||||||
private.listing:SetHandler('OnEnter', function(table, row_data, column)
|
private.listing:SetHandler('OnEnter', function(table, row_data, column)
|
||||||
Aux.info.set_tooltip(row_data.record.itemstring, row_data.record.EnhTooltip_info, column.row, 'ANCHOR_RIGHT')
|
Aux.info.set_tooltip(row_data.record.itemstring, column.row, 'ANCHOR_RIGHT')
|
||||||
end)
|
end)
|
||||||
private.listing:SetHandler('OnLeave', function(table, row_data, column)
|
private.listing:SetHandler('OnLeave', function(table, row_data, column)
|
||||||
GameTooltip:Hide()
|
GameTooltip:Hide()
|
||||||
|
|||||||
@@ -164,24 +164,12 @@ function public.auction(index, type)
|
|||||||
tooltip = tooltip,
|
tooltip = tooltip,
|
||||||
charges = charges,
|
charges = charges,
|
||||||
aux_quantity = aux_quantity,
|
aux_quantity = aux_quantity,
|
||||||
|
|
||||||
EnhTooltip_info = {
|
|
||||||
name = name,
|
|
||||||
hyperlink = hyperlink,
|
|
||||||
quality = quality,
|
|
||||||
count = aux_quantity,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
function public.set_tooltip(itemstring, EnhTooltip_info, owner, anchor)
|
function public.set_tooltip(itemstring, owner, anchor)
|
||||||
|
|
||||||
GameTooltip:SetOwner(owner, anchor)
|
GameTooltip:SetOwner(owner, anchor)
|
||||||
GameTooltip:SetHyperlink(itemstring)
|
GameTooltip:SetHyperlink(itemstring)
|
||||||
|
|
||||||
if EnhTooltip and EnhTooltip_info then
|
|
||||||
EnhTooltip.TooltipCall(GameTooltip, EnhTooltip_info.name, EnhTooltip_info.hyperlink, EnhTooltip_info.quality, EnhTooltip_info.count)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function public.set_shopping_tooltip(slot)
|
function public.set_shopping_tooltip(slot)
|
||||||
|
|||||||
Reference in New Issue
Block a user