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

Align cursor a bit better in the stash when using gamepad movement #6536

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

ephphatha
Copy link
Contributor

This keeps the current stash behaviour (where movement is always cell based, even when empty handed) with one change that I thought looked a little better visually. When pasting an item into empty space the hand cursor is now aligned with the centre of the bottom right cell of the item, not the top left. This was because I didn't like the way the hand cursor overlapped 2x2 and 2x3 items if it was left as is.

I'll open a separate PR to make the stash movement behave like the inventory movement (where you skip over large items in a single direction press and you only navigate from the stash to the relevant body slot depending on the held item) which will remove the special case for an empty held item following a stash primary action.

Part of #6532

align the cursor to the middle of the cell/region when moving through the stash to match the way we simulate mouse movement for inventory cells
@AJenbo AJenbo merged commit bd8aab0 into diasurgical:master Sep 1, 2023
18 checks passed
@ephphatha ephphatha deleted the gamepad-cursor branch September 1, 2023 13:43
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.

2 participants