Fix Party Menu move select name width (#7820)

This commit is contained in:
Eduardo Quezada 2025-09-29 12:16:01 -03:00 committed by GitHub
parent 988a7f0420
commit 3a018d6ecc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5230,13 +5230,13 @@ static void ShowMoveSelectWindow(u8 slot)
{
u8 i;
u8 moveCount = 0;
u8 fontId = FONT_NORMAL;
u8 windowId = DisplaySelectionWindow(SELECTWINDOW_MOVES);
u16 move;
for (i = 0; i < MAX_MON_MOVES; i++)
{
move = GetMonData(&gPlayerParty[slot], MON_DATA_MOVE1 + i);
u8 fontId = GetFontIdToFit(GetMoveName(move), FONT_NORMAL, 0, 72);
AddTextPrinterParameterized(windowId, fontId, GetMoveName(move), 8, (i * 16) + 1, TEXT_SKIP_DRAW, NULL);
if (move != MOVE_NONE)
moveCount++;
@ -8025,4 +8025,3 @@ static void FieldCallback_RockClimb(void)
gFieldEffectArguments[0] = GetCursorSelectionMonId();
FieldEffectStart(FLDEFF_USE_ROCK_CLIMB);
}