mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-29 21:37:06 -05:00
Merge branch 'master' of github.com:pret/pokeemerald into battle_engine_sync
This commit is contained in:
@@ -632,7 +632,7 @@ static void CreateApprenticeMenu(u8 menu)
|
||||
pixelWidth = 0;
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
s32 width = GetStringWidth(1, strings[i], 0);
|
||||
s32 width = GetStringWidth(FONT_NORMAL, strings[i], 0);
|
||||
if (width > pixelWidth)
|
||||
pixelWidth = width;
|
||||
}
|
||||
@@ -643,9 +643,9 @@ static void CreateApprenticeMenu(u8 menu)
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
AddTextPrinterParameterized(windowId, 1, strings[i], 8, (i * 16) + 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, strings[i], 8, (i * 16) + 1, TEXT_SKIP_DRAW, NULL);
|
||||
|
||||
InitMenuInUpperLeftCornerPlaySoundWhenAPressed(windowId, count, 0);
|
||||
InitMenuInUpperLeftCornerNormal(windowId, count, 0);
|
||||
CreateChooseAnswerTask(TRUE, count, windowId);
|
||||
}
|
||||
|
||||
@@ -691,7 +691,7 @@ static u8 CreateAndShowWindow(u8 left, u8 top, u8 width, u8 height)
|
||||
|
||||
windowId = AddWindow(&winTemplate);
|
||||
PutWindowTilemap(windowId);
|
||||
CopyWindowToVram(windowId, 3);
|
||||
CopyWindowToVram(windowId, COPYWIN_FULL);
|
||||
return windowId;
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@ static void Script_PrintApprenticeMessage(void)
|
||||
ScriptContext2_Enable();
|
||||
FreezeObjectEvents();
|
||||
PlayerFreeze();
|
||||
sub_808BCF4();
|
||||
StopPlayerAvatar();
|
||||
DrawDialogueFrame(0, 1);
|
||||
PrintApprenticeMessage();
|
||||
}
|
||||
@@ -1107,7 +1107,7 @@ static void TrySetApprenticeHeldItem(void)
|
||||
|
||||
if (PLAYER_APPRENTICE.questionsAnswered < NUM_WHICH_MON_QUESTIONS)
|
||||
return;
|
||||
|
||||
|
||||
count = 0;
|
||||
for (j = 0; j < APPRENTICE_MAX_QUESTIONS; j++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user