joined.c
The Colosso choice and the joined-party messages.
games/tbs/src/window/battle_command/joined.c on GitHub
The Colosso choice and the joined-party messages. Part of battle_command.c, the menu object, compiled only through it.
Functions
PartyTalkMenu_Choose
s32 PartyTalkMenu_Choose(s32 unused)
The Colosso choice of what to do: "Descriptions", "Cheer" or "Nothing", chosen with a pointing hand. Returns the choice (0-2), or -1 when cancelled with B. The Colosso scenes ask it (scene/common/colosso_solo.h). It takes a VRAM slot for the hand and frees it before returning.
Used by Colosso_GreetAtStage.
Djinn_ShowJoinedMessage
void Djinn_ShowJoinedMessage(s32 member, s32 element, s32 djinn)
Shows that a Djinni joined a member while the join fanfare (sound 81)
plays, until it ends or A, B, L or R is pressed. The message is
The <element> Djinni <name> joined <member>., with the element's Djinni
portrait. djinn is the Djinni's number in its element. The field's
Djinni events reach it by far call (object/psynergy_effects/djinni.c). It
closes the window at once (UiWork_Finalize with instant set), waits a
frame and frees the portrait's VRAM slot.
Party_LookupCharacterValueByFlag32
s32 Party_LookupCharacterValueByFlag32(u32 index)
Returns the portrait character of party member member (0-8): from
gCharacter_ChildSpriteTable during the prologue, from
gCharacter_SpriteTable otherwise; 0 for any other member.
Used by Party_ShowJoinedMessage, Party_ShowPairJoinedMessage.
Party_ShowJoinedMessage
void Party_ShowJoinedMessage(s32 member)
Shows that a member joined the party while the join fanfare (sound 81)
plays, until it ends or A, B, L or R is pressed. The message is
<member> joined your party., with the member's portrait. The field's
party events reach it by far call (object/psynergy_effects/events.c).
Party_ShowPairJoinedMessage
void Party_ShowPairJoinedMessage(s32 first, s32 second)
Shows that two members joined the party while the join fanfare (sound 81)
plays, until it ends or A, B, L or R is pressed. The message is
<first> and <second> joined your party., with both portraits.
Macros, without a comment: JOINED_QUEUE_TEXT, JOINED_QUEUE_TEXT, TALK_WINDOW_X, TALK_WINDOW_WIDTH, TALK_WINDOW_X, TALK_WINDOW_WIDTH, TALK_WINDOW_X, TALK_WINDOW_WIDTH.