1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 00:19:09 +00:00

Add: Town window zoom with mouse wheel

This commit is contained in:
Steve Goldman
2024-06-25 11:46:28 -05:00
parent a1e94ccddb
commit 1b5a9d2096

View File

@@ -587,6 +587,13 @@ public:
}
}
void OnMouseWheel(int wheel) override
{
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
DoZoomInOutWindow(wheel < 0 ? ZOOM_IN : ZOOM_OUT, this);
}
}
/**
* Some data on this window has become invalid.
* @param data Information about the changed data.