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 */
2
s32
updateTween
(
PanelAnim
*tween) {
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
}
s32
signed int s32
Definition
common.h:11
PanelAnim
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
Definition
menu.h:18
PanelAnim::step
s32 step
Definition
menu.h:20
PanelAnim::level
s32 level
Definition
menu.h:21
PanelAnim::active
s32 active
Definition
menu.h:22
updateTween
s32 updateTween(PanelAnim *tween)
Steps the tween (stageFuncs.update): whether it has ended.
Definition
update_tween.inc.c:2
src
field
stages
common
update_tween.inc.c
Generated by
1.9.8