DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.86k stars 471 forks source link

Request: The ability to zoom in on the map screen #3868

Open BeerNTacos opened 12 months ago

BeerNTacos commented 12 months ago

For some larger monitors with higher resolutions, the ability to zoom into the map to better view sites would be quite helpful.

myk002 commented 11 months ago

discussed somewhat on discord here: https://discord.com/channels/793331351645323264/807444515194798090/1161454843974668350

to summarize the idea, we could do a picture-in-picture tool. provide a draggable window that shows a zoomed copy of the map area around the mouse. to implement, we could track the mouse position and read the nearby map tile values. we could then re-composite the image into a SDL surface and rescale the surface. We could then inject the generated textures into DF's master list and display the textures on the UI layer in our picture-in-picture window. On tool close, we'd free the generated textures and removed them from DF's texture vector.

we already support dynamically adding textures, and displaying them is fairly trivial, so the hardest part of that plan is re-compositing the image in preparation for scaling.