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

Keys can shift the screen #537

Merged
merged 6 commits into from
Jan 22, 2025
Merged

Conversation

NQNStudios
Copy link
Collaborator

This makes it so arrow keys/numpad can control screen shift when it's available.

When this preference is enabled, #482 will not be an issue (Fix #482). But the player will also miss out on cases where adjacent targeting would be a good thing. I haven't done anything smart to determine whether one mode or the other is better on a case-by-case basis.

@@ -43,6 +43,7 @@
</group>
<text name='misc-head' size='large' relative='pos-in pos' anchor='spd-head' top='30' left='0' width='182' height='17'>Miscellaneous:</text>
<led name='nosound' relative='pos-in pos' anchor='misc-head' top='6' left='15'>No Sounds</led>
<led name='keyshift' relative='pos-in pos' rel-anchor='prev' top='10' left='0'>Directional keys can shift the screen</led>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should make it more clear that it's swapping one capability with another. Something like "Directional keys shift… instead of…".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-01-20 at 9 14 10 AM

How about this?

Copy link
Member

@CelticMinstrel CelticMinstrel Jan 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better, but I think a different word than "squares" should be used. Maybe "tiles" or "spaces"?

And I didn't check what you set the default to be, but right now I think it should default to the legacy behaviour.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and done

Copy link
Collaborator Author

@NQNStudios NQNStudios Jan 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CelticMinstrel What if holding shift or option/alt performed the opposite function so both are always available?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dialog could have a parenthetical text explaining this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, why not. The only question would be which modifier to pick… what precedent do we have so far? There's also the option of Control/Command (that is, Command on Mac, Control on non-Mac).

Given how "shift" typically means "extend", it seems like that doesn't really fit this kind of use. I guess "alt" fits better. Not sure whether "control" fits.

Copy link
Collaborator Author

@NQNStudios NQNStudios Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replied to this out-of-thread (as a new comment)

@NQNStudios
Copy link
Collaborator Author

Hmm. I currently have it implemented it with Shift, which might make less sense but is functional.

Just now I tried changing it to Alt/Option, and ran into a problem. Targeting for Look mode is already checking for the Option key, which makes Look Target mode stay activated after targeting a spot.

@CelticMinstrel CelticMinstrel merged commit 5dcdd18 into calref:master Jan 22, 2025
5 of 6 checks passed
@NQNStudios NQNStudios deleted the screen-shift-keys branch February 3, 2025 14:32
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

Successfully merging this pull request may close these issues.

Arrow key in spell target mode casts the spell adjacent to you
2 participants