From 4595d2c3b12490c74b4bd6ff245429b7c418d515 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 5 May 2008 11:36:43 +0000 Subject: (svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items. --- src/depot_gui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 7a859b1bc..fcd4adebc 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -819,7 +819,13 @@ static void DepotWndProc(Window *w, WindowEvent *e) } break; - case DEPOT_WIDGET_LOCATION: ScrollMainWindowToTile(w->window_number); break; + case DEPOT_WIDGET_LOCATION: + if (_ctrl_pressed) { + ShowExtraViewPortWindow(w->window_number); + } else { + ScrollMainWindowToTile(w->window_number); + } + break; case DEPOT_WIDGET_STOP_ALL: case DEPOT_WIDGET_START_ALL: -- cgit v1.2.3-54-g00ecf