diff options
| author | Max Roncace <me@caseif.net> | 2026-06-19 20:53:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-19 17:53:09 -0700 |
| commit | fc1515fe6177e351b6e9c182979bcd57a1c9cd9f (patch) | |
| tree | d3018abfa2fd8b439b297b76aa85a5550d314319 /src/d/d_menu_insect.cpp | |
| parent | 79fda477b11cc497b03195653751e5dfc81be094 (diff) | |
d_meter_HIO Wii/debug mostly matching (#3158)
Diffstat (limited to 'src/d/d_menu_insect.cpp')
| -rw-r--r-- | src/d/d_menu_insect.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/d/d_menu_insect.cpp b/src/d/d_menu_insect.cpp index 24c4076f01..289cb36fb6 100644 --- a/src/d/d_menu_insect.cpp +++ b/src/d/d_menu_insect.cpp @@ -168,12 +168,22 @@ void dMenu_Insect_c::_draw() { mpBlackTex->setAlpha(field_0xfc); mpBlackTex->draw(0.0f, 0.0f, FB_WIDTH, FB_HEIGHT, 0, 0, 0); mpExpScreen->draw(0.0f, 0.0f, grafPort); + + // the magic numbers here are correlated with the framebuffer size, but + // were likely either chosen by hand or had multiple arithmetic + // operations applied which cannot easily be reverse engineered +#if VERSION == VERSION_WII_USA_R0 + mpSelect_c->translate(g_drawHIO.mInsectListScreen.mConfirmOptionPosX + 486.0f, + g_drawHIO.mInsectListScreen.mConfirmOptionPosY + 209.0f); +#else mpSelect_c->setOffsetX(g_drawHIO.mInsectListScreen.mConfirmOptionPosX_4x3); // the magic numbers here are correlated with the framebuffer size, but // were likely either chosen by hand or had multiple arithmetic // operations applied which cannot easily be reverse engineered mpSelect_c->translate(g_drawHIO.mInsectListScreen.mConfirmOptionPosX_4x3 + 486.0f, g_drawHIO.mInsectListScreen.mConfirmOptionPosY_4x3 + 209.0f); +#endif + mpSelect_c->draw(0.0f, 0.0f); mpIconScreen->draw(0.0f, 0.0f, grafPort); } @@ -741,8 +751,13 @@ void dMenu_Insect_c::setHIO(bool i_useHIO) { if (i_useHIO || g_drawHIO.mInsectListScreen.mDebugON) { mpExpSubWin[0]->paneTrans(g_drawHIO.mInsectListScreen.mDescWindowPosX, g_drawHIO.mInsectListScreen.mDescWindowPosY); +#if VERSION == VERSION_WII_USA_R0 + mpExpSubWin[1]->paneTrans(g_drawHIO.mInsectListScreen.mGiveOptionPosX, + g_drawHIO.mInsectListScreen.mGiveOptionPosY); +#else mpExpSubWin[1]->paneTrans(g_drawHIO.mInsectListScreen.mGiveOptionPosX_4x3, g_drawHIO.mInsectListScreen.mGiveOptionPosY_4x3); +#endif } if (g_drawHIO.mCollectScreen.mButtonDebugON != false || i_useHIO) { if (mpButtonAB[0]) { |
