document shop menu palette
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
#define TAG_ITEM_ICON_BASE 2110
|
#define TAG_ITEM_ICON_BASE 2110
|
||||||
|
|
||||||
#define MAX_ITEMS_SHOWN 8
|
#define MAX_ITEMS_SHOWN 8
|
||||||
|
#define SHOP_MENU_PALETTE_ID 12
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
WIN_BUY_SELL_QUIT,
|
WIN_BUY_SELL_QUIT,
|
||||||
@@ -740,7 +741,7 @@ static void BuyMenuDecompressBgGraphics(void)
|
|||||||
{
|
{
|
||||||
DecompressAndCopyTileDataToVram(1, gShopMenu_Gfx, 0x3A0, 0x3E3, 0);
|
DecompressAndCopyTileDataToVram(1, gShopMenu_Gfx, 0x3A0, 0x3E3, 0);
|
||||||
LZDecompressWram(gShopMenu_Tilemap, sShopData->tilemapBuffers[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)
|
static void BuyMenuInitWindows(void)
|
||||||
@@ -941,7 +942,7 @@ static void BuyMenuCopyMenuBgToBg1TilemapBuffer(void)
|
|||||||
for (i = 0; i < 1024; i++)
|
for (i = 0; i < 1024; i++)
|
||||||
{
|
{
|
||||||
if (src[i] != 0)
|
if (src[i] != 0)
|
||||||
dest[i] = src[i] + 0xC3E3;
|
dest[i] = src[i] + ((SHOP_MENU_PALETTE_ID << 12) | 0x3E3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user