Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6c05fb3
Add persistent bunny mask enhancement
garrettjoecox May 22, 2024
b0b1fd4
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Jun 5, 2024
2194bc6
Adds option for HW styled Young Link
OtherBlue Jun 5, 2024
7d5030b
Moves the enhancement to Modes
OtherBlue Jun 5, 2024
f9737f6
Formatting
OtherBlue Jun 5, 2024
6772e21
Renamed HW>Hyrule Warriors/Changed rotate angles to hex
OtherBlue Jun 6, 2024
9aec61b
Merge branch 'develop' into HW-Styled-Link
OtherBlue Aug 15, 2024
5155547
Merge branch 'develop' into HW-Styled-Link
OtherBlue Aug 18, 2024
ee948f7
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Aug 19, 2024
a182218
Formatting again
OtherBlue Aug 19, 2024
9d427f9
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Sep 6, 2024
671e6d2
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Sep 20, 2024
f9c8bb4
Merge branch 'HW-Styled-Link' of https://github.com/OtherBlue/2ship2h…
OtherBlue Oct 7, 2024
d6369ef
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Oct 11, 2024
e84fb67
updated includes and stuff
OtherBlue Oct 11, 2024
22d54f0
Merge branch 'HW-Styled-Link' of https://github.com/OtherBlue/2ship2h…
OtherBlue Oct 11, 2024
cf0b86e
Added the enhancement toggle to the modern menu
OtherBlue Oct 12, 2024
e3f8586
Formatting
OtherBlue Oct 12, 2024
6a8bd95
removed unnecessary header include
OtherBlue Oct 12, 2024
d0a66af
Merge branch 'HarbourMasters:develop' into HW-Styled-Link
OtherBlue Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moves the enhancement to Modes
  • Loading branch information
OtherBlue committed Jun 5, 2024
commit 7d5030b58025ce75b36db8b11a33406373aaccc7
6 changes: 3 additions & 3 deletions mm/2s2h/BenGui/BenMenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,6 @@ void DrawEnhancementsMenu() {
{ .tooltip = "Disables Black Bar Letterboxes during cutscenes and Z-targeting\nNote: there may be "
"minor visual glitches that were covered up by the black bars\nPlease disable this "
"setting before reporting a bug" });
UIWidgets::CVarCheckbox("Hyrule Warriors Young Link", "gEnhancements.Graphics.HWStyledLink",
{ .tooltip = "When acquired, places the Keaton and Fierce Deity masks on Link "
"similarly to how he wears them in Hyrule Warriors" });

ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(255, 255, 0, 255));
ImGui::SeparatorText("Unstable");
Expand Down Expand Up @@ -597,6 +594,9 @@ void DrawEnhancementsMenu() {
if (UIWidgets::BeginMenu("Modes")) {
UIWidgets::CVarCheckbox("Play As Kafei", "gModes.PlayAsKafei",
{ .tooltip = "Requires scene reload to take effect." });
UIWidgets::CVarCheckbox("Hyrule Warriors Young Link", "gModes.HWStyledLink",
{ .tooltip = "When acquired, places the Keaton and Fierce Deity masks on Link "
"similarly to how he wears them in Hyrule Warriors" });
if (UIWidgets::CVarCheckbox("Time Moves When You Move", "gModes.TimeMovesWhenYouMove")) {
RegisterTimeMovesWhenYouMove();
}
Expand Down
33 changes: 16 additions & 17 deletions mm/2s2h/Enhancements/Graphics/HWStyledLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,25 @@ void ResourceMgr_UnpatchGfxByName(const char* path, const char* patchName);
void UpdateHWStyledLink() {
GameInteractor::Instance->RegisterGameHookForID<GameInteractor::OnPlayerPostLimbDraw>(
PLAYER_LIMB_HEAD, [](Player* player, s32 limbIndex) {
if (CVarGetInteger("gEnhancements.Graphics.HWStyledLink", 0)){
if (player->currentMask == PLAYER_MASK_NONE &&
player->transformation == PLAYER_FORM_HUMAN &&
INV_CONTENT(ITEM_MASK_KEATON) == ITEM_MASK_KEATON) {
OPEN_DISPS(gPlayState->state.gfxCtx);
Matrix_Push();
Matrix_RotateYS(14563, MTXMODE_APPLY);
Matrix_RotateZS(-4854, MTXMODE_APPLY);
Matrix_Translate(300.0f, -250.0f, 77.7f, MTXMODE_APPLY);
Matrix_Scale(0.648f, 0.648f, 0.648f, MTXMODE_APPLY);
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(gPlayState->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
gSPDisplayList(POLY_OPA_DISP++, (Gfx*)D_801C0B20[PLAYER_MASK_KEATON - 1]);
Matrix_Pop();
CLOSE_DISPS(gPlayState->state.gfxCtx);
}
if (CVarGetInteger("gModes.HWStyledLink", 0) &&
player->currentMask == PLAYER_MASK_NONE &&
player->transformation == PLAYER_FORM_HUMAN &&
INV_CONTENT(ITEM_MASK_KEATON) == ITEM_MASK_KEATON){
OPEN_DISPS(gPlayState->state.gfxCtx);
Matrix_Push();
Matrix_RotateYS(14563, MTXMODE_APPLY);
Matrix_RotateZS(-4854, MTXMODE_APPLY);
Matrix_Translate(300.0f, -250.0f, 77.7f, MTXMODE_APPLY);
Matrix_Scale(0.648f, 0.648f, 0.648f, MTXMODE_APPLY);
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(gPlayState->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
gSPDisplayList(POLY_OPA_DISP++, (Gfx*)D_801C0B20[PLAYER_MASK_KEATON - 1]);
Matrix_Pop();
CLOSE_DISPS(gPlayState->state.gfxCtx);
}
});
GameInteractor::Instance->RegisterGameHookForID<GameInteractor::OnPlayerPostLimbDraw>(
PLAYER_LIMB_WAIST, [](Player* player, s32 limbIndex) {
if (CVarGetInteger("gEnhancements.Graphics.HWStyledLink", 0) &&
if (CVarGetInteger("gModes.HWStyledLink", 0) &&
player->transformation == PLAYER_FORM_HUMAN &&
player->itemAction != PLAYER_IA_MASK_FIERCE_DEITY &&
INV_CONTENT(ITEM_MASK_FIERCE_DEITY) == ITEM_MASK_FIERCE_DEITY) {
Expand All @@ -55,7 +54,7 @@ void UpdateHWStyledLink() {
gSPDisplayList(POLY_OPA_DISP++, (Gfx*)D_801C0B20[PLAYER_MASK_FIERCE_DEITY - 1]);
Matrix_Pop();
CLOSE_DISPS(gPlayState->state.gfxCtx);
}
}
});
}

Expand Down