Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cursor offset #88

Open
robob27 opened this issue Dec 21, 2022 · 1 comment
Open

Add cursor offset #88

robob27 opened this issue Dec 21, 2022 · 1 comment

Comments

@robob27
Copy link

robob27 commented Dec 21, 2022

Stonesense allows you to follow the DF camera and specify an offset by using direction keys. This works really well and allows me to see the parts that I think I should see in Stonesense based on what I can see in DF. However, when I activate a cursor in DF, stonesense will jump way off from where it seems like it should display.

Here are some screenshots to demonstrate what I mean:

image

image

In the above screenshots, when a cursor is not active in DF, the offset makes stonesense display what I would like it to display. Now if I activate a cursor in this spot without shifting the map:

image

image

It seems like the offset is applied from the cursor position, which puts my view out into oblivion. It would be cool if you could specify a second offset that would apply only when the cursor is active, so I could have my follow+no cursor offset be -40,0,0 while my follow+cursor offset would be 0,0,0, which displays what I expect stonesense to display with the cursor active:

image

Alternatively, having a toggle that would not apply the offset when a cursor is active seems like it would also solve this. Presumably this works properly as is for people with certain setups/window sizes etc.

@robob27
Copy link
Author

robob27 commented Dec 21, 2022

Removing

segment->CorrectTileForSegmentOffset(selection.x, selection.y, selection.z);
locally seems to give the desired effect at least with my configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant