Split from this topic: [SUG][PL] Modifier + Mousewheel = Forwards/Backwards Framestep (https://www.lemmingsforums.net/index.php?msg=107712)
Humm, here comes another idea that might result in about the same effect but with maybe less programming hassle : just add a "zoom cycle" function.
When one presses the "zoom cycle" button, the game zooms in. Other presses continue to zoom in until you reach max zoom, at which point other presses start to zoom out and so on. This way one can reach any amount of zoom with some presses a single button. Then one can configure hotkeys as follows :
wheel up (no modifier) : time skip desired number of frame forward or backward
wheel down (no modifier) : time skip desired number of frame forward or backward
right click : zoom cycle.
This way you have total control of both zoom and time with the mouse only, and I guess the programming part is easier.
Quote from: Guigui on January 30, 2026, 01:24:38 PMjust add a "zoom cycle" function.
Not the worst idea. You could, as you've said, then simply configure the time/zoom hotkeys as desired. Would ping-pong (>>> MAX <<<) or reset (>>> MAX >>>) be better?
Not sure which one of ping-pong or reset is the best. If I understand correctly, you can zoom one step too far and have to make the whole cycle again in both case. So I guess either solution works.
Why not add a visual indication on screen or on skill bar when you have reached min or max zoom to prevent from going too far ?
Having tested both, ping-pong is definitely the better of the two. Reset looks like a bug, and only goes in one direction.
Quote from: Guigui on January 30, 2026, 04:22:53 PMWhy not add a visual indication on screen or on skill bar when you have reached min or max zoom to prevent from going too far ?
This could optionally be added to the corner of the minimap, I'll look into it.
OK, went ahead and added Cycle Zoom as well. It's a ping-pong zoom action which first zooms in to the maximum possible factor (usually 9), then zooms back out to factor (0), and then this cycle repeats with each hotkey press.
When using the hotkey, the current zoom factor is shown in the minimap so that the user knows if they've reached (max zoom) or (0):
(https://i.ibb.co/msZjV8J/image.png)
The hotkey is not mapped to anything by default, it must be user-assigned.
Implemented in commit 44ff52e.
Sounds great, thank you WillLem. But do you sleep sometimes ?
Quote from: Guigui on January 30, 2026, 11:26:29 PMBut do you sleep sometimes ?
Like a cat! I get about 9 hours per day on average :lemcat:
I spend a lot more time indoors during the winter so generally have more laptop time. Plus, I work very fast and I use AI to help with a lot of it. Programming is my favourite thing to do at the moment, the problem solving is basically addictive.
Thanks for your concern, though :)