huge filter tab improvements
This commit is contained in:
+8
-8
@@ -122,27 +122,27 @@ function private.update_auction_listing()
|
||||
|
||||
local bid_color
|
||||
if blizzard_bid_undercut < unit_start_price and stack_blizzard_bid_undercut < unit_start_price then
|
||||
bid_color = aux.auction_listing.COLORS.RED
|
||||
bid_color = aux.auction_listing.colors.RED
|
||||
elseif blizzard_bid_undercut < unit_start_price then
|
||||
bid_color = aux.auction_listing.COLORS.ORANGE
|
||||
bid_color = aux.auction_listing.colors.ORANGE
|
||||
elseif stack_blizzard_bid_undercut < unit_start_price then
|
||||
bid_color = aux.auction_listing.COLORS.YELLOW
|
||||
bid_color = aux.auction_listing.colors.YELLOW
|
||||
end
|
||||
|
||||
local buyout_color
|
||||
if buyout_price_undercut < unit_buyout_price and stack_buyout_price_undercut < unit_buyout_price then
|
||||
buyout_color = aux.auction_listing.COLORS.RED
|
||||
buyout_color = aux.auction_listing.colors.RED
|
||||
elseif buyout_price_undercut < unit_buyout_price then
|
||||
buyout_color = aux.auction_listing.COLORS.ORANGE
|
||||
buyout_color = aux.auction_listing.colors.ORANGE
|
||||
elseif stack_buyout_price_undercut < unit_buyout_price then
|
||||
buyout_color = aux.auction_listing.COLORS.YELLOW
|
||||
buyout_color = aux.auction_listing.colors.YELLOW
|
||||
end
|
||||
|
||||
tinsert(auction_rows, {
|
||||
cols = {
|
||||
{ value=auction_record.own and aux.auction_listing.COLORS.GREEN..auction_record.count..FONT_COLOR_CODE_CLOSE or auction_record.count },
|
||||
{ value=auction_record.own and aux.auction_listing.colors.GREEN..auction_record.count..FONT_COLOR_CODE_CLOSE or auction_record.count },
|
||||
{ value=aux.auction_listing.time_left(auction_record.duration) },
|
||||
{ value=auction_record.stack_size == stack_size and aux.auction_listing.COLORS.GREEN..auction_record.stack_size..FONT_COLOR_CODE_CLOSE or auction_record.stack_size },
|
||||
{ value=auction_record.stack_size == stack_size and aux.auction_listing.colors.GREEN..auction_record.stack_size..FONT_COLOR_CODE_CLOSE or auction_record.stack_size },
|
||||
{ value=aux.money.to_string(auction_record.unit_blizzard_bid, true, nil, 3, bid_color) },
|
||||
{ value=historical_value and aux.auction_listing.percentage_historical(aux.util.round(auction_record.unit_blizzard_bid / historical_value * 100)) or '---' },
|
||||
{ value=auction_record.unit_buyout_price > 0 and aux.money.to_string(auction_record.unit_buyout_price, true, nil, 3, buyout_color) or '---' },
|
||||
|
||||
Reference in New Issue
Block a user