Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
ItemChoice_WaitForSelection.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(
ItemChoice_WaitForSelection
)) {
4
Bytecode
* args =
script
->ptrReadPos;
5
6
if
(
isInitialCall
) {
7
N(
ItemChoice_HasSelectedItem
) =
FALSE
;
8
}
9
10
if
(N(
ItemChoice_HasSelectedItem
)) {
11
N(
ItemChoice_HasSelectedItem
) =
FALSE
;
12
evt_set_variable
(
script
, *args++, N(
ItemChoice_SelectedItemID
));
13
return
ApiStatus_DONE2
;
14
}
15
16
return
ApiStatus_BLOCK
;
17
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
ApiStatus_BLOCK
#define ApiStatus_BLOCK
Definition
evt.h:116
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1846
src
world
common
todo
ItemChoice_WaitForSelection.inc.c
Generated by
1.10.0