mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 05:48:03 -04:00
externalize "Secret Revealed" message string
This commit is contained in:
parent
e9bc345051
commit
c874200f3f
@ -328,6 +328,7 @@ char *s_HUSTR_TALKTOSELF3 = HUSTR_TALKTOSELF3;
|
||||
char *s_HUSTR_TALKTOSELF4 = HUSTR_TALKTOSELF4;
|
||||
char *s_HUSTR_TALKTOSELF5 = HUSTR_TALKTOSELF5;
|
||||
char *s_HUSTR_MESSAGESENT = HUSTR_MESSAGESENT;
|
||||
char *s_HUSTR_SECRETFOUND = HUSTR_SECRETFOUND;
|
||||
char *s_HUSTR_PLRGREEN = HUSTR_PLRGREEN;
|
||||
char *s_HUSTR_PLRINDIGO = HUSTR_PLRINDIGO;
|
||||
char *s_HUSTR_PLRBROWN = HUSTR_PLRBROWN;
|
||||
@ -661,6 +662,7 @@ deh_strs deh_strlookup[] = {
|
||||
{&s_HUSTR_TALKTOSELF4,"HUSTR_TALKTOSELF4"},
|
||||
{&s_HUSTR_TALKTOSELF5,"HUSTR_TALKTOSELF5"},
|
||||
{&s_HUSTR_MESSAGESENT,"HUSTR_MESSAGESENT"},
|
||||
{&s_HUSTR_SECRETFOUND,"HUSTR_SECRETFOUND"},
|
||||
{&s_HUSTR_PLRGREEN,"HUSTR_PLRGREEN"},
|
||||
{&s_HUSTR_PLRINDIGO,"HUSTR_PLRINDIGO"},
|
||||
{&s_HUSTR_PLRBROWN,"HUSTR_PLRBROWN"},
|
||||
|
@ -555,6 +555,9 @@ extern char *s_HUSTR_TALKTOSELF5; // = HUSTR_TALKTOSELF5;
|
||||
//#define HUSTR_MESSAGESENT "[Message Sent]"
|
||||
extern char *s_HUSTR_MESSAGESENT; // = HUSTR_MESSAGESENT;
|
||||
|
||||
//#define HUSTR_SECRETFOUND "A secret is revealed!"
|
||||
extern char *s_HUSTR_SECRETFOUND; // = HUSTR_SECRETFOUND;
|
||||
|
||||
// The following should NOT be changed unless it seems
|
||||
// just AWFULLY necessary
|
||||
|
||||
|
@ -227,6 +227,8 @@
|
||||
|
||||
#define HUSTR_MESSAGESENT "[MESSAGE ENVOYE]"
|
||||
|
||||
#define HUSTR_SECRETFOUND "Un secret est revele!"
|
||||
|
||||
// The following should NOT be changed unless it seems
|
||||
// just AWFULLY necessary
|
||||
|
||||
|
@ -1321,7 +1321,8 @@ void HU_Ticker(void)
|
||||
// display message if necessary
|
||||
|
||||
if (showMessages || message_dontfuckwithme)
|
||||
if (plr->message && !strncmp(plr->message, HUSTR_SECRETFOUND, 21))
|
||||
{
|
||||
if (plr->message == s_HUSTR_SECRETFOUND)
|
||||
{
|
||||
extern int M_StringWidth(const char *string);
|
||||
w_secret.l[0].x = ORIGWIDTH/2 - M_StringWidth(plr->message)/2;
|
||||
@ -1365,6 +1366,7 @@ void HU_Ticker(void)
|
||||
// clear the flag that "Messages Off" is being posted
|
||||
message_dontfuckwithme = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// check for incoming chat characters
|
||||
if (netgame)
|
||||
|
@ -2071,7 +2071,7 @@ void P_PlayerInSpecialSector (player_t *player)
|
||||
if (showMessages && hud_secret_message && player == &players[consoleplayer])
|
||||
{
|
||||
int sfx_id;
|
||||
player->message = HUSTR_SECRETFOUND;
|
||||
player->message = s_HUSTR_SECRETFOUND;
|
||||
|
||||
sfx_id = I_GetSfxLumpNum(&S_sfx[sfx_secret]) != -1 ? sfx_secret :
|
||||
I_GetSfxLumpNum(&S_sfx[sfx_itmbk]) != -1 ? sfx_itmbk : -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user