Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
SPEECH_BUBBLE_APPEAR | |
SPEECH_BUBBLE_HOLD | |
SPEECH_BUBBLE_IDLE | |
SPEECH_BUBBLE_VANISH | |
Definition at line 6 of file speech_bubble.c.
◆ INCLUDE_IMG()
INCLUDE_IMG |
( |
"speech_bubble.png" | , |
|
|
speech_bubble_img | ) |
◆ INCLUDE_PAL()
INCLUDE_PAL |
( |
"speech_bubble.pal" | , |
|
|
speech_bubble_pal | ) |
◆ interact_speech_update()
void interact_speech_update |
( |
void | | ) |
|
Definition at line 80 of file speech_bubble.c.
80 {
82 s32 brightness = 255;
83 f32 yaw;
85
92 ) {
94 }
95
104 }
105 break;
111 }
112 break;
115 yaw += 10.0f;
116 if (yaw >= 360.0f) {
117 yaw -= 360.0f;
118 }
121 break;
124 yaw += 25.0f;
125 if (yaw >= 360.0f) {
126 yaw -= 360.0f;
127 }
129 if ((yaw >= 70.0f && yaw <= 110.0f) || (yaw >= 250.0f && yaw <= 290.0f)) {
130
133 playerStatus->
animFlags &= ~PA_FLAG_SPEECH_PROMPT_AVAILABLE;
134 return;
135 }
137 break;
138 }
139
144 }
145 }
146
151}
s32 N GetIconBrightnessForAngle(f32 angle)
@ PS_FLAG_ENTERING_BATTLE
@ PS_FLAG_HAS_CONVERSATION_NPC
@ ENCOUNTER_STATE_CONVERSATION
SpeechBubbleData * SpeechBubblePtr
void(* TalkNotificationCallback)(void)
PlayerStatus gPlayerStatus
Referenced by interact_speech_setup().
◆ interact_speech_setup()
void interact_speech_setup |
( |
void | | ) |
|
◆ appendGfx_speech_bubble()
void appendGfx_speech_bubble |
( |
void | | ) |
|
Definition at line 48 of file speech_bubble.c.
48 {
51
55 guMtxCatF(mtxTemp, mtxTransform, mtxTemp);
57 guMtxCatF(mtxTemp, mtxTransform, mtxTransform);
59
61 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
63
64 ifxImg.
raster = speech_bubble_img;
65 ifxImg.
palette = speech_bubble_pal;
66 ifxImg.
width = speech_bubble_img_width;
67 ifxImg.
height = speech_bubble_img_height;
75
77 }
78}
s32 imgfx_appendGfx_component(s32, ImgFXTexture *, u32, Matrix4f)
void imgfx_update(u32, ImgFXType, s32, s32, s32, s32, s32)
DisplayContext * gDisplayContext
Referenced by render_conversation_prompt().
◆ SpeechBubble
◆ SpeechBubblePtr