Scrollbar moved to the left

This commit is contained in:
Eduardo Quezada 2023-10-28 15:22:07 -03:00
parent 659bff4c0b
commit b484a215fb
3 changed files with 10 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -2730,13 +2730,13 @@ static void CreateMonListEntry(u8 position, u16 b, u16 ignored)
{
CreateMonDexNum(entryNum, MON_LIST_X+1, i * 2, ignored);
CreateCaughtBall(sPokedexView->pokedexList[entryNum].owned, MON_LIST_X, i * 2, ignored);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X+5, i * 2);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X + 5, i * 2);
}
else
{
CreateMonDexNum(entryNum, MON_LIST_X+1, i * 2, ignored);
CreateCaughtBall(FALSE, MON_LIST_X, i * 2, ignored);
CreateMonName(0, MON_LIST_X+5, i * 2);
CreateMonName(0, MON_LIST_X + 5, i * 2);
}
}
entryNum++;
@ -2755,13 +2755,13 @@ static void CreateMonListEntry(u8 position, u16 b, u16 ignored)
{
CreateMonDexNum(entryNum, MON_LIST_X+1, sPokedexView->listVOffset * 2, ignored);
CreateCaughtBall(sPokedexView->pokedexList[entryNum].owned, MON_LIST_X, sPokedexView->listVOffset * 2, ignored);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X+5, sPokedexView->listVOffset * 2);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X + 5, sPokedexView->listVOffset * 2);
}
else
{
CreateMonDexNum(entryNum, MON_LIST_X+1, sPokedexView->listVOffset * 2, ignored);
CreateCaughtBall(FALSE, MON_LIST_X, sPokedexView->listVOffset * 2, ignored);
CreateMonName(0, MON_LIST_X+5, sPokedexView->listVOffset * 2);
CreateMonName(0, MON_LIST_X + 5, sPokedexView->listVOffset * 2);
}
}
break;
@ -2779,13 +2779,13 @@ static void CreateMonListEntry(u8 position, u16 b, u16 ignored)
{
CreateMonDexNum(entryNum, MON_LIST_X+1, vOffset * 2, ignored);
CreateCaughtBall(sPokedexView->pokedexList[entryNum].owned, MON_LIST_X, vOffset * 2, ignored);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X+5, vOffset * 2);
CreateMonName(sPokedexView->pokedexList[entryNum].dexNum, MON_LIST_X + 5, vOffset * 2);
}
else
{
CreateMonDexNum(entryNum, MON_LIST_X+1, vOffset * 2, ignored);
CreateCaughtBall(FALSE, MON_LIST_X, vOffset * 2, ignored);
CreateMonName(0, MON_LIST_X+5, vOffset * 2);
CreateMonName(0, MON_LIST_X + 5, vOffset * 2);
}
}
break;
@ -2802,9 +2802,9 @@ static void CreateMonDexNum(u16 entryNum, u8 left, u8 top, u16 unused)
dexNum = sPokedexView->pokedexList[entryNum].dexNum;
if (sPokedexView->dexMode == DEX_MODE_HOENN)
dexNum = NationalToHoennOrder(dexNum);
text[2] = CHAR_0 + dexNum / 100;
text[3] = CHAR_0 + (dexNum % 100) / 10;
text[4] = CHAR_0 + (dexNum % 100) % 10;
text[2] = CHAR_0 + dexNum / 100;
text[3] = CHAR_0 + (dexNum % 100) / 10;
text[4] = CHAR_0 + (dexNum % 100) % 10;
PrintMonDexNumAndName(0, FONT_NARROW, text, left, top);
}
@ -3165,7 +3165,7 @@ static void CreateInterfaceSprites(u8 page)
gSprites[spriteId].sIsDownArrow = TRUE;
gSprites[spriteId].vFlip = TRUE;
CreateSprite(&sScrollBarSpriteTemplate, 8, 20, 0);
CreateSprite(&sScrollBarSpriteTemplate, 6, 20, 0);
if (!IsNationalPokedexEnabled() && page == PAGE_MAIN)
{