src/window/screens_joined.c
The messages that a Djinni or a party member has joined, and that a summon can now be used, each shown with the join jingle. More…
Included by screens.c.
Macros
| Name | Description | |
|---|---|---|
#define | DJINN_JOIN_X BY_LANGUAGE(2, 2, 2, 2, 1, 1) | The window that announces a Djinni, wider in French and Italian. |
#define | DJINN_JOIN_WIDTH BY_LANGUAGE(26, 26, 26, 26, 28, 28) | |
#define | TO_SUMMON_WINDOW_X BY_LANGUAGE(3, 3, 3, 2, 2, 3) | The window that lists the Djinn a summon needs is wider and taller in Spanish and French, whose text gives each Djinn count a line of its own. |
#define | TO_SUMMON_WINDOW_WIDTH BY_LANGUAGE(24, 24, 24, 25, 25, 24) | |
#define | TO_SUMMON_WINDOW_HEIGHT BY_LANGUAGE(7, 7, 7, 9, 9, 7) |
Functions
| Name | Description | |
|---|---|---|
Sint32 | mnScreensReturnZero (void) | Returns 0; only the stub table refers to it. |
MESSAGE * | mnMessageStart (WINDOW *window, Sint32 entry, Sint32 x, Sint32 y, Uint16 *spacing, Sint32 flags) | Starts a free message typing the decoded text that begins at entry into window, with the pen at pixel (x, y). spacing gives each of four lines an extra gap between characters, in 1/256 pixels (or none for NULL), and is copied, so the caller's array need not outlive the call; flags is kept with the message (nonzero keeps the window's size from page to page). |
void | mnDjinnShowJoinedMessage (Sint32 member, Sint32 element, Sint32 djinn) | Shows that a Djinni joined a party member while the join jingle (MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed. |
Sint32 | mnPartyGetMemberPortraitSprite (Uint32 index) | Returns the sprite of party member index (ISAAC to PIERS), from CharacterSpriteTable, by which mnPortraitGetForSpeaker finds its portrait; 0 past 8. |
void | mnPartyShowJoinedMessage (Sint32 member) | Shows that a party member joined the party while the join jingle (MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed. |
void | mnPartyShowPairJoinedMessage (Sint32 first, Sint32 second) | Shows that two party members joined the party while the join jingle (MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed. |
void | mnSummonShowLearnedMessage (Sint32 summon) | Announces a summon the party can now use: "... can now summon ..." (MsgCanNowSummon) until the jingle ends or a button is pressed, then "To summon" (MsgToSummon) with its two largest Djinn counts, until a button is pressed. |
Description
The messages that a Djinni or a party member has joined, and that a summon
can now be used, each shown with the join jingle. Part of screens.c.
Macros in detail
DJINN_JOIN_X
#define DJINN_JOIN_X BY_LANGUAGE(2, 2, 2, 2, 1, 1)
The window that announces a Djinni, wider in French and Italian.
Referenced by mnDjinnShowJoinedMessage().
Definition at line 11 of file screens_joined.c.
DJINN_JOIN_WIDTH
#define DJINN_JOIN_WIDTH BY_LANGUAGE(26, 26, 26, 26, 28, 28)
Referenced by mnDjinnShowJoinedMessage().
Definition at line 12 of file screens_joined.c.
TO_SUMMON_WINDOW_X
#define TO_SUMMON_WINDOW_X BY_LANGUAGE(3, 3, 3, 2, 2, 3)
The window that lists the Djinn a summon needs is wider and taller in Spanish and French, whose text gives each Djinn count a line of its own.
Referenced by mnSummonShowLearnedMessage().
Definition at line 261 of file screens_joined.c.
TO_SUMMON_WINDOW_WIDTH
#define TO_SUMMON_WINDOW_WIDTH BY_LANGUAGE(24, 24, 24, 25, 25, 24)
Referenced by mnSummonShowLearnedMessage().
Definition at line 262 of file screens_joined.c.
TO_SUMMON_WINDOW_HEIGHT
#define TO_SUMMON_WINDOW_HEIGHT BY_LANGUAGE(7, 7, 7, 9, 9, 7)
Referenced by mnSummonShowLearnedMessage().
Definition at line 263 of file screens_joined.c.
Functions in detail
mnScreensReturnZero
Sint32 mnScreensReturnZero(void)
Returns 0; only the stub table refers to it.
References Sint32.
Definition at line 5 of file screens_joined.c.
mnDjinnShowJoinedMessage
void mnDjinnShowJoinedMessage(Sint32 member, Sint32 element, Sint32 djinn)
Shows that a Djinni joined a party member while the join jingle
(MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed.
References DjinnElementSprites, mnIconLoadWithPalette(), mnMessageArgumentPush(), mnMessageDecodeAndClearArguments(), mnMessageStart(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerWork, Sint32, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().
Definition at line 29 of file screens_joined.c.
mnPartyGetMemberPortraitSprite
Sint32 mnPartyGetMemberPortraitSprite(Uint32 index)
Returns the sprite of party member index (ISAAC to PIERS), from
CharacterSpriteTable, by which mnPortraitGetForSpeaker finds its portrait; 0
past 8. Index 8 reads the halfword after the table's eight.
References CharacterSpriteTable and Sint32.
Referenced by mnPartyShowJoinedMessage() and mnPartyShowPairJoinedMessage().
Definition at line 99 of file screens_joined.c.
mnPartyShowJoinedMessage
void mnPartyShowJoinedMessage(Sint32 member)
Shows that a party member joined the party while the join jingle
(MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed.
References mnIconLoadWithPalette(), mnMessageArgumentPush(), mnMessageDecodeAndClearArguments(), mnMessageStart(), mnPartyGetMemberPortraitSprite(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerWork, Sint32, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().
Definition at line 108 of file screens_joined.c.
mnPartyShowPairJoinedMessage
void mnPartyShowPairJoinedMessage(Sint32 first, Sint32 second)
Shows that two party members joined the party while the join jingle
(MUS_A_NEW_ALLY) plays, until it ends or A, B, L or R is pressed.
References mnIconLoadWithPalette(), mnMessageArgumentPush(), mnMessageDecodeAndClearArguments(), mnMessageStart(), mnPartyGetMemberPortraitSprite(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerWork, Sint32, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().
Definition at line 168 of file screens_joined.c.
mnSummonShowLearnedMessage
void mnSummonShowLearnedMessage(Sint32 summon)
Announces a summon the party can now use: "... can now summon ..."
(MsgCanNowSummon) until the jingle ends or a button is pressed, then "To
summon" (MsgToSummon) with its two largest Djinn counts, until a button is
pressed.
References gmSummonDefinitionGetNearStub(), mnMessageArgumentPush(), mnMessageDecodeAndClearArguments(), mnMessageDecodeAppend(), mnMessageStart(), mnWindowClose(), mnWindowCreate(), PerWork, Sint32, SummonAbilities, sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().
Referenced by dbShopTestGiveMuramasaAndSummon() and scLemuriaSpringGivePrize().
Definition at line 269 of file screens_joined.c.