From 714347925398f46626395f78e986872446e08864 Mon Sep 17 00:00:00 2001 From: Eric Wald Date: Thu, 4 Sep 2014 23:28:59 -0600 Subject: [PATCH] Moving trade screen search dimming to the proper row. Unfortunately, this now means it hits one of the search clear lines when both are active. --- plugins/search.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/search.cpp b/plugins/search.cpp index dcf36809f..0309e4861 100644 --- a/plugins/search.cpp +++ b/plugins/search.cpp @@ -408,7 +408,7 @@ protected: //bool redo_search; string search_string; -private: +protected: int *cursor_pos; char select_key; bool valid; @@ -1086,11 +1086,12 @@ public: if (!search_string.empty()) { - make_text_dim(2, 37, 22); - make_text_dim(42, gps->dimx-2, 22); int32_t x = 2; int32_t y = gps->dimy - 3; - OutputString(COLOR_YELLOW, x, y, "Note: Clear search to trade"); + make_text_dim(2, 37, y); + make_text_dim(42, gps->dimx-2, y); + OutputString(COLOR_LIGHTRED, x, y, string(1, select_key + 'A' - 'a')); + OutputString(COLOR_WHITE, x, y, ": Clear search to trade "); } } @@ -1136,11 +1137,12 @@ public: if (!search_string.empty()) { - make_text_dim(2, 37, 22); - make_text_dim(42, gps->dimx-2, 22); int32_t x = 42; int32_t y = gps->dimy - 3; - OutputString(COLOR_YELLOW, x, y, "Note: Clear search to trade"); + make_text_dim(2, 37, y); + make_text_dim(42, gps->dimx-2, y); + OutputString(COLOR_LIGHTRED, x, y, string(1, select_key + 'A' - 'a')); + OutputString(COLOR_WHITE, x, y, ": Clear search to trade "); } }