Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
startup_screen_fading.c File Reference

Go to the source code of this file.

Functions

void startup_set_fade_screen_alpha (s16 alpha)
 
void startup_set_fade_screen_color (s16 color)
 
b32 startup_fade_screen_in (s16 subtractAlpha)
 
b32 startup_fade_screen_out (s16 addAlpha)
 
void startup_fade_screen_update (void)
 

Function Documentation

◆ startup_set_fade_screen_alpha()

void startup_set_fade_screen_alpha ( s16 alpha)

Definition at line 3 of file startup_screen_fading.c.

3 {
5}
GameStatus * gGameStatusPtr
Definition main_loop.c:32

Referenced by btl_update(), state_init_intro(), state_init_logos(), state_step_demo(), and state_step_logos().

◆ startup_set_fade_screen_color()

void startup_set_fade_screen_color ( s16 color)

◆ startup_fade_screen_in()

b32 startup_fade_screen_in ( s16 subtractAlpha)

Definition at line 13 of file startup_screen_fading.c.

13 {
14 if (gGameStatusPtr->screenColorA == 0) {
15 return TRUE;
16 }
17
18 gGameStatusPtr->screenColorA -= subtractAlpha;
21 }
22
23 return FALSE;
24}

Referenced by state_step_logos(), and state_step_title_screen().

◆ startup_fade_screen_out()

b32 startup_fade_screen_out ( s16 addAlpha)

Definition at line 26 of file startup_screen_fading.c.

26 {
27 if (gGameStatusPtr->screenColorA == 255) {
28 return TRUE;
29 }
30
31 gGameStatusPtr->screenColorA += addAlpha;
32 if (gGameStatusPtr->screenColorA > 255) {
34 }
35
36 return FALSE;
37}

Referenced by state_step_intro(), state_step_logos(), and state_step_title_screen().

◆ startup_fade_screen_update()