Fix some frontier gfx, adjacent cleanup
This commit is contained in:
@@ -137,7 +137,15 @@ static void Task_SaveAfterLinkBattle(u8 taskId);
|
||||
static void Task_WaitForBattleTowerLinkSave(u8 taskId);
|
||||
static bool8 FieldCB_ReturnToFieldStartMenu(void);
|
||||
|
||||
static const struct WindowTemplate sSafariBallsWindowTemplate = {0, 1, 1, 9, 4, 0xF, 8};
|
||||
static const struct WindowTemplate sWindowTemplate_SafariBalls = {
|
||||
.bg = 0,
|
||||
.tilemapLeft = 1,
|
||||
.tilemapTop = 1,
|
||||
.width = 9,
|
||||
.height = 4,
|
||||
.paletteNum = 15,
|
||||
.baseBlock = 0x8
|
||||
};
|
||||
|
||||
static const u8 *const sPyramidFloorNames[FRONTIER_STAGES_PER_CHALLENGE + 1] =
|
||||
{
|
||||
@@ -151,8 +159,25 @@ static const u8 *const sPyramidFloorNames[FRONTIER_STAGES_PER_CHALLENGE + 1] =
|
||||
gText_Peak
|
||||
};
|
||||
|
||||
static const struct WindowTemplate sPyramidFloorWindowTemplate_2 = {0, 1, 1, 0xA, 4, 0xF, 8};
|
||||
static const struct WindowTemplate sPyramidFloorWindowTemplate_1 = {0, 1, 1, 0xC, 4, 0xF, 8};
|
||||
static const struct WindowTemplate sWindowTemplate_PyramidFloor = {
|
||||
.bg = 0,
|
||||
.tilemapLeft = 1,
|
||||
.tilemapTop = 1,
|
||||
.width = 10,
|
||||
.height = 4,
|
||||
.paletteNum = 15,
|
||||
.baseBlock = 0x8
|
||||
};
|
||||
|
||||
static const struct WindowTemplate sWindowTemplate_PyramidPeak = {
|
||||
.bg = 0,
|
||||
.tilemapLeft = 1,
|
||||
.tilemapTop = 1,
|
||||
.width = 12,
|
||||
.height = 4,
|
||||
.paletteNum = 15,
|
||||
.baseBlock = 0x8
|
||||
};
|
||||
|
||||
static const struct MenuAction sStartMenuItems[] =
|
||||
{
|
||||
@@ -382,7 +407,7 @@ static void BuildMultiPartnerRoomStartMenu(void)
|
||||
|
||||
static void ShowSafariBallsWindow(void)
|
||||
{
|
||||
sSafariBallsWindowId = AddWindow(&sSafariBallsWindowTemplate);
|
||||
sSafariBallsWindowId = AddWindow(&sWindowTemplate_SafariBalls);
|
||||
PutWindowTilemap(sSafariBallsWindowId);
|
||||
DrawStdWindowFrame(sSafariBallsWindowId, FALSE);
|
||||
ConvertIntToDecimalStringN(gStringVar1, gNumSafariBalls, STR_CONV_MODE_RIGHT_ALIGN, 2);
|
||||
@@ -394,9 +419,9 @@ static void ShowSafariBallsWindow(void)
|
||||
static void ShowPyramidFloorWindow(void)
|
||||
{
|
||||
if (gSaveBlock2Ptr->frontier.curChallengeBattleNum == FRONTIER_STAGES_PER_CHALLENGE)
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sPyramidFloorWindowTemplate_1);
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sWindowTemplate_PyramidPeak);
|
||||
else
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sPyramidFloorWindowTemplate_2);
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sWindowTemplate_PyramidFloor);
|
||||
|
||||
PutWindowTilemap(sBattlePyramidFloorWindowId);
|
||||
DrawStdWindowFrame(sBattlePyramidFloorWindowId, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user