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