Skip to content

Commit 25e2dd4

Browse files
committed
Fix text issues in the menus for Frame Advance and Disable Certain Sounds
1 parent ebef48e commit 25e2dd4

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,10 +3938,11 @@ void drawCheatsFrameAdvance()
39383938

39393939
// Draw the button combos
39403940
PosY -= 60;
3941-
const char *Description = "Button Combo (Can be pressed in any order)";
3941+
const char *Description = "Frame Advance Button Combo";
39423942
drawButtonCombo(FrameAdvance.FrameAdvanceButtonCombos.AdvanceFrameButtonCombo, PosY, Description);
39433943

39443944
PosY -= 60;
3945+
Description = "Pause/Resume Button Combof";
39453946
drawButtonCombo(FrameAdvance.FrameAdvanceButtonCombos.PauseButtonCombo, PosY, Description);
39463947
}
39473948

@@ -3979,19 +3980,23 @@ void drawCheatsDisableCertainSounds()
39793980
int32_t PosY = 100;
39803981
// float Scale = 0.6f;
39813982

3982-
// Draw the bool for Disable Pause Menu/Z Menu Sounds
3983-
drawCheatsBool(PosY);
3984-
PosY -= 60;
3985-
3986-
// Draw the bools for the additional options
3983+
// Draw the bools for the options
39873984
bool *Bools = MenuVar.DisableCertainSounds;
39883985
const char** Lines = Menu[CHEATS_DISABLE_CERTAIN_SOUNDS].Line;
39893986
uint32_t TotalLines = Menu[CHEATS_DISABLE_CERTAIN_SOUNDS].TotalMenuOptions;
39903987

3991-
for (uint32_t i = 0; i < (TotalLines - 1); i++)
3988+
for (uint32_t i = 0; i < TotalLines; i++)
39923989
{
3993-
// Skip the first line, as it's used for Disable Pause Menu/Z Menu Sounds
3994-
drawBoolOnOrOff(Bools[i], Lines[i + 1], PosY);
3990+
// Disable Pause Menu/Z Menu Sounds must be handled separately
3991+
if (i == 0)
3992+
{
3993+
drawBoolOnOrOff(Cheat[MenuVar.MenuSelectedOption].Active, Lines[i], PosY);
3994+
}
3995+
else
3996+
{
3997+
drawBoolOnOrOff(Bools[i - 1], Lines[i], PosY);
3998+
}
3999+
39954000
PosY -= 60;
39964001
}
39974002
}

ttyd-tools/rel/source/menu.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <ttyd/party.h>
1919
#include <ttyd/mario.h>
2020

21-
#include <cmath>
22-
2321
namespace mod {
2422

2523
void menuCheckButton()

0 commit comments

Comments
 (0)