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

[Enhancement] EasyMaskEquip #755

Open
wants to merge 64 commits into
base: develop
Choose a base branch
from

Conversation

mckinlee
Copy link
Contributor

@mckinlee mckinlee commented Aug 11, 2024

EasyMaskEquip is a feature that allows players to quickly equip masks without needing to assign them to C-buttons or D-pad slots. It simplifies the process by letting players equip masks directly from the pause menu. The enhancement also provides visual feedback by highlighting the currently equipped mask and graying out masks that can't be equipped in certain situations (e.g., underwater or mid-transformation).

This PR introduces the EasyMaskEquip enhancement, allowing players to equip masks directly from the pause menu by pressing the A button.

A new OnKaleidoClose hook was added to handle mask equipping when the pause menu is closed. This allows players to change their mask selection if they accidentally select the wrong one, ensuring the mask is only equipped once the pause menu is closed.

This enhancement also utilizes Proxy's BeforeKaleidoDrawPage hook from PR #537 to allocate and update vertex data for the mask equip border.

Build Artifacts

@mckinlee mckinlee changed the title [Enhancement] [WIP] EasyMask Equip [Enhancement] [WIP] EasyMaskEquip Aug 11, 2024
@mckinlee
Copy link
Contributor Author

I think this is already in a pretty good working state so I'm just gonna go ahead and change this to ready for review. I don't foresee this having to many issues, but please do report any bugs you may find.

@mckinlee mckinlee marked this pull request as ready for review August 11, 2024 18:42
@mckinlee mckinlee changed the title [Enhancement] [WIP] EasyMaskEquip [Enhancement] EasyMaskEquip Aug 11, 2024
… any mask in the air when wearing a transformation mask
- Streamlined mask selection logic with helper functions
- Added grayscale indicators for unavailable masks in the UI
- Optimized vertex handling for mask border rendering
- Improved game hook integrations for reliable mask equipping
- Enhanced code readability and maintainability
@mckinlee
Copy link
Contributor Author

I realize ShouldEquipMask may not account for all scenarios, but its a good start. I would need help identifying what else we may need to add.

mckinlee and others added 28 commits October 6, 2024 17:44
… any mask in the air when wearing a transformation mask
- Streamlined mask selection logic with helper functions
- Added grayscale indicators for unavailable masks in the UI
- Optimized vertex handling for mask border rendering
- Improved game hook integrations for reliable mask equipping
- Enhanced code readability and maintainability
Co-Authored-By: Garrett Cox <[email protected]>
@mckinlee
Copy link
Contributor Author

63 commits later and I think I've gotten this to a state I'm happy with. I don't plan to make any more changes unless the devs request otherwise. Hope yall like it!

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.

1 participant