From 783b218eec3bc1b1c4c33f57700db39fc92069a4 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 28 Sep 2012 18:50:01 +0400 Subject: Try a different color scheme when highlighting squad members in tweak. --- plugins/tweak.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/tweak.cpp b/plugins/tweak.cpp index 939c94b3..d54c4a5e 100644 --- a/plugins/tweak.cpp +++ b/plugins/tweak.cpp @@ -622,6 +622,7 @@ struct military_assign_hook : df::viewscreen_layer_militaryst { int x1 = plist->getX1(), y1 = plist->getY1(); int x2 = plist->getX2(), y2 = plist->getY2(); int i1 = plist->getFirstVisible(), i2 = plist->getLastVisible(); + int si = plist->getListCursor(); for (int y = y1, i = i1; i <= i2; i++, y++) { @@ -633,7 +634,7 @@ struct military_assign_hook : df::viewscreen_layer_militaryst { { Pen cur_tile = Screen::readTile(x, y); if (!cur_tile.valid()) continue; - cur_tile.fg = (cur_tile.fg == COLOR_GREY ? COLOR_BROWN : COLOR_GREEN); + cur_tile.fg = (i == si) ? COLOR_BROWN : COLOR_GREEN; Screen::paintTile(cur_tile, x, y); } } -- cgit v1.2.1