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
+5 -3
View File
@@ -23,6 +23,8 @@
#include "table/strings.h"
#include "citymania/cm_hotkeys.hpp"
#include "safeguards.h"
struct SubsidyListWindow : Window {
@@ -82,8 +84,8 @@ struct SubsidyListWindow : Window {
default: NOT_REACHED();
}
if (_ctrl_pressed || !ScrollMainWindowToTile(xy)) {
if (_ctrl_pressed) ShowExtraViewPortWindow(xy);
if (citymania::_fn_mod || !ScrollMainWindowToTile(xy)) {
if (citymania::_fn_mod) ShowExtraViewPortWindow(xy);
/* otherwise determine dst coordinate for subsidy and scroll to it */
switch (s->dst_type) {
@@ -92,7 +94,7 @@ struct SubsidyListWindow : Window {
default: NOT_REACHED();
}
if (_ctrl_pressed) {
if (citymania::_fn_mod) {
ShowExtraViewPortWindow(xy);
} else {
ScrollMainWindowToTile(xy);