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

next and previous cats now determined by class #2723

Merged

Conversation

j-gynn
Copy link
Contributor

@j-gynn j-gynn commented Sep 23, 2024

About The Pull Request

Fixes #2671 by bringing its outdated ordering code to parity with the other ordering code. Stores the function within Cat to centralise it. Also optimises the code itself since it was very slow for what it was doing.

Linked Issues

Fixes #2671

Proof of Testing

2671.Bugfix.mp4

Changelog/Credits

Bugfix: cat order on sprite screen is consistent

@scribblecrumb
Copy link
Collaborator

Seems like the chosen sorting order (rank, age, EXP, ect.) isn't preserved when viewing cat pages other than profile (such as relationships, family tree, choosing pages, ect.), instead it defaults to the rank sorting order. Can't remember if it was preserved before, but either way it would be nice to see that fixed here.

@j-gynn
Copy link
Contributor Author

j-gynn commented Sep 23, 2024

It always uses ID for this... I think it might cause problems to keep track of the other but I haven't looked at the codebase to confirm

@j-gynn
Copy link
Contributor Author

j-gynn commented Sep 23, 2024

It always uses ID for this... I think it might cause problems to keep track of the other but I haven't looked at the codebase to confirm

Update: this isn't true, the code only defaults to ID if the list screen hasn't been opened this session. Otherwise, it uses the same list that list screen uses, in the same order

@scribblecrumb
Copy link
Collaborator

Ah, I see, the screens I was looking at were ones that you hadn't implemented the new system on to. Could you implement this on the other screens with next/prev cat buttons?

@j-gynn
Copy link
Contributor Author

j-gynn commented Sep 23, 2024

Which ones are missing? I replaced all the ones I could find but maybe I've been dumb and not done it right.

@scribblecrumb
Copy link
Collaborator

Relationships screen, family tree, Choose mate/mentor/adoption

@scribblecrumb scribblecrumb merged commit 303e986 into ClanGenOfficial:development Sep 25, 2024
7 checks passed
@j-gynn j-gynn deleted the 2671-sprite-cat-order branch September 25, 2024 17:09
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.

[BUG] Next/Previous Cat doesn't go in proper order when viewing their sprites
2 participants