From 034e34f8b6aea45bc2d88767cda309f31fafe579 Mon Sep 17 00:00:00 2001 From: Eric Wald Date: Sun, 17 Aug 2014 15:44:54 -0600 Subject: [PATCH] Moving the autotrade hotkey to the bottom of the menu. The hard-coded location is no longer appropriate for the new behavior of the linked stockpiles list. --- plugins/autotrade.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autotrade.cpp b/plugins/autotrade.cpp index 5eacbf2d7..46b5663db 100644 --- a/plugins/autotrade.cpp +++ b/plugins/autotrade.cpp @@ -421,7 +421,7 @@ struct trade_hook : public df::viewscreen_dwarfmodest auto dims = Gui::getDwarfmodeViewDims(); int left_margin = dims.menu_x1 + 1; int x = left_margin; - int y = 24; + int y = dims.y2 - 4; OutputToggleString(x, y, "Auto trade", "Shift-T", monitor.isMonitored(sp), true, left_margin); } };