fixed the gray underlay in the list view, thanks to shadow300 for notifying me
This commit is contained in:
parent
4989c6169d
commit
856403c532
2 changed files with 11 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -2627,6 +2627,16 @@ static void PrintMonDexNumAndName(u8 windowId, u8 fontId, const u8* str, u8 left
|
|||
AddTextPrinterParameterized4(windowId, fontId, left * 8, (top * 8) + 1, 0, 0, color, -1, str);
|
||||
}
|
||||
|
||||
static void PrintMonDexNumAndName_2(u8 windowId, u8 fontId, const u8* str, u8 left, u8 top) //HGSS_Ui offset for closer numer + text
|
||||
{
|
||||
u8 color[3];
|
||||
|
||||
color[0] = TEXT_COLOR_TRANSPARENT;
|
||||
color[1] = TEXT_DYNAMIC_COLOR_6;
|
||||
color[2] = TEXT_COLOR_LIGHT_GREY;
|
||||
AddTextPrinterParameterized4(windowId, fontId, left * 8 - 3, (top * 8) + 1, 0, 0, color, -1, str);
|
||||
}
|
||||
|
||||
// u16 ignored is passed but never used
|
||||
#define MON_LIST_X 2
|
||||
static void CreateMonListEntry(u8 position, u16 b, u16 ignored)
|
||||
|
@ -2748,7 +2758,7 @@ static u8 CreateMonName(u16 num, u8 left, u8 top)
|
|||
str = gSpeciesNames[num];
|
||||
else
|
||||
str = sText_TenDashes;
|
||||
PrintMonDexNumAndName(0, 7, str, left, top);
|
||||
PrintMonDexNumAndName_2(0, 7, str, left, top);
|
||||
return StringLength(str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue