diff options
| author | Alexander Gavrilov | 2012-09-28 18:50:01 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-28 18:50:01 +0400 |
| commit | 783b218eec3bc1b1c4c33f57700db39fc92069a4 (patch) | |
| tree | ce501eaefaa71f3574e063657451dede9a38f987 | |
| parent | ba763b773d64c17a58ccd64f2b0581b6619c81e6 (diff) | |
| download | dfhack-783b218eec3bc1b1c4c33f57700db39fc92069a4.tar.gz dfhack-783b218eec3bc1b1c4c33f57700db39fc92069a4.tar.bz2 dfhack-783b218eec3bc1b1c4c33f57700db39fc92069a4.tar.xz | |
Try a different color scheme when highlighting squad members in tweak.
| -rw-r--r-- | plugins/tweak.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |
