mirror of
https://github.com/pret/pokeemerald.git
synced 2026-03-21 17:54:57 -05:00
Merge pull request #2164 from cawtds/shop-menu-palette
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
Document shop menu palette
This commit is contained in:
commit
f85baa5358
|
|
@ -43,6 +43,7 @@
|
|||
#define TAG_ITEM_ICON_BASE 2110
|
||||
|
||||
#define MAX_ITEMS_SHOWN 8
|
||||
#define SHOP_MENU_PALETTE_ID 12
|
||||
|
||||
enum {
|
||||
WIN_BUY_SELL_QUIT,
|
||||
|
|
@ -740,7 +741,7 @@ static void BuyMenuDecompressBgGraphics(void)
|
|||
{
|
||||
DecompressAndCopyTileDataToVram(1, gShopMenu_Gfx, 0x3A0, 0x3E3, 0);
|
||||
LZDecompressWram(gShopMenu_Tilemap, sShopData->tilemapBuffers[0]);
|
||||
LoadCompressedPalette(gShopMenu_Pal, BG_PLTT_ID(12), PLTT_SIZE_4BPP);
|
||||
LoadCompressedPalette(gShopMenu_Pal, BG_PLTT_ID(SHOP_MENU_PALETTE_ID), PLTT_SIZE_4BPP);
|
||||
}
|
||||
|
||||
static void BuyMenuInitWindows(void)
|
||||
|
|
@ -941,7 +942,7 @@ static void BuyMenuCopyMenuBgToBg1TilemapBuffer(void)
|
|||
for (i = 0; i < 1024; i++)
|
||||
{
|
||||
if (src[i] != 0)
|
||||
dest[i] = src[i] + 0xC3E3;
|
||||
dest[i] = src[i] + ((SHOP_MENU_PALETTE_ID << 12) | 0x3E3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user