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
5
API_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) {
14
mdl_set_shroud_tint_params
(0, 0, 0, 0);
15
return
ApiStatus_DONE2
;
16
}
17
return
ApiStatus_BLOCK
;
18
}
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
ApiStatus_BLOCK
#define ApiStatus_BLOCK
Definition
evt.h:116
model.h
mdl_set_shroud_tint_params
void mdl_set_shroud_tint_params(u8 r, u8 g, u8 b, u8 a)
Definition
model.c:3906
FadeBackgroundLighten
ApiStatus FadeBackgroundLighten(Evt *script, b32 isInitialCall)
src
common
FadeBackgroundLighten.inc.c
Generated by
1.10.0