added orange price color for existing bids

This commit is contained in:
Manuel Simon Hirsig
2016-02-20 03:38:24 +01:00
parent 23f8bcefc6
commit c8f4f9267c
+9 -2
View File
@@ -179,10 +179,17 @@ local methods = {
-- GetRowPrices = function(record, isPerUnit) return end, -- TODO
GetRowPrices = function(record, per_unit)
local bid_color
if record.high_bidder then
bid_color = '|cff16ff16'
elseif record.high_bid ~= 0 then
bid_color = '|cffff9218'
end
if per_unit then
return ceil(record.unit_bid_price), ceil(record.unit_buyout_price), record.high_bidder and '|cff16ff16'
return ceil(record.unit_bid_price), ceil(record.unit_buyout_price), bid_color
else
return record.bid_price, record.buyout_price, record.high_bidder and '|cff16ff16'
return record.bid_price, record.buyout_price, bid_color
end
end,