Skip to content

Fix Save Prompt Cursor on Quest/Misc Item Tracker Windows#4694

Merged
Malkierian merged 2 commits intoHarbourMasters:developfrom
Malkierian:fix-quest-misc-pause
Dec 18, 2024
Merged

Fix Save Prompt Cursor on Quest/Misc Item Tracker Windows#4694
Malkierian merged 2 commits intoHarbourMasters:developfrom
Malkierian:fix-quest-misc-pause

Conversation

@Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Dec 16, 2024

z_kaleido_collect.c was missing some code that decomp has at the first public SoH commit that I believe was fine before dpad support was added to the menus. Certainly after that point, when bringing up the save prompt on the Quest subscreen, it would exhibit this behavior (sound on!):

soh_8eJoQUJ6sQ.mp4

As you can see, a similar thing was happening with the Misc Items Tracker screen, it just didn't have any subslots for the cursor to iterate over. This PR fixes this by pulling over enough of that code from decomp to isolate the behavior, and mirroring those changes in the Misc Items Tracker draw code.

soh_4NeufTXGvf.mp4

The one thing I couldn't figure out was where it was failing to remove the cursor if you bring up the save prompt on the Quest subscreen while the cursor was on R or L/Z, but I can live with that until kaleido is updated to current decomp, as I believe that will be resolved at that point.

I also included the MigratorAction entry removal that I forgot in the Item Count Defaults PR.

Fixes #4447

Build Artifacts

…mpt.

Fix misc item tracker also being able to select R and L/Z in save prompt.
Include MigrationAction entry removal from item count fix PR.
Copy link
Contributor

@Archez Archez left a comment

Choose a reason for hiding this comment

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

Changes look good, but can you please switch all the else/else if blocks back to being on the same line as closing brace? Would align with the clang rules we have everywhere else.

@Malkierian
Copy link
Contributor Author

What do you mean? I added an additional if block, the indentation is standard for inside of if statements, isn't it?

@Archez
Copy link
Contributor

Archez commented Dec 16, 2024

I mean changing these lines:

- }
- else {
+ } else {

and

- }
- else if (...) {
+ } else if (...) {

@Malkierian
Copy link
Contributor Author

Oh, ffs VS... Did I get all of them?

@Archez
Copy link
Contributor

Archez commented Dec 16, 2024

Yup, looks good now!

@Malkierian Malkierian merged commit 3419928 into HarbourMasters:develop Dec 18, 2024
@Malkierian Malkierian deleted the fix-quest-misc-pause branch December 18, 2024 22:03
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.

The pause menu's Z/L and R Buttons can be selected if the Save Subscreen is opened while on the Quest Status Subscreen.

2 participants