Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
FadeBackgroundDarken.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "model.h"
3#include "npc.h"
4
5API_CALLABLE(N(FadeBackgroundDarken)) {
6 if (isInitialCall) {
10 script->functionTemp[0] = 20;
11 }
12
13 mdl_set_shroud_tint_params(0, 0, 0, ((20 - script->functionTemp[0]) * 10) & 254);
14 script->functionTemp[0]--;
15
16 if (script->functionTemp[0] == 0) {
17 return ApiStatus_DONE2;
18 } else {
19 return ApiStatus_BLOCK;
20 }
21}
@ ENV_TINT_SHROUD
Definition enums.h:4387
#define ApiStatus_DONE2
Definition evt.h:118
#define ApiStatus_BLOCK
Definition evt.h:116
void mdl_set_all_tint_type(s32)
Definition model.c:4521
void mdl_set_shroud_tint_params(u8 r, u8 g, u8 b, u8 a)
Definition model.c:3906
ApiStatus FadeBackgroundDarken(Evt *script, b32 isInitialCall)
u8 * gBackgroundTintModePtr
Definition model.c:105