DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
memcard.hpp
1#pragma once
2
3#include "common.h"
4
5#include "menu_draw.hpp"
6#include "menuetc.hpp"
7
11// clang-format off
12enum AtoraSelectResult {
13 ATORA_SELECT_NONE = 0,
14 ATORA_SELECT_PLACE = 10,
15 ATORA_SELECT_CHANGE_PAGE = 20,
16 ATORA_SELECT_CLOSE = 100,
17 ATORA_SELECT_PLACE_EXIT = 110,
18};
19
20// clang-format on
21
25// clang-format off
26enum MenuSaveResult {
27 MENU_SAVE_RUNNING = 0,
28 MENU_SAVE_LOADED = 1,
29 MENU_SAVE_CLOSED = 2,
30};
31
32// clang-format on
33
37// clang-format off
38enum AtoraLinkKind {
39 ATORA_LINK_NONE = 0,
40 ATORA_LINK_BESIDE = 1,
41 ATORA_LINK_ABOVE = 2,
42 ATORA_LINK_HIDDEN = 50,
43};
44
45// clang-format on
46
50// clang-format off
51enum AtoraSide {
52 ATORA_SIDE_BOARD = 0,
53 ATORA_SIDE_CHIP_LIST = 1,
54};
55
56// clang-format on
57
61// clang-format off
62enum AtoraStep {
63 ATORA_STEP_RUN = 0,
64 ATORA_STEP_FADE_IN = 1,
65 ATORA_STEP_FADE_OUT = 2,
66 ATORA_STEP_EVENT_START = 3,
67 ATORA_STEP_COMPLETE_FLASH = 4,
68 ATORA_STEP_CHANGE_MAP = 6,
69 ATORA_STEP_EVENT_FADE_OUT = 7,
70 ATORA_STEP_EVENT_PLAY = 8,
71 ATORA_STEP_EVENT_FADE_IN = 9,
72 ATORA_STEP_WARNING = 10,
73};
74
75// clang-format on
76
80// clang-format off
81enum AtoraOpenMode {
82 ATORA_OPEN_VIEW = 0,
83 ATORA_OPEN_WARN = 1,
84 ATORA_OPEN_PLACE = 2,
85};
86
87// clang-format on
88
92// clang-format off
93enum OptionOpenMode {
94 OPTION_OPEN_TITLE = 0,
95 OPTION_OPEN_GAME_MENU = 1,
96};
97
98// clang-format on
99
103// clang-format off
104enum OptionStep {
105 OPTION_STEP_RUN = 0,
106 OPTION_STEP_FADE_IN = 1,
107 OPTION_STEP_FADE_OUT = 2,
108};
109
110// clang-format on
111
115// clang-format off
116enum OptionCursorArea {
117 OPTION_AREA_ROWS = 0,
118 OPTION_AREA_EXIT_BUTTON = 1,
119 OPTION_AREA_SCREEN_POS = 2,
120};
121
122// clang-format on
123
124// Forward declarations for the types these declarations name. The skeleton
125// headers are generated from the retail symbol table, which knows the type
126// names but not where they live.
127class CEditPartsInfo;
129struct EDITPARTS_INFO;
130struct MC_CARD_INFO;
131struct RECT;
132
138 s32 mode;
139 s32 unk_04;
141 s32 slot;
142 s16 tip_no;
143};
144
145STATIC_ASSERT(sizeof(ATORA_TIP_HAVE) == 0x14);
146
151 s32 mode;
154 s16 map_no;
158 u8 unk_174[0xA];
160 float cursor_x;
161 float cursor_y;
163 s32 step;
166 u8 unk_196[2];
169 u8 unk_19C[8];
172 u8 unk_1AA[2];
173};
174
175STATIC_ASSERT(sizeof(MENU_ATORA_SEL) == 0x1AC);
176
185int McCheckMCPs2(MC_CARD_INFO *card);
186
195void DrawObjectVibe(int x, int y, CTexture *texture, CRect_i_ src_rect, unsigned char alpha, int flag);
196
204void DrawObjectVibe(int x, int y, CTexture *texture, RECT src_rect, unsigned char alpha, int flag);
205
214void DrawMenuObjectVibe(int x, int y, int shadow, int icon_u);
215
223void DrawMenuHelpWindow(CTexture *texture, int style, int x, int y, float width, float height, int alpha);
224
233void MenuHelpWinDraw(int x, int y, float width, float height, int alpha, int u, int v, CTexture *texture);
234
243void MenuHelpWinDraw2(int x, int y, float width, float height, int alpha, int u, int v, CTexture *texture);
244
252void MenuHelpWinDraw(int x, int y, float width, float height, int alpha);
253
262void DrawMenuWaku(float x, float y, int width, int height, int type, CTexture *texture, int alpha);
263
272int DrawMenuNumber(int number, int x, int y, CTexture *texture, RECT rect, int overlap, int flag);
273
282int DrawMenuNumber(int number, int x, int y, RECT rect, CTexture *texture, int overlap, unsigned char r, unsigned char g, unsigned char b, int flag);
283
292int DrawMenuNumber(int number, int x, int y, RECT rect, CTexture *texture, int overlap, int top, int bottom, int flag);
293
302int GetMsgLengthMenu(ClsMes *mes, int mes_no);
303
312void DrawAtoraParts(int x, int y, int tip_no, int top, int bottom, int alpha);
313
321int GetAtraMsgNo(int map_no, int element);
322
330void DrawAtraBuildNum(EDITPARTS_INFO *info, int x, int y, int alpha);
331
341void DrawAtora(int x, int y, int parts_index, int alpha);
342
350int GetMenuAtraEventFlag();
351
359void InitMenuAtora1(int open_mode, int edit_map, int *texture_blocks, u_long128 *buffer);
360
369void InitMenuAtoraSelect(int map_no);
370
378void DrawMenuAtoraSelect();
379
387int MenuAtoraSelectKey();
388
397void AtoraNameDraw(int unused);
398
408int InitMenuOption(int mode, int block_no, u_long128 *buffer);
409
418int MenuOptionKey();
419
427void DrawMenuOption();
428
436int OptionMenuFadeOutStart();
437
446int InitMenuSave(int mode, int block_no, u_long128 *buffer);
447
455int MenuSaveKey();
456
464void DrawMenuSave(char *frame_name);
465
469extern CEditPartsInfo BtEditPartsInfo;
470
474extern CMemoryCardAccess McAccess;
475
479extern s32 CursorVibeCnt;
480
484extern CEditPartsInfo *CommonMenuAtoraInfo;
485
489extern CTexture *StayTex;
490
494extern CTexture *ItemIcon;
495
499extern CTexture *WepIcon;
500
504extern CTexture *Sozai;
505
509extern CTexture *HoleGold;
510
514extern CTexture *HoleGray;
515
519extern CTexture *CompleteTex;
520
524extern CTexture *ObTip;
525
529extern CTexture *ObPerson;
530
534extern CTexture *VillageBar;
535
539extern CTexture *VillageName;
540
544extern MENU_ATORA_SEL MenuAtoraSel;
545
549extern short *GetAtraMsgReadBuf;
550
554extern CTexture *ItemIcon2;
555
559extern CTexture *AttachIcon;
560
562extern CTexture *SaveBoard;
563
567extern char allmenu_mes[];
PERSONAL_BOARD board
Definition memcard.hpp:157
s16 * prev_mes_buff
Definition memcard.hpp:170
Definition title.cpp:61