working on search modes for buy and sliders for quantity in sell

This commit is contained in:
Manuel Simon Hirsig
2015-10-19 02:25:56 +02:00
parent 2a16fb7073
commit 51dc12e428
20 changed files with 1568 additions and 444 deletions
+11 -1
View File
@@ -38,7 +38,7 @@ function Aux.info.auction_sell_item()
usable = usable,
vendor_price = vendor_price,
vendor_price_per_unit = vendor_price_per_unit,
max_stack = max_stack,
max_stack = max_stack, -- TODO not working??
total_count = total_count,
base_deposit = base_deposit,
}
@@ -99,6 +99,16 @@ function Aux.info.set_game_tooltip(owner, tooltip, anchor, EnhTooltip_info)
end
end
function Aux.info.tooltip_match(patterns, tooltip)
return Aux.util.all(patterns, function(pattern)
return Aux.util.any(tooltip, function(line)
local left_match = line[1].text and strfind(strupper(line[1].text), strupper(pattern), 1, true)
local right_match = line[2].text and strfind(strupper(line[2].text), strupper(pattern), 1, true)
return left_match or right_match
end)
end)
end
function Aux.info.tooltip(setter)
for i = 1, 30 do
getglobal('AuxInfoTooltipTextLeft'..i):SetText()