Repository navigation
Expand file tree
/
Copy pathzoombox.h
More file actions
253 lines (246 loc) · 7.72 KB
/
Copy pathzoombox.h
File metadata and controls
253 lines (246 loc) · 7.72 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#ifndef BANJO_KAZOOIE_CORE2_GC_ZOOMBOX_H
#define BANJO_KAZOOIE_CORE2_GC_ZOOMBOX_H
#include <ultra64.h>
#include "structs.h"
#define ZOOMBOX_MAX_STRING_COUNT 8
typedef enum talk_pic_e {
ZOOMBOX_SPRITE_0_GRUNTILDA_QUIZ,
ZOOMBOX_SPRITE_1_VILE_UNUSED_1,
ZOOMBOX_SPRITE_2_VILE_UNUSED_2,
ZOOMBOX_SPRITE_3_VILE_UNUSED_3,
ZOOMBOX_SPRITE_4_BANJO_PAUSE,
ZOOMBOX_SPRITE_5_GRUNTILDA_PAUSE,
ZOOMBOX_SPRITE_6_JIGGY_PAUSE,
ZOOMBOX_SPRITE_7_TOOTY_PAUSE,
ZOOMBOX_SPRITE_8_MUSIC_NOTE_TOTALS,
ZOOMBOX_SPRITE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UNG_EEYRIE_FALL,
ZOOMBOX_SPRITE_55_ADULT_EEYRIE,
ZOOMBOX_SPRITE_56_WARP_CAULDRON,
ZOOMBOX_SPRITE_57_BRENTILDA,
ZOOMBOX_SPRITE_58_TOOTY_TRANSFORMING,
ZOOMBOX_SPRITE_59_BLACK_SNIPPET,
ZOOMBOX_SPRITE_5A_LOGGO,
ZOOMBOX_SPRITE_5B_CHEATO,
ZOOMBOX_SPRITE_5C_XMAS_GIFT_GREEN,
ZOOMBOX_SPRITE_5D_XMAS_GIFT_RED,
ZOOMBOX_SPRITE_5E_KLUNGO,
ZOOMBOX_SPRITE_5F_SEXY_GRUNTY,
ZOOMBOX_SPRITE_60_UGLY_TOOTY,
ZOOMBOX_SPRITE_61_BANJO_CREDITS,
ZOOMBOX_SPRITE_62_KAZOOIE_CREDITS,
ZOOMBOX_SPRITE_63_TOOTY_CREDITS,
ZOOMBOX_SPRITE_64_DINGPOT,
ZOOMBOX_SPRITE_65_CROC_BANJO,
ZOOMBOX_SPRITE_66_GRUNTILDA_BOULDER,
ZOOMBOX_SPRITE_67_LOCKUP,
ZOOMBOX_SPRITE_68_VILE_UNUSED_5,
ZOOMBOX_SPRITE_69_VILE_UNUSED_6,
ZOOMBOX_SPRITE_6A_VILE_UNUSED_7
}GcZoomboxSprite;
typedef struct {
u8 unk0[0x30]; //string1
u8 unk30[0x30]; //string2
u8 unk60[0x30];
u8 unk90[0x20];
u8 unkB0[0x40];
BKModelBin *model;
AnimCtrl *anim_ctrl;
BKSprite *unkF8;
BKSpriteDisplayData *unkFC;
BKSprite *unk100;
BKSpriteDisplayData *unk104;
u8 unk108[5]; //sfx_indexes
u8 pad10D[3];
f32 unk110[5]; //sfx_???
s16 unk124[5]; //sfx_???
s16 unk12E;
void (*callback)(s32 portrait_id, s32 state);
u8 unk134;
u8 state;
u8 portrait_id; //0x136
u8 str_cnt; //string_cnt
u8 current_str_index; //current_string
u8 unk139;
u8 unk13A;
u8 sfx_count;
char *raw_str[ZOOMBOX_MAX_STRING_COUNT]; //string_ptrs
u8 unk15C;
u8 unk15D;
u8 unk15E;
u8 pad15F[0x1];
u8 *unk160;
s16 unk164;
s16 unk166; //top_transparency???
s16 unk168; //rgb???
s16 unk16A; //x_pos
s16 unk16C; //y1_pos
s16 unk16E; //y2_pos
s16 unk170;
s16 unk172;
s16 unk174;
s8 unk176;
s8 unk177;
s8 unk178;
s8 unk179;
u8 pad17A[0x2];
f32 unk17C;
s8 unk180;
s8 unk181;
u8 unk182;
u8 unk183;
u8 unk184;
u8 unk185;
s8 unk186;
u8 unk187;
u8 frame_count; //sprite frame count
u8 unk189;
u8 unk18A;
u8 prev_sfx; //next_sfx
f32 unk18C;
f32 unk190;
f32 unk194;
f32 unk198;
f32 unk19C;
f32 unk1A0;
u32 unk1A4_31:1;
u32 unk1A4_30:1;
u32 unk1A4_29:1;
u32 unk1A4_28:1;
u32 unk1A4_27:1;
u32 unk1A4_26:1;
u32 unk1A4_25:1;
u32 unk1A4_24:1;
u32 unk1A4_23:1;
u32 unk1A4_22:1;
u32 unk1A4_21:1;
u32 unk1A4_20:1;
u32 unk1A4_19:1;
u32 highlighted:1;
u32 unk1A4_17:1;
u32 unk1A4_16:1;
u32 unk1A4_15:1;
u32 unk1A4_14:1;
u32 unk1A4_13:1;
u32 unk1A4_12:1;
u32 unk1A4_11:1;
u32 unk1A4_10:1;
u32 pad1A4_9:10;
}GcZoombox; //size 0x1A8
void gczoombox_free(GcZoombox *self);
void gczoombox_func_803160A8(GcZoombox *self);
void func_803163A8(GcZoombox *self, Gfx **gfx, Mtx **mtx);
void func_803164B0(GcZoombox *self, Gfx **gfx, Mtx **mtx, s32 arg3, s32 arg4, BKSpriteDisplayData *arg5, f32 arg6);
void func_80316764(GcZoombox *self, s32 arg1);
void gczoombox_draw(GcZoombox *self, Gfx **gdl, Mtx ** mptr, void *vptr);
void func_80316E08(GcZoombox *self);
void func_80316E60(GcZoombox *self);
void func_80316E84(GcZoombox *self, s32 arg1);
s32 gczoombox_strlen(u8 *arg0);
void gczoombox_update(GcZoombox *self);
GcZoombox *gczoombox_new(s32 arg0, GcZoomboxSprite portrait_id, s32 arg2, s32 arg3, void (*arg4)(s32, s32));
bool gczoombox_setStrings(GcZoombox *self, s32 str_cnt, char **str_ptrs);
bool func_803183A4(GcZoombox *self, char *arg1);
void gczoombox_open(GcZoombox *self);
void gczoombox_close(GcZoombox *self);
void gczoombox_maximize(GcZoombox *self);
void gczoombox_minimize(GcZoombox *self);
void func_8031842C(GcZoombox *self);
void func_8031843C(GcZoombox *self);
void func_80318478(GcZoombox *self);
void func_80318488(GcZoombox *self);
void func_80318498(GcZoombox *self);
void gczoombox_resolve_minimize(GcZoombox *self);
void func_803184B8(GcZoombox *self);
void gczoombox_func_803184C8(GcZoombox *self, f32 arg1, s32 arg2, s32 arg3, f32 arg4, bool arg5, bool arg6);
bool func_8031857C(GcZoombox *self, u8 *str);
void gczoombox_highlight(GcZoombox *self, bool arg1);
bool gczoombox_is_highlighted(GcZoombox *self);
void func_80318614(GcZoombox *self, int arg1);
void func_80318640(GcZoombox *self, s32 arg1, f32 arg2, f32 arg3, s32 arg4);
void func_80318734(GcZoombox *self, f32 arg1);
void func_80318760(GcZoombox *self, s32 arg1);
void gczoombox_setUnk13ATo0(GcZoombox *self);
bool func_8031877C(GcZoombox *self);
bool func_803188B4(GcZoombox *self);
bool func_80318964(GcZoombox *self);
bool gczoombox_loadSprite(GcZoombox *self, GcZoomboxSprite arg1);
void func_80318B7C(GcZoombox *self, s32 arg1);
bool func_80318BEC(GcZoombox *self);
void gczoombox_defrag(GcZoombox *self);
void gczoombox_func_80318C48(GcZoombox *self, bool arg1);
#endif // __BANJO_KAZOOIE_CORE2_GC_ZOOMBOX_H__