forked from abandoned-cocoon/firered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.h
75 lines (62 loc) · 1.08 KB
/
dialog.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#pragma once
#include "types.h"
#define TEXT_GRAY_ARROW 2
#define TEXT_AUTO_CONTINUE 4
struct typesetter {
u8 *ccursor;
u8 rbox_id;
u8 fbox_id;
u8 reset_x;
u8 reset_y;
u8 cursor_x;
u8 cursor_y;
u8 stride_x;
u8 stride_y;
uint color0 : 4;
uint color1 : 4;
uint color2 : 4;
uint color3 : 4;
char padding[2];
};
static_assert_sizeof(struct typesetter, 16);
/*struct dialogsub1 {
union {
char font_type;
struct {
u8 ft_lo : 4;
u8 ft_hi : 4;
};
}
char field_1;
u16 frames_visible_counter;
int field_4;
};*/
#define ft_hi user_can_skip
struct dialogsub {
union {
char fontbyte;
struct {
u8 ft_lo : 4;
u8 ft_hi : 4; // set to 0 after skipping, set to 1 after releasing buttons
};
};
u8 field_1;
u16 frames_visible_counter;
u8 field_4;
u8 field_5;
u8 field_6;
u8 acknowledged;
};
struct dialog {
struct typesetter tys;
u32 field_10;
struct dialogsub sub;
u8 mode;
u8 text_speed_inv; // lower is faster
u8 wait_frames;
u8 remaining_scroll_lines;
u8 field_20;
u8 japanese;
};
extern u32 textflags;
extern struct dialog dialogs[32];