stats page new navigation button prompts
This commit is contained in:
parent
982647d36c
commit
d0012305c0
5 changed files with 27 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -533,6 +533,7 @@ extern const u8 gText_SearchCompleted[];
|
||||||
extern const u8 gText_NoMatchingPkmnWereFound[];
|
extern const u8 gText_NoMatchingPkmnWereFound[];
|
||||||
extern const u8 gText_SelectorArrow[];
|
extern const u8 gText_SelectorArrow[];
|
||||||
//PokedexPlus HGSS_Ui
|
//PokedexPlus HGSS_Ui
|
||||||
|
extern const u8 gText_Stats_Buttons[];
|
||||||
extern const u8 gText_Stats_HP[];
|
extern const u8 gText_Stats_HP[];
|
||||||
extern const u8 gText_Stats_Attack[];
|
extern const u8 gText_Stats_Attack[];
|
||||||
extern const u8 gText_Stats_Defense[];
|
extern const u8 gText_Stats_Defense[];
|
||||||
|
|
|
@ -1128,6 +1128,7 @@ static const struct BgTemplate sInfoScreen_BgTemplate[] =
|
||||||
#define WIN_FOOTPRINT 1
|
#define WIN_FOOTPRINT 1
|
||||||
#define WIN_CRY_WAVE 2
|
#define WIN_CRY_WAVE 2
|
||||||
#define WIN_VU_METER 3
|
#define WIN_VU_METER 3
|
||||||
|
#define WIN_NAVIGATION_BUTTONS 4
|
||||||
|
|
||||||
static const struct WindowTemplate sInfoScreen_WindowTemplates[] =
|
static const struct WindowTemplate sInfoScreen_WindowTemplates[] =
|
||||||
{
|
{
|
||||||
|
@ -1171,6 +1172,16 @@ static const struct WindowTemplate sInfoScreen_WindowTemplates[] =
|
||||||
.paletteNum = 9,
|
.paletteNum = 9,
|
||||||
.baseBlock = 869,
|
.baseBlock = 869,
|
||||||
},
|
},
|
||||||
|
[WIN_NAVIGATION_BUTTONS] =
|
||||||
|
{
|
||||||
|
.bg = 2,
|
||||||
|
.tilemapLeft = 0,
|
||||||
|
.tilemapTop = 18,
|
||||||
|
.width = 12,
|
||||||
|
.height = 2,
|
||||||
|
.paletteNum = 15,
|
||||||
|
.baseBlock = 641,
|
||||||
|
},
|
||||||
DUMMY_WIN_TEMPLATE
|
DUMMY_WIN_TEMPLATE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6245,6 +6256,16 @@ static void LoadTilesetTilemapHGSS(u8 page)
|
||||||
}
|
}
|
||||||
|
|
||||||
//PokedexPlus HGSS_Ui Stats Page
|
//PokedexPlus HGSS_Ui Stats Page
|
||||||
|
static const u8 sStatsPageNavigationTextColor[] = {TEXT_COLOR_TRANSPARENT, TEXT_COLOR_WHITE, TEXT_COLOR_DARK_GREY};
|
||||||
|
static void StatsPage_PrintAToggleUpdownMoves(void)
|
||||||
|
{
|
||||||
|
u8 x = 9;
|
||||||
|
u8 y = 0;
|
||||||
|
AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_Stats_Buttons);
|
||||||
|
// DrawKeypadIcon(WIN_NAVIGATION_BUTTONS, 10, 5, 0); //(u8 windowId, u8 keypadIconId, u16 x, u16 y)
|
||||||
|
PutWindowTilemap(WIN_NAVIGATION_BUTTONS);
|
||||||
|
CopyWindowToVram(WIN_NAVIGATION_BUTTONS, 3);
|
||||||
|
}
|
||||||
#define tMonSpriteId data[4]
|
#define tMonSpriteId data[4]
|
||||||
static void Task_LoadStatsScreen(u8 taskId)
|
static void Task_LoadStatsScreen(u8 taskId)
|
||||||
{
|
{
|
||||||
|
@ -6275,6 +6296,9 @@ static void Task_LoadStatsScreen(u8 taskId)
|
||||||
FillWindowPixelBuffer(WIN_INFO, PIXEL_FILL(0));
|
FillWindowPixelBuffer(WIN_INFO, PIXEL_FILL(0));
|
||||||
PutWindowTilemap(WIN_INFO);
|
PutWindowTilemap(WIN_INFO);
|
||||||
CopyWindowToVram(WIN_INFO, 3);
|
CopyWindowToVram(WIN_INFO, 3);
|
||||||
|
FillWindowPixelBuffer(WIN_NAVIGATION_BUTTONS, PIXEL_FILL(0));
|
||||||
|
PutWindowTilemap(WIN_NAVIGATION_BUTTONS);
|
||||||
|
CopyWindowToVram(WIN_NAVIGATION_BUTTONS, 3);
|
||||||
CopyBgTilemapBufferToVram(1);
|
CopyBgTilemapBufferToVram(1);
|
||||||
CopyBgTilemapBufferToVram(2);
|
CopyBgTilemapBufferToVram(2);
|
||||||
CopyBgTilemapBufferToVram(3);
|
CopyBgTilemapBufferToVram(3);
|
||||||
|
@ -6329,6 +6353,7 @@ static void Task_LoadStatsScreen(u8 taskId)
|
||||||
PrintMonStatsToggle(taskId);
|
PrintMonStatsToggle(taskId);
|
||||||
if (!sPokedexListItem->owned)
|
if (!sPokedexListItem->owned)
|
||||||
LoadPalette(gPlttBufferUnfaded + 1, 0x31, 0x1E);
|
LoadPalette(gPlttBufferUnfaded + 1, 0x31, 0x1E);
|
||||||
|
StatsPage_PrintAToggleUpdownMoves(); //gText_Stats_Buttons
|
||||||
gMain.state++;
|
gMain.state++;
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
|
|
|
@ -1820,6 +1820,7 @@ const u8 gText_Berries[] = _("BERRIES");
|
||||||
|
|
||||||
|
|
||||||
//HGSS_Ui PokedexPlus
|
//HGSS_Ui PokedexPlus
|
||||||
|
const u8 gText_Stats_Buttons[] = _("{A_BUTTON}TOGGLE {DPAD_UPDOWN}MOVES");
|
||||||
const u8 gText_Stats_HP[] = _("HP");
|
const u8 gText_Stats_HP[] = _("HP");
|
||||||
const u8 gText_Stats_Attack[] = _("ATK");
|
const u8 gText_Stats_Attack[] = _("ATK");
|
||||||
const u8 gText_Stats_Defense[] = _("DEF");
|
const u8 gText_Stats_Defense[] = _("DEF");
|
||||||
|
|
Loading…
Reference in a new issue