Make modifier key functions configurable

This commit is contained in:
dP
2020-07-13 01:35:07 +03:00
parent 4af1a255df
commit 7441767ed8
55 changed files with 366 additions and 146 deletions
+3 -1
View File
@@ -25,6 +25,8 @@
#include "table/strings.h"
#include "citymania/cm_hotkeys.hpp"
#include "safeguards.h"
/** GUI for accessing waypoints and buoys. */
@@ -88,7 +90,7 @@ public:
{
switch (widget) {
case WID_W_CENTER_VIEW: // scroll to location
if (_ctrl_pressed) {
if (citymania::_fn_mod) {
ShowExtraViewPortWindow(this->GetCenterTile());
} else {
ScrollMainWindowToTile(this->GetCenterTile());