(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.

This commit is contained in:
peter1138
2008-05-05 11:36:43 +00:00
parent 57e104f97e
commit 4595d2c3b1
9 changed files with 79 additions and 24 deletions

View File

@@ -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: