mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Fix region text when looking at map in frlg (#9347)
This commit is contained in:
parent
34d40b9ce5
commit
91a1278934
|
|
@ -350,6 +350,7 @@ ARCHIE = FD 0A
|
||||||
MAXIE = FD 0B
|
MAXIE = FD 0B
|
||||||
KYOGRE = FD 0C
|
KYOGRE = FD 0C
|
||||||
GROUDON = FD 0D
|
GROUDON = FD 0D
|
||||||
|
REGION = FD 0E
|
||||||
|
|
||||||
@ battle string placeholders
|
@ battle string placeholders
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,7 @@ PlayersHouse_2F_Text_Notebook:
|
||||||
|
|
||||||
Common_Text_LookCloserAtMap:
|
Common_Text_LookCloserAtMap:
|
||||||
.string "{PLAYER} took a closer look at the\n"
|
.string "{PLAYER} took a closer look at the\n"
|
||||||
.string "HOENN region map.$"
|
.string "{REGION} region map.$"
|
||||||
|
|
||||||
PlayersHouse_2F_Text_ItsAGameCube:
|
PlayersHouse_2F_Text_ItsAGameCube:
|
||||||
.string "It's a Nintendo GameCube.\p"
|
.string "It's a Nintendo GameCube.\p"
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,7 @@
|
||||||
#define PLACEHOLDER_ID_MAXIE 0xB
|
#define PLACEHOLDER_ID_MAXIE 0xB
|
||||||
#define PLACEHOLDER_ID_KYOGRE 0xC
|
#define PLACEHOLDER_ID_KYOGRE 0xC
|
||||||
#define PLACEHOLDER_ID_GROUDON 0xD
|
#define PLACEHOLDER_ID_GROUDON 0xD
|
||||||
|
#define PLACEHOLDER_ID_REGION 0xE
|
||||||
|
|
||||||
// battle placeholders are located in battle_message.h
|
// battle placeholders are located in battle_message.h
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ extern const u8 gText_Decorate[];
|
||||||
extern const u8 gText_PutAway[];
|
extern const u8 gText_PutAway[];
|
||||||
extern const u8 gText_Toss2[];
|
extern const u8 gText_Toss2[];
|
||||||
extern const u8 gText_Hoenn[];
|
extern const u8 gText_Hoenn[];
|
||||||
|
extern const u8 gText_Kanto[];
|
||||||
extern const u8 gText_Ferry[];
|
extern const u8 gText_Ferry[];
|
||||||
extern const u8 gText_SecretBase[];
|
extern const u8 gText_SecretBase[];
|
||||||
extern const u8 gText_Hideout[];
|
extern const u8 gText_Hideout[];
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,12 @@ static void PrintRegionMapSecName(void)
|
||||||
static void PrintTitleWindowText(void)
|
static void PrintTitleWindowText(void)
|
||||||
{
|
{
|
||||||
static const u8 FlyPromptText[] = _("{R_BUTTON} FLY");
|
static const u8 FlyPromptText[] = _("{R_BUTTON} FLY");
|
||||||
u32 hoennOffset = GetStringCenterAlignXOffset(FONT_NORMAL, gText_Hoenn, 0x38);
|
const u8 *region;
|
||||||
|
if (IS_FRLG)
|
||||||
|
region = gText_Kanto;
|
||||||
|
else
|
||||||
|
region = gText_Hoenn;
|
||||||
|
u32 hoennOffset = GetStringCenterAlignXOffset(FONT_NORMAL, region, 0x38);
|
||||||
u32 flyOffset = GetStringCenterAlignXOffset(FONT_NORMAL, FlyPromptText, 0x38);
|
u32 flyOffset = GetStringCenterAlignXOffset(FONT_NORMAL, FlyPromptText, 0x38);
|
||||||
|
|
||||||
FillWindowPixelBuffer(WIN_TITLE, PIXEL_FILL(1));
|
FillWindowPixelBuffer(WIN_TITLE, PIXEL_FILL(1));
|
||||||
|
|
@ -244,7 +249,7 @@ static void PrintTitleWindowText(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddTextPrinterParameterized(WIN_TITLE, FONT_NORMAL, gText_Hoenn, hoennOffset, 1, 0, NULL);
|
AddTextPrinterParameterized(WIN_TITLE, FONT_NORMAL, region, hoennOffset, 1, 0, NULL);
|
||||||
CopyWindowToVram(WIN_TITLE, COPYWIN_FULL);
|
CopyWindowToVram(WIN_TITLE, COPYWIN_FULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -525,6 +525,14 @@ static const u8 *ExpandPlaceholder_Groudon(void)
|
||||||
return gText_ExpandedPlaceholder_Groudon;
|
return gText_ExpandedPlaceholder_Groudon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const u8 *ExpandPlaceholder_Region(void)
|
||||||
|
{
|
||||||
|
if (IS_FRLG)
|
||||||
|
return gText_Kanto;
|
||||||
|
else
|
||||||
|
return gText_Hoenn;
|
||||||
|
}
|
||||||
|
|
||||||
const u8 *GetExpandedPlaceholder(u32 id)
|
const u8 *GetExpandedPlaceholder(u32 id)
|
||||||
{
|
{
|
||||||
typedef const u8 *(*ExpandPlaceholderFunc)(void);
|
typedef const u8 *(*ExpandPlaceholderFunc)(void);
|
||||||
|
|
@ -545,6 +553,7 @@ const u8 *GetExpandedPlaceholder(u32 id)
|
||||||
[PLACEHOLDER_ID_MAXIE] = ExpandPlaceholder_Maxie,
|
[PLACEHOLDER_ID_MAXIE] = ExpandPlaceholder_Maxie,
|
||||||
[PLACEHOLDER_ID_KYOGRE] = ExpandPlaceholder_Kyogre,
|
[PLACEHOLDER_ID_KYOGRE] = ExpandPlaceholder_Kyogre,
|
||||||
[PLACEHOLDER_ID_GROUDON] = ExpandPlaceholder_Groudon,
|
[PLACEHOLDER_ID_GROUDON] = ExpandPlaceholder_Groudon,
|
||||||
|
[PLACEHOLDER_ID_REGION] = ExpandPlaceholder_Region,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (id >= ARRAY_COUNT(funcs))
|
if (id >= ARRAY_COUNT(funcs))
|
||||||
|
|
|
||||||
|
|
@ -1007,6 +1007,7 @@ const u8 gText_PokedexDiploma[] = _("PLAYER: {CLEAR 0x10}{COLOR RED}{SHADOW LIGH
|
||||||
const u8 gJPText_GameFreak[] = _("{COLOR RED}{SHADOW LIGHT_RED}ゲ-ムフリ-ク"); // Unused
|
const u8 gJPText_GameFreak[] = _("{COLOR RED}{SHADOW LIGHT_RED}ゲ-ムフリ-ク"); // Unused
|
||||||
const u8 gText_DiplomaEmpty[] = _("{COLOR RED}{SHADOW LIGHT_RED}"); // Unused
|
const u8 gText_DiplomaEmpty[] = _("{COLOR RED}{SHADOW LIGHT_RED}"); // Unused
|
||||||
const u8 gText_Hoenn[] = _("HOENN");
|
const u8 gText_Hoenn[] = _("HOENN");
|
||||||
|
const u8 gText_Kanto[] = _("KANTO");
|
||||||
const u8 gText_XWillBeSentToY[] = _("{STR_VAR_2} will be\nsent to {STR_VAR_1}.");
|
const u8 gText_XWillBeSentToY[] = _("{STR_VAR_2} will be\nsent to {STR_VAR_1}.");
|
||||||
const u8 gText_ByeByeVar1[] = _("Bye-bye, {STR_VAR_2}!");
|
const u8 gText_ByeByeVar1[] = _("Bye-bye, {STR_VAR_2}!");
|
||||||
const u8 gText_XSentOverY[] = _("{STR_VAR_1} sent over {STR_VAR_3}.");
|
const u8 gText_XSentOverY[] = _("{STR_VAR_1} sent over {STR_VAR_3}.");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user