Add font id constants
This commit is contained in:
+8
-8
@@ -2427,7 +2427,7 @@ static void CreateMonDexNum(u16 entryNum, u8 left, u8 top, u16 unused)
|
||||
text[2] = CHAR_0 + dexNum / 100;
|
||||
text[3] = CHAR_0 + (dexNum % 100) / 10;
|
||||
text[4] = CHAR_0 + (dexNum % 100) % 10;
|
||||
PrintMonDexNumAndName(0, 7, text, left, top);
|
||||
PrintMonDexNumAndName(0, FONT_NARROW, text, left, top);
|
||||
}
|
||||
|
||||
static void CreateCaughtBall(bool16 owned, u8 x, u8 y, u16 unused)
|
||||
@@ -2447,7 +2447,7 @@ static u8 CreateMonName(u16 num, u8 left, u8 top)
|
||||
str = gSpeciesNames[num];
|
||||
else
|
||||
str = sText_TenDashes;
|
||||
PrintMonDexNumAndName(0, 7, str, left, top);
|
||||
PrintMonDexNumAndName(0, FONT_NARROW, str, left, top);
|
||||
return StringLength(str);
|
||||
}
|
||||
|
||||
@@ -3167,7 +3167,7 @@ static void PrintInfoScreenText(const u8* str, u8 left, u8 top)
|
||||
color[1] = TEXT_DYNAMIC_COLOR_6;
|
||||
color[2] = TEXT_COLOR_LIGHT_GRAY;
|
||||
|
||||
AddTextPrinterParameterized4(0, 1, left, top, 0, 0, color, -1, str);
|
||||
AddTextPrinterParameterized4(0, FONT_NORMAL, left, top, 0, 0, color, -1, str);
|
||||
}
|
||||
|
||||
#define tScrolling data[0]
|
||||
@@ -3752,7 +3752,7 @@ static void Task_LoadSizeScreen(u8 taskId)
|
||||
|
||||
StringCopy(string, gText_SizeComparedTo);
|
||||
StringAppend(string, gSaveBlock2Ptr->playerName);
|
||||
PrintInfoScreenText(string, GetStringCenterAlignXOffset(1, string, 0xF0), 0x79);
|
||||
PrintInfoScreenText(string, GetStringCenterAlignXOffset(FONT_NORMAL, string, 0xF0), 0x79);
|
||||
gMain.state++;
|
||||
}
|
||||
break;
|
||||
@@ -4100,7 +4100,7 @@ static void PrintMonInfo(u32 num, u32 value, u32 owned, u32 newEntry)
|
||||
const u8 *description;
|
||||
|
||||
if (newEntry)
|
||||
PrintInfoScreenText(gText_PokedexRegistration, GetStringCenterAlignXOffset(1, gText_PokedexRegistration, 0xF0), 0);
|
||||
PrintInfoScreenText(gText_PokedexRegistration, GetStringCenterAlignXOffset(FONT_NORMAL, gText_PokedexRegistration, 0xF0), 0);
|
||||
if (value == 0)
|
||||
value = NationalToHoennOrder(num);
|
||||
else
|
||||
@@ -4139,7 +4139,7 @@ static void PrintMonInfo(u32 num, u32 value, u32 owned, u32 newEntry)
|
||||
description = gPokedexEntries[num].description;
|
||||
else
|
||||
description = gExpandedPlaceholder_PokedexDescription;
|
||||
PrintInfoScreenText(description, GetStringCenterAlignXOffset(1, description, 0xF0), 0x5F);
|
||||
PrintInfoScreenText(description, GetStringCenterAlignXOffset(FONT_NORMAL, description, 0xF0), 0x5F);
|
||||
}
|
||||
|
||||
static void PrintMonHeight(u16 height, u8 left, u8 top)
|
||||
@@ -4474,7 +4474,7 @@ static void PrintInfoSubMenuText(u8 windowId, const u8 *str, u8 left, u8 top)
|
||||
color[1] = TEXT_DYNAMIC_COLOR_6;
|
||||
color[2] = TEXT_COLOR_LIGHT_GRAY;
|
||||
|
||||
AddTextPrinterParameterized4(windowId, 1, left, top, 0, 0, color, -1, str);
|
||||
AddTextPrinterParameterized4(windowId, FONT_NORMAL, left, top, 0, 0, color, -1, str);
|
||||
}
|
||||
|
||||
static void UnusedPrintNum(u8 windowId, u16 num, u8 left, u8 top)
|
||||
@@ -4781,7 +4781,7 @@ static void PrintSearchText(const u8 *str, u32 x, u32 y)
|
||||
color[0] = TEXT_COLOR_TRANSPARENT;
|
||||
color[1] = TEXT_DYNAMIC_COLOR_6;
|
||||
color[2] = TEXT_COLOR_DARK_GRAY;
|
||||
AddTextPrinterParameterized4(0, 1, x, y, 0, 0, color, -1, str);
|
||||
AddTextPrinterParameterized4(0, FONT_NORMAL, x, y, 0, 0, color, -1, str);
|
||||
}
|
||||
|
||||
static void ClearSearchMenuRect(u32 x, u32 y, u32 width, u32 height)
|
||||
|
||||
Reference in New Issue
Block a user