I already said it in another thread but it's very much worth repeating here: thanks so much for TWBT, it's amazing!
I am using version 5.45, bundled with PyLNP. I just looked at mifki's Github and I see there have been 5 new commits since 5.45. One of them looked particularly interesting to me:
Fixed zooming to unit/buildingI am using TWBT 5.45, with DFHack 40.24-r3, and I use many/most plugins including mousequery.
I have noticed that zooming is usually broken. If I zoom to a unit/building, it will end up looking at another tile on the Z level of the target building/unit.
I thought the reason was mousequery track. What I think happens is:
- DF zooms to the target unit/building
- After the zoom is completed, mousequery reads the mouse cursor position
- mousequery sets the active tile to be the current mouse position
- This moves away from the zoom location - so I am on the right Z level for the target, but never the right tile
At first I used to disable the whole mousequery plugin before zooming. But in my recent testing I have narrowed it down to being mousequery track specifically.
So now I bind these two hotkeys:
keybinding add Ctrl-Shift-B "mousequery track disable"
keybinding add Ctrl-Shift-M "mousequery track enable"
And any time I want to zoom I hit Ctrl-Shift-B, and when I am done I hit Ctrl-Shift-M.
it is a bit annoying, but at least I can use zooming and still have general mouse control!
OK, so now my question: is any of this related to the fixes mifki has made regarding "Fixed zooming to unit/building"? I thought the problem was only with mousequery, but maybe it is actually a problem in TWBT and it's possible to fix it in TWBT itself?
If I get this fix added to my TWBT, will I not have to disable mousequery any more? I have looked at the code in the commit but I don't really know anything about DF/DFHack so I don't really know what it's doing or what it fixes exactly. Maybe it's something completely unrelated to what I described above?
Though if it's not related to mousequery, my next question would be: what does it fix? Because when I disable mousequery, zooming seems to work just fine, every time?
Thanks in advance, and again for TWBT!