Skip to Content
The Alchemy Project

src/window/screens_joined.c

The Colosso choice and the joined-party messages. More…

Included by screens.c.

Macros

NameDescription
#defineJOINED_QUEUE_TEXT (window, entry, x, y, spacing)
#defineTALK_WINDOW_X 7
#defineTALK_WINDOW_WIDTH 18

Functions

NameDescription
Sint32mnColossoMenuChoose (Sint32 unused)The Colosso choice of what to do: "Descriptions", "Cheer" or "Nothing", chosen with a pointing hand.
voidmnDjinnShowJoinedMessage (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.
Sint32mnPartyGetMemberPortraitSprite (Uint32 member)Returns the sprite whose portrait shows party member member (0 to 8): from CharacterChildSpriteTable during the prologue, from CharacterSpriteTable otherwise; 0 for any other party member.
voidmnPartyShowJoinedMessage (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.
voidmnPartyShowPairJoinedMessage (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.

Description

The Colosso choice and the joined-party messages. Part of screens.c.

Macros in detail

JOINED_QUEUE_TEXT

#define JOINED_QUEUE_TEXT(window, entry, x, y, spacing)

Referenced by mnDjinnShowJoinedMessage(), mnPartyShowJoinedMessage() and mnPartyShowPairJoinedMessage().

Definition at lines 7 and 10 of file screens_joined.c.

TALK_WINDOW_X

#define TALK_WINDOW_X 7

#define TALK_WINDOW_X 9

#define TALK_WINDOW_X 8

Referenced by mnColossoMenuChoose().

Definition at lines 18, 21 and 24 of file screens_joined.c.

TALK_WINDOW_WIDTH

#define TALK_WINDOW_WIDTH 18

#define TALK_WINDOW_WIDTH 12

#define TALK_WINDOW_WIDTH 16

Referenced by mnColossoMenuChoose().

Definition at lines 19, 22 and 25 of file screens_joined.c.

Functions in detail

mnColossoMenuChoose

Sint32 mnColossoMenuChoose(Sint32 unused)

The Colosso choice of what to do: "Descriptions", "Cheer" or "Nothing", chosen with a pointing hand.

References mnCursorAdvanceStub(), mnCursorSetPosImmediateStub(), mnCursorSetStub(), mnTextDrawMessageAsTiles(), mnWindowClose(), mnWindowCreate(), mnWindowSetInteriorPalette(), mnWindowSpriteCreate(), PerRepeat, PointingHandTiles, Sint32, syDMAXCopy(), sySoundPlayStub(), sySynch(), syVRAMCacheFindFreeEntry(), syVRAMCacheFreeEntry() and syVRAMCacheLoad().

Referenced by scColossoGreetAtStage().

Definition at line 30 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(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerPush, Sint32, state, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().

Definition at line 113 of file screens_joined.c.

mnPartyGetMemberPortraitSprite

Sint32 mnPartyGetMemberPortraitSprite(Uint32 member)

Returns the sprite whose portrait shows party member member (0 to 8): from CharacterChildSpriteTable during the prologue, from CharacterSpriteTable otherwise; 0 for any other party member.

References CharacterChildSpriteTable, CharacterSpriteTable, gmFlagGetStub() and Sint32.

Referenced by mnPartyShowJoinedMessage() and mnPartyShowPairJoinedMessage().

Definition at line 172 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(), mnPartyGetMemberPortraitSprite(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerPush, Sint32, state, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().

Definition at line 187 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(), mnPartyGetMemberPortraitSprite(), mnPortraitGetForSpeaker(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), PerPush, Sint32, state, syOAMAddSpriteAtDepth(), sySoundGetBGMRestoreDelayStub(), sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().

Definition at line 234 of file screens_joined.c.