summaryrefslogtreecommitdiff
path: root/include/d/meter/d_meter_button.h
blob: 2b0676adad0294ceb212b86660dd923ae49c923e (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
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#ifndef D_METER_D_METER_BUTTON_H
#define D_METER_D_METER_BUTTON_H

#include "JSystem/J2DGraph/J2DScreen.h"
#include "JSystem/J2DGraph/J2DTextBox.h"
#include "d/d_drawlist.h"

class CPaneMgr;
class dMsgString_c;
class COutFont_c;

class dMeterButton_c : public dDlst_base_c {
public:
    enum {
        BUTTON_A_e,
        BUTTON_B_e,
        BUTTON_R_e,
        BUTTON_Z_e,
        BUTTON_3D_e,
        BUTTON_C_e,
        BUTTON_S_e,
        BUTTON_X_e,
        BUTTON_Y_e,
        BUTTON_NUN_e,
        BUTTON_REMO_e,
        BUTTON_REMO2_e,
        BUTTON_AR_e,
        BUTTON_3DB_e,
        BUTTON_NURE_e,
        BUTTON_REEL_e,
        BUTTON_REEL2_e,
        BUTTON_AB_e,
        BUTTON_TATE_e,
        BUTTON_NUNZ_e,
        BUTTON_NUNC_e,
        BUTTON_BIN_e,
        BUTTON_NONE_e,
    };

    enum {
        DIR_LEFT_e = (1 << 0),
        DIR_DOWN_e = (1 << 1),
        DIR_RIGHT_e = (1 << 2),
        DIR_UP_e = (1 << 3),
    };

    /* 80201328 */ dMeterButton_c();
    /* 802013CC */ int _create();
    /* 80201404 */ int _execute(u32, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool,
                                 bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool,
                                 bool);
    /* 80202A9C */ int _delete();
    /* 802032C4 */ bool alphaAnimeButtonA(u32, bool);
    /* 8020339C */ bool alphaAnimeButtonB(u32, bool);
    /* 802034A8 */ bool alphaAnimeButtonR(u32, bool);
    /* 802035AC */ bool alphaAnimeButtonZ(u32, bool);
    /* 802036C0 */ bool alphaAnimeButton3D(u32, bool);
    /* 802037B8 */ bool alphaAnimeButtonC(u32, bool);
    /* 80203878 */ bool alphaAnimeButtonS(u32, bool);
    /* 802038F4 */ bool alphaAnimeButtonX(u32, bool);
    /* 80203A08 */ bool alphaAnimeButtonY(u32, bool);
    /* 80203B1C */ bool alphaAnimeButtonNun(u32, bool);
    /* 80203C30 */ bool alphaAnimeButtonRemo(u32, bool);
    /* 80203D44 */ bool alphaAnimeButtonRemo2(u32, bool);
    /* 80203E58 */ bool alphaAnimeButtonAR(u32, bool);
    /* 80203F60 */ bool alphaAnimeButton3DB(u32, bool);
    /* 80204068 */ bool alphaAnimeButtonNURE(u32, bool);
    /* 80204170 */ bool alphaAnimeButtonReel(u32, bool);
    /* 80204278 */ bool alphaAnimeButtonReel2(u32, bool);
    /* 80204368 */ bool alphaAnimeButtonAB(u32, bool);
    /* 80204458 */ bool alphaAnimeButtonTate(u32, bool);
    /* 80204548 */ bool alphaAnimeButtonNunZ(u32, bool);
    /* 80204620 */ bool alphaAnimeButtonNunC(u32, bool);
    /* 802046F8 */ bool alphaAnimeButtonBin(u32, bool);
    /* 802047E8 */ void screenInitButton();
    /* 80205834 */ void screenInitText();
    /* 80205CA0 */ void updateButton();
    /* 80206978 */ void updateText(u32);
    /* 80206CE0 */ void setAlphaButtonAAnimeMin();
    /* 80206D70 */ bool isFastSet(int);
    /* 80207060 */ void setAlphaButtonAAnimeMax();
    /* 8020714C */ void setAlphaButtonBAnimeMin();
    /* 802071DC */ void setAlphaButtonBAnimeMax();
    /* 802072C8 */ void setAlphaButtonRAnimeMin();
    /* 80207358 */ void setAlphaButtonRAnimeMax();
    /* 80207444 */ void setAlphaButtonZAnimeMin();
    /* 802074D4 */ void setAlphaButtonZAnimeMax();
    /* 802075C0 */ void setAlphaButton3DAnimeMin();
    /* 80207654 */ void setAlphaButton3DAnimeMax();
    /* 80207740 */ void setAlphaButton3DVAnimeMin();
    /* 80207744 */ void setAlphaButton3DVAnimeMax();
    /* 80207748 */ void setAlphaButtonCAnimeMin();
    /* 802077EC */ void setAlphaButtonCAnimeMax();
    /* 80207A28 */ void setAlphaButtonSAnimeMin();
    /* 80207AB8 */ void setAlphaButtonSAnimeMax();
    /* 80207BA4 */ void setAlphaButtonXAnimeMin();
    /* 80207C34 */ void setAlphaButtonXAnimeMax();
    /* 80207D20 */ void setAlphaButtonYAnimeMin();
    /* 80207DB0 */ void setAlphaButtonYAnimeMax();
    /* 80207E9C */ void setAlphaButtonNunAnimeMin();
    /* 80207F34 */ void setAlphaButtonNunAnimeMax();
    /* 80208028 */ void setAlphaButtonRemoAnimeMin();
    /* 802080C0 */ void setAlphaButtonRemoAnimeMax();
    /* 802081B4 */ void setAlphaButtonRemo2AnimeMin();
    /* 8020824C */ void setAlphaButtonRemo2AnimeMax();
    /* 80208340 */ void setAlphaButtonARAnimeMin();
    /* 802083D8 */ void setAlphaButtonARAnimeMax();
    /* 802084D8 */ void setAlphaButton3DBAnimeMin();
    /* 80208570 */ void setAlphaButton3DBAnimeMax();
    /* 80208670 */ void setAlphaButtonNUREAnimeMin();
    /* 80208708 */ void setAlphaButtonNUREAnimeMax();
    /* 80208808 */ void setAlphaButtonReelAnimeMin();
    /* 802088A0 */ void setAlphaButtonReelAnimeMax();
    /* 802089A0 */ void setAlphaButtonReel2AnimeMin();
    /* 80208A38 */ void setAlphaButtonReel2AnimeMax();
    /* 80208AEC */ void setAlphaButtonABAnimeMin();
    /* 80208B84 */ void setAlphaButtonABAnimeMax();
    /* 80208C38 */ void setAlphaButtonTateAnimeMin();
    /* 80208CD0 */ void setAlphaButtonTateAnimeMax();
    /* 80208D84 */ void setAlphaButtonNunZAnimeMin();
    /* 80208E1C */ void setAlphaButtonNunZAnimeMax();
    /* 80208F1C */ void setAlphaButtonNunCAnimeMin();
    /* 80208FB4 */ void setAlphaButtonNunCAnimeMax();
    /* 802090B4 */ void setAlphaButtonBinAnimeMin();
    /* 8020914C */ void setAlphaButtonBinAnimeMax();
    /* 8020924C */ void setAlphaButtonOAnimeMin(int);
    /* 802092C0 */ void setAlphaButtonOAnimeMax(int);
    /* 80209368 */ void setAlphaIconAnimeMin();
    /* 802093D8 */ void setAlphaIconAnimeMax();
    /* 80209474 */ bool isClose();
    /* 802095C0 */ void setString(char*, u8, u8, u8);
    /* 80209CEC */ void hideAll();
    /* 80209D7C */ f32 getCenterPosCalc(u8, char*, int);
    /* 8020A540 */ void trans_button(int, f32);
    /* 8020A94C */ void hide_button(u8);
    /* 8020AA84 */ void pikariCheck();
    /* 8020AE68 */ void paneTrans(CPaneMgr*, f32, f32, u8);

    /* 80202240 */ virtual void draw();
    /* 80201370 */ virtual ~dMeterButton_c();

    bool isSetButton(u8 i_no) { return mButtonTimers[i_no] <= 0; }
    void onButtonShowBit(int i_bit) { field_0x4b0 |= (u16)(1 << i_bit); }
    void offButtonShowBit(int i_bit) { field_0x4b0 &= ~(u16)(1 << i_bit); }
    bool isButtonShowBit(int i_bit) { return field_0x4b0 & (u16)(1 << i_bit); }

    static const int BUTTON_NUM = 22;

    /* 0x004 */ dMsgString_c* mpString_c;
    /* 0x008 */ J2DScreen* mpButtonScreen;
    /* 0x00C */ J2DScreen* field_0x00c;
    /* 0x010 */ J2DScreen* mpScreen;
    /* 0x014 */ J2DScreen* mpTextScreen;
    /* 0x018 */ CPaneMgr* mpParent;
    /* 0x01C */ CPaneMgr* mpButtonA;
    /* 0x020 */ CPaneMgr* mpButtonR;
    /* 0x024 */ CPaneMgr* mpButtonB;
    /* 0x028 */ CPaneMgr* mpButtonZ;
    /* 0x02C */ CPaneMgr* mpButton3D;
    /* 0x030 */ CPaneMgr* mpButtonC;
    /* 0x034 */ CPaneMgr* mpButtonS;
    /* 0x038 */ CPaneMgr* mpButtonX;
    /* 0x03C */ CPaneMgr* mpButtonY;
    /* 0x040 */ CPaneMgr* mpButtonNun;
    /* 0x044 */ CPaneMgr* mpButtonRemo;
    /* 0x048 */ CPaneMgr* mpButtonRemo2;
    /* 0x04C */ CPaneMgr* mpButtonAR;
    /* 0x050 */ CPaneMgr* mpButton3DB;
    /* 0x054 */ CPaneMgr* mpButtonNURE;
    /* 0x058 */ CPaneMgr* mpButtonReel;
    /* 0x05C */ CPaneMgr* mpButtonReel2;
    /* 0x060 */ CPaneMgr* mpButtonAB;
    /* 0x064 */ CPaneMgr* mpButtonTate;
    /* 0x068 */ CPaneMgr* mpButtonNunZ;
    /* 0x06C */ CPaneMgr* mpButtonNunC;
    /* 0x070 */ CPaneMgr* mpButtonBin;
    /* 0x074 */ u8 field_0x074[0x078 - 0x074];
    /* 0x078 */ CPaneMgr* mpText[2];
    /* 0x080 */ CPaneMgr* field_0x080;
    /* 0x084 */ J2DTextBox* mpTextBox[10];
    /* 0x0AC */ u8 field_0x0AC[0x0D4 - 0x0AC];
    /* 0x0D4 */ COutFont_c* mpOutFont;
    /* 0x0D8 */ CPaneMgr* mpFkAll_c;
    /* 0x0DC */ CPaneMgr* mpFkRoot_c;
    /* 0x0E0 */ CPaneMgr* mpTmRoot_c;
    /* 0x0E4 */ CPaneMgr* mpTm_c[2];
    /* 0x0EC */ CPaneMgr* field_0x0ec[2];
    /* 0x0F4 */ CPaneMgr* mpItem_c;
    /* 0x0F8 */ CPaneMgr* mpMidona;
    /* 0x0FC */ CPaneMgr* field_0x0fc[4];
    /* 0x10C */ JKRHeap* mpHeap;
    /* 0x110 */ void* mpFishingTex;
    /* 0x114 */ char mButtonText[2][15];
    /* 0x132 */ u8 field_0x132[0x134 - 0x132];
    /* 0x134 */ f32 field_0x134;
    /* 0x138 */ f32 field_0x138;
    /* 0x13C */ f32 field_0x13c;
    /* 0x140 */ f32 field_0x140;
    /* 0x144 */ f32 field_0x144;
    /* 0x148 */ f32 field_0x148;
    /* 0x14C */ f32 field_0x14c;
    /* 0x150 */ f32 field_0x150;
    /* 0x154 */ f32 field_0x154;
    /* 0x158 */ f32 field_0x158;
    /* 0x15C */ f32 field_0x15c;
    /* 0x160 */ f32 field_0x160;
    /* 0x164 */ f32 field_0x164;
    /* 0x168 */ f32 field_0x168;
    /* 0x16C */ f32 field_0x16c;
    /* 0x170 */ f32 field_0x170;
    /* 0x174 */ f32 field_0x174;
    /* 0x178 */ f32 field_0x178;
    /* 0x17C */ f32 field_0x17c;
    /* 0x180 */ f32 field_0x180;
    /* 0x184 */ f32 field_0x184;
    /* 0x188 */ f32 field_0x188;
    /* 0x18C */ f32 field_0x18c[BUTTON_NUM];
    /* 0x1E4 */ f32 field_0x1e4[2];
    /* 0x1EC */ f32 mButtonWidth[BUTTON_NUM];
    /* 0x244 */ f32 field_0x244[BUTTON_NUM];
    /* 0x29C */ f32 field_0x29c[2];
    /* 0x2A4 */ f32 field_0x2a4;
    /* 0x2A8 */ f32 field_0x2a8;
    /* 0x2AC */ u8 field_0x2AC[0x2E0 - 0x2AC];
    /* 0x2E0 */ f32 field_0x2e0[2];
    /* 0x2E8 */ f32 field_0x2e8[2];
    /* 0x2F0 */ f32 mParentCenterX;
    /* 0x2F4 */ f32 field_0x2f4[2];
    /* 0x2FC */ f32 field_0x2fc[2];
    /* 0x304 */ f32 field_0x304[BUTTON_NUM];
    /* 0x35C */ f32 field_0x35c;
    /* 0x360 */ f32 field_0x360;
    /* 0x364 */ Vec mVtxCenterA;
    /* 0x370 */ Vec mVtxCenterB;
    /* 0x37C */ Vec mVtxCenterR;
    /* 0x388 */ Vec mVtxCenterZ;
    /* 0x394 */ Vec mVtxCenter3D;
    /* 0x3A0 */ Vec mVtxCenterC;
    /* 0x3AC */ Vec mVtxCenterS;
    /* 0x3B8 */ Vec mVtxCenterX;
    /* 0x3C4 */ Vec mVtxCenterY;
    /* 0x3D0 */ u8 field_0x3D0[0x400 - 0x3D0];
    /* 0x400 */ Vec mVtxCenter3DB;
    /* 0x40C */ u8 field_0x40C[0x460 - 0x40C];
    /* 0x460 */ Vec mVtxCenterBin;
    /* 0x46C */ Vec mVtxCenterText0;
    /* 0x478 */ Vec mVtxCenterText1;
    /* 0x484 */ s16 mButtonTimers[BUTTON_NUM];
    /* 0x4B0 */ u16 field_0x4b0;
    /* 0x4B2 */ u16 mMsgID;
    /* 0x4B4 */ s16 field_0x4b4;
    /* 0x4B6 */ s16 field_0x4b6;
    /* 0x4B8 */ s16 field_0x4b8[2];
    /* 0x4BC */ u8 field_0x4bc[2];
    /* 0x4BE */ u8 field_0x4be[2];
    /* 0x4C0 */ bool mPlayedButtonSound[BUTTON_NUM];
    /* 0x4D6 */ u8 mMeterSubContent;
    /* 0x4D7 */ u8 field_0x4d7[2];
    /* 0x4D9 */ u8 field_0x4d9;
    /* 0x4DA */ u8 field_0x4da[4];
    /* 0x4E0 */ f32 mParentPosX;
    /* 0x4E4 */ f32 mParentPosY;
    /* 0x4E8 */ f32 mParentScale;
    /* 0x4EC */ f32 mButtonAPosX;
    /* 0x4F0 */ f32 mButtonAPosY;
    /* 0x4F4 */ f32 mButtonAScale;
    /* 0x4F8 */ f32 mButtonBPosX;
    /* 0x4FC */ f32 mButtonBPosY;
    /* 0x500 */ f32 mButtonBScale;
    /* 0x504 */ f32 mButtonRPosX;
    /* 0x508 */ f32 mButtonRPosY;
    /* 0x50C */ f32 mButtonRScale;
    /* 0x510 */ f32 mButtonZPosX;
    /* 0x514 */ f32 mButtonZPosY;
    /* 0x518 */ f32 mButtonZScale;
    /* 0x51C */ f32 mButton3DPosX;
    /* 0x520 */ f32 mButton3DPosY;
    /* 0x524 */ f32 mButton3DScale;
    /* 0x528 */ f32 mButtonCPosX;
    /* 0x52C */ f32 mButtonCPosY;
    /* 0x530 */ f32 mButtonCScale;
    /* 0x534 */ f32 mButtonSPosX;
    /* 0x538 */ f32 mButtonSPosY;
    /* 0x53C */ f32 mButtonSScale;
    /* 0x540 */ f32 mButtonXPosX;
    /* 0x544 */ f32 mButtonXPosY;
    /* 0x548 */ f32 mButtonXScale;
    /* 0x54C */ f32 mButtonYPosX;
    /* 0x550 */ f32 mButtonYPosY;
    /* 0x554 */ f32 mButtonYScale;
    /* 0x558 */ f32 field_0x558;
    /* 0x55C */ f32 field_0x55c;
    /* 0x560 */ f32 field_0x560;
    /* 0x564 */ f32 field_0x564;
    /* 0x568 */ f32 field_0x568;
    /* 0x56C */ f32 field_0x56c;
    /* 0x570 */ f32 field_0x570;
    /* 0x574 */ f32 field_0x574;
    /* 0x578 */ f32 field_0x578;
    /* 0x57C */ f32 field_0x57c;
    /* 0x580 */ f32 field_0x580;
    /* 0x584 */ f32 field_0x584;
    /* 0x588 */ f32 mButton3DBPosX;
    /* 0x58C */ f32 mButton3DBPosY;
    /* 0x590 */ f32 mButton3DBScale;
    /* 0x594 */ f32 field_0x594;
    /* 0x598 */ f32 field_0x598;
    /* 0x59C */ f32 field_0x59c;
    /* 0x5A0 */ f32 field_0x5a0;
    /* 0x5A4 */ f32 field_0x5a4;
    /* 0x5A8 */ f32 field_0x5a8;
    /* 0x5AC */ f32 field_0x5ac;
    /* 0x5B0 */ f32 field_0x5b0;
    /* 0x5B4 */ f32 field_0x5b4;
    /* 0x5B8 */ f32 field_0x5b8;
    /* 0x5BC */ f32 field_0x5bc;
    /* 0x5C0 */ f32 field_0x5c0;
    /* 0x5C4 */ f32 field_0x5c4;
    /* 0x5C8 */ f32 field_0x5c8;
    /* 0x5CC */ f32 field_0x5cc;
    /* 0x5D0 */ f32 field_0x5d0;
    /* 0x5D4 */ f32 field_0x5d4;
    /* 0x5D8 */ f32 field_0x5d8;
    /* 0x5DC */ f32 field_0x5dc;
    /* 0x5E0 */ f32 field_0x5e0;
    /* 0x5E4 */ f32 field_0x5e4;
    /* 0x5E8 */ f32 mButtonBinPosX;
    /* 0x5EC */ f32 mButtonBinPosY;
    /* 0x5F0 */ f32 field_0x5f0;
    /* 0x5F4 */ f32 field_0x5f4;
    /* 0x5F8 */ f32 field_0x5f8;
    /* 0x5FC */ f32 field_0x5fc;
    /* 0x600 */ f32 mTextPosX[2];
    /* 0x608 */ f32 mTextPosY[2];
    /* 0x610 */ f32 mTextScale[2];
    /* 0x618 */ f32 mItemPosX;
    /* 0x61C */ f32 mItemPosY;
    /* 0x620 */ f32 mItemScale;
    /* 0x624 */ f32 mMidonaPosX;
    /* 0x628 */ f32 mMidonaPosY;
    /* 0x62C */ f32 mMidonaScale;
};

#endif /* D_METER_D_METER_BUTTON_H */