Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_tween.inc.c
Go to the documentation of this file.
1/* Steps the tween (stageFuncs.update): whether it has ended */
3 if (tween->active == 0) {
4 return 1;
5 }
6 tween->level += tween->step;
7 if (tween->step > 0) {
8 if (tween->level > ONE) {
9 tween->level = ONE;
10 tween->active = 0;
11 return 1;
12 }
13 } else if (tween->level < 0) {
14 tween->level = 0;
15 tween->active = 0;
16 return 1;
17 }
18 return 0;
19}
signed int s32
Definition common.h:11
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
Definition menu.h:18
s32 step
Definition menu.h:20
s32 level
Definition menu.h:21
s32 active
Definition menu.h:22
s32 updateTween(PanelAnim *tween)
Steps the tween (stageFuncs.update): whether it has ended.