some refactoring

This commit is contained in:
Manuel Simon Hirsig
2015-09-29 01:56:13 +02:00
parent b52db0eb6b
commit 2b6516c534
2 changed files with 7 additions and 6 deletions
+5 -5
View File
@@ -179,13 +179,13 @@ function AuxBuyEntry_OnEnter()
local entry = entries[entryIndex]
local found, _, itemString = string.find(entry.itemLink, "^|%x+|H(.+)|h%[.+%]")
if(found) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetHyperlink(itemString);
GameTooltip:Show();
if found then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetHyperlink(itemString)
GameTooltip:Show()
if(EnhTooltip ~= nil) then
EnhTooltip.TooltipCall(GameTooltip, entry.name, entry.itemLink, entry.quality, entry.stackSize);
EnhTooltip.TooltipCall(GameTooltip, entry.name, entry.itemLink, entry.quality, entry.stackSize)
end
end
end
+2 -1
View File
@@ -31,6 +31,7 @@ end
function Aux.scan.on_update()
if page_state then
if page_state.index <= page_state.count and current_job.on_read_auction then
current_job.on_read_auction(page_state.index)
end
@@ -45,7 +46,7 @@ function Aux.scan.on_update()
end
if page_state then
page_state.index = page_state.index + 1
page_state.index = min(page_state.index + 1, page_state.count)
end
elseif current_job and GetTime() - last_query_request > 0.5 then