mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Add: Industry window zoom with mouse wheel
This commit is contained in:
parent
ff3be45c23
commit
a23ff227e7
@ -1131,6 +1131,13 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnMouseWheel(int wheel) override
|
||||||
|
{
|
||||||
|
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
|
||||||
|
DoZoomInOutWindow(wheel < 0 ? ZOOM_IN : ZOOM_OUT, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void OnQueryTextFinished(char *str) override
|
void OnQueryTextFinished(char *str) override
|
||||||
{
|
{
|
||||||
if (StrEmpty(str)) return;
|
if (StrEmpty(str)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user