mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
frontier util review changes
This commit is contained in:
parent
3159e958b8
commit
258ec3162f
@ -38,4 +38,7 @@
|
||||
#define SPECIAL_BATTLE_PIKE_DOUBLE 9
|
||||
#define SPECIAL_BATTLE_PYRAMID 10
|
||||
|
||||
// For 'ShowFacilityResultsWindow' function which is a part of the 'CallFrontierUtilFunc' special.
|
||||
#define RESULTS_LINK_CONTEST 7
|
||||
|
||||
#endif // GUARD_CONSTANTS_BATTLE_FRONTIER_H
|
||||
|
@ -14,7 +14,7 @@ void sub_81A3ACC(void);
|
||||
u8 GetPlayerSymbolCountForFacility(u8 facility);
|
||||
void ShowRankingHallRecordsWindow(void);
|
||||
void ScrollRankingHallRecordsWindow(void);
|
||||
void ClearnRankingHallRecords(void);
|
||||
void ClearRankingHallRecords(void);
|
||||
u8 GetFrontierBrainTrainerPicIndex(void);
|
||||
u8 GetFrontierBrainTrainerClass(void);
|
||||
void CopyFrontierBrainTrainerName(u8 *dst);
|
||||
|
@ -849,7 +849,7 @@ static void ShowFacilityResultsWindow(void)
|
||||
case FRONTIER_FACILITY_PYRAMID:
|
||||
ShowPyramidResultsWindow();
|
||||
break;
|
||||
case 7:
|
||||
case RESULTS_LINK_CONTEST:
|
||||
ShowLinkContestResultsWindow();
|
||||
break;
|
||||
}
|
||||
@ -865,7 +865,7 @@ static bool8 sub_81A1C24(u32 flags)
|
||||
|
||||
static void PrintAligned(const u8 *str, s32 y)
|
||||
{
|
||||
s32 x = GetStringCenterAlignXOffset(1, str, 0xE0);
|
||||
s32 x = GetStringCenterAlignXOffset(1, str, 224);
|
||||
y = (y * 8) + 1;
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, str, x, y, TEXT_SPEED_FF, NULL);
|
||||
}
|
||||
@ -1394,23 +1394,23 @@ static void ShowLinkContestResultsWindow(void)
|
||||
FillWindowPixelBuffer(gRecordsWindowId, 0x11);
|
||||
|
||||
StringExpandPlaceholders(gStringVar4, gText_LinkContestResults);
|
||||
x = GetStringCenterAlignXOffset(1, gStringVar4, 0xD0);
|
||||
x = GetStringCenterAlignXOffset(1, gStringVar4, 208);
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, gStringVar4, x, 1, TEXT_SPEED_FF, NULL);
|
||||
|
||||
str = gText_1st;
|
||||
x = GetStringRightAlignXOffset(1, str, 0x26) + 50;
|
||||
x = GetStringRightAlignXOffset(1, str, 38) + 50;
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, str, x, 25, TEXT_SPEED_FF, NULL);
|
||||
|
||||
str = gText_2nd;
|
||||
x = GetStringRightAlignXOffset(1, str, 0x26) + 88;
|
||||
x = GetStringRightAlignXOffset(1, str, 38) + 88;
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, str, x, 25, TEXT_SPEED_FF, NULL);
|
||||
|
||||
str = gText_3rd;
|
||||
x = GetStringRightAlignXOffset(1, str, 0x26) + 126;
|
||||
x = GetStringRightAlignXOffset(1, str, 38) + 126;
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, str, x, 25, TEXT_SPEED_FF, NULL);
|
||||
|
||||
str = gText_4th;
|
||||
x = GetStringRightAlignXOffset(1, str, 0x26) + 164;
|
||||
x = GetStringRightAlignXOffset(1, str, 38) + 164;
|
||||
AddTextPrinterParameterized(gRecordsWindowId, 1, str, x, 25, TEXT_SPEED_FF, NULL);
|
||||
|
||||
x = 6;
|
||||
@ -2274,7 +2274,7 @@ void ScrollRankingHallRecordsWindow(void)
|
||||
CopyWindowToVram(gRecordsWindowId, 2);
|
||||
}
|
||||
|
||||
void ClearnRankingHallRecords(void)
|
||||
void ClearRankingHallRecords(void)
|
||||
{
|
||||
s32 i, j, k;
|
||||
|
||||
|
@ -204,7 +204,7 @@ void NewGameInitData(void)
|
||||
copy_strings_to_sav1();
|
||||
SetLilycoveLady();
|
||||
ResetAllApprenticeData();
|
||||
ClearnRankingHallRecords();
|
||||
ClearRankingHallRecords();
|
||||
sub_8195E10();
|
||||
sub_801AFD8();
|
||||
sub_800E5AC();
|
||||
|
Loading…
Reference in New Issue
Block a user