From 6060da5903be233df157d4a7ae8e6e2af2f0cdbf Mon Sep 17 00:00:00 2001 From: Eric Wald Date: Sun, 17 Aug 2014 12:27:57 -0600 Subject: [PATCH] Moving Mark/Unmark all in the trade screen These are in a different plugin, but affect the same interface. --- plugins/autotrade.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/autotrade.cpp b/plugins/autotrade.cpp index 5eacbf2d7..527f00cef 100644 --- a/plugins/autotrade.cpp +++ b/plugins/autotrade.cpp @@ -480,15 +480,19 @@ struct tradeview_hook : public df::viewscreen_tradegoodsst DEFINE_VMETHOD_INTERPOSE(void, render, ()) { INTERPOSE_NEXT(render)(); + + // Insert into the blank line between trade items and standard keys. + // The blank line at the bottom is taken by the search plugin. + auto dim = Screen::getWindowSize(); + int y = dim.y - 5; + int x = 2; - int y = 27; - OutputHotkeyString(x, y, "Mark all", "m", true, 2); + OutputHotkeyString(x, y, "Mark all, ", "m"); OutputHotkeyString(x, y, "Unmark all", "u"); x = 42; - y = 27; - OutputHotkeyString(x, y, "Mark all", "Shift-m", true, 42); - OutputHotkeyString(x, y, "Unmark all", "Shift-u"); + OutputHotkeyString(x, y, "Mark all, ", "M"); + OutputHotkeyString(x, y, "Unmark all", "U"); } };