summaryrefslogtreecommitdiff
path: root/include/f_op/f_op_msg.h
blob: 7620e44ed1f04cad77726ddb7ff6cf4a6fb8218f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef F_OP_F_OP_MSG_H
#define F_OP_F_OP_MSG_H

#include "SSystem/SComponent/c_xyz.h"
#include "f_pc/f_pc_leaf.h"

class fopAc_ac_c;

enum fopMsg_MessageStatus_e {
    fopMsgStts_MSG_UNK0_e = 0x00,
    fopMsgStts_MSG_PREPARING_e = 0x01,
    fopMsgStts_BOX_OPENING_e = 0x02,
    fopMsgStts_SCOPE_OPENING_1_e = 0x03, // Scope opening (picto box type)
    fopMsgStts_SCOPE_OPENING_2_e = 0x04, // Scope opening (demo type)
    fopMsgStts_MSG_UNK5_e = 0x05,
    fopMsgStts_MSG_TYPING_e = 0x06,
    fopMsgStts_STOP_e = 0x07,
    fopMsgStts_SELECT_2_e = 0x08, // Selection box with 2 choices
    fopMsgStts_SELECT_3_e = 0x09, // Selection box with 3 choices
    fopMsgStts_CLOSE_WAIT_e = 0x0A, // Waiting for player input before closing the text box
    fopMsgStts_SCOPE_ACTIVE_e = 0x0B, // Scope active/idle
    fopMsgStts_SCOPE_DEMO_e = 0x0C, // Scope demo (cutscene) mode
    fopMsgStts_SCOPE_WAIT_e = 0x0D, // Scope waiting for event/demo
    fopMsgStts_MSG_DISPLAYED_e = 0x0E,
    fopMsgStts_MSG_CONTINUES_e = 0x0F,
    fopMsgStts_MSG_ENDS_e = 0x10,
    fopMsgStts_BOX_CLOSING_e = 0x11,
    fopMsgStts_BOX_CLOSED_e = 0x12,
    fopMsgStts_MSG_DESTROYED_e = 0x13,
    fopMsgStts_SELECT_YOKO_e = 0x14, // Selection box with 2 choices (arranged horizontally)?
    fopMsgStts_INPUT_e = 0x15, // Wind Waker song tutorial (practicing)/numbers input (auction)
    fopMsgStts_TACT_e = 0x16, // Close text box after playing Wind Waker song
    fopMsgStts_DEMO_e = 0x17, // Wind Waker song tutorial (demonstration)
};

struct msg_method_class {
    /* 0x00 */ leafdraw_method_class base;
};

struct msg_class {
    /* 0x00 */ leafdraw_class base;
    /* 0xC0 */ int mMsgType;
    /* 0xC4 */ create_tag_class draw_tag;
    /* 0xD8 */ msg_method_class* sub_method;
    /* 0xDC */ fopAc_ac_c* mpActor;
    /* 0xE0 */ cXyz mPos;
    /* 0xEC */ u32 mMsgNo;
    /* 0xF0 */ u32 field_0xf0;
    /* 0xF4 */ u32 field_0xf4;
    /* 0xF8 */ u16 mStatus;
    /* 0xFA */ u8 mSelectNum; // The index of the choice the player selected.
};  // Size: 0xFC

extern leafdraw_method_class g_fopMsg_Method;

#endif /* F_OP_F_OP_MSG_H */