From 244d8a5417ac8fcbb98fea92e5d83fcb7fa22dd9 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 9 Aug 2016 19:30:47 +0200 Subject: [PATCH] small filter color change --- tabs/search/filter.lua | 2 +- util/money.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tabs/search/filter.lua b/tabs/search/filter.lua index af41d45..9f4c998 100644 --- a/tabs/search/filter.lua +++ b/tabs/search/filter.lua @@ -155,7 +155,7 @@ function public.formatted_post_filter(components) if aux.filter.filters[component[2]].input_type == 'money' then parameter = aux.money.to_string(aux.money.from_string(parameter), nil, true, nil, nil, true) end - component_text = component_text..': '..aux.auction_listing.colors.ORANGE..parameter..FONT_COLOR_CODE_CLOSE or component_text + component_text = component_text..': '..(m.filter_builder_state.selected == i and '|cffffaa77' or aux.auction_listing.colors.ORANGE)..parameter..FONT_COLOR_CODE_CLOSE or component_text end while getn(stack) > 0 and stack[getn(stack)] do local top = tremove(stack) diff --git a/util/money.lua b/util/money.lua index 55dbfe2..43d230e 100644 --- a/util/money.lua +++ b/util/money.lua @@ -58,6 +58,11 @@ function public.format(money, exact, color) return str end +--function public.to_string(params) -- TODOSS +-- local gold, silver, copper = m.gsc(params.copper or 0 + ) +-- local settings = aux.util.set(unpack(arg)) +--end + function public.to_string(money, pad, trim, decimal_points, color, no_color) local is_negative = money < 0 money = abs(money)