From c8f4f9267c5bace5c37208330320bf1602ef3d91 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 20 Feb 2016 03:38:24 +0100 Subject: [PATCH] added orange price color for existing bids --- auction_listing.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/auction_listing.lua b/auction_listing.lua index efd8858..bac2cc3 100644 --- a/auction_listing.lua +++ b/auction_listing.lua @@ -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,