Go to the source code of this file.
|
| void | filemenu_update_change_layout (s32 windowIdx, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity) |
| |
| void | filemenu_draw_contents_file_create_header (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) |
| |
| s32 | msg_get_print_char_width (s32 character, s32 charset, s32 variation, f32 msgScale, s32 overrideCharWidth, u8 flags) |
| |
| void | filemenu_draw_contents_choose_name (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) |
| |
| void | filemenu_choose_name_init (MenuPanel *menu) |
| |
| void | filemenu_choose_name_handle_input (MenuPanel *menu) |
| |
| void | filemenu_choose_name_update (MenuPanel *menu) |
| |
| void | filemenu_choose_name_cleanup (MenuPanel *menu) |
| |
◆ WINDOW_1_Y
◆ WINDOW_2_Y
◆ WINDOW_2_HEIGHT
◆ ROWS
◆ KEYBOARD_ROW_HEIGHT
| #define KEYBOARD_ROW_HEIGHT 17 |
◆ FILEMENU_C9_OFFSET
◆ KEYBOARD_COL_WIDTH
◆ filemenu_update_change_layout()
| void filemenu_update_change_layout |
( |
s32 | windowIdx, |
|
|
s32 * | flags, |
|
|
s32 * | posX, |
|
|
s32 * | posY, |
|
|
s32 * | posZ, |
|
|
f32 * | scaleX, |
|
|
f32 * | scaleY, |
|
|
f32 * | rotX, |
|
|
f32 * | rotY, |
|
|
f32 * | rotZ, |
|
|
s32 * | darkening, |
|
|
s32 * | opacity ) |
◆ filemenu_draw_contents_file_create_header()
Definition at line 93 of file filemenu_createfile.c.
98 {
99#if VERSION_PAL
104
107 yOffset = 41;
108
110 xOffset =
temp_s2 + 6 + i * 11;
112 if (i == 0) {
114 } else {
116 }
117 }
118
122 } else {
124 }
125 yOffset = 45;
128 }
129#else
132
135 xOffset = 41;
136
139 if (i == 0) {
141 } else {
143 }
144 }
145
148
151 }
154 }
155#endif
156}
@ FILE_MESSAGE_ENTER_A_FILE_NAME
u8 * filemenu_get_menu_message(s32 idx)
void hud_element_draw_without_clipping(s32 id)
void hud_element_draw_next(s32 id)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
◆ msg_get_print_char_width()
| s32 msg_get_print_char_width |
( |
s32 | character, |
|
|
s32 | charset, |
|
|
s32 | variation, |
|
|
f32 | msgScale, |
|
|
s32 | overrideCharWidth, |
|
|
u8 | flags ) |
Definition at line 1580 of file msg.c.
1580 {
1582
1587 return 0;
1588 }
1589
1590#if VERSION_IQUE
1592 charWidth = 16.0;
1593 return charWidth * msgScale;
1594 }
1595#endif
1596
1599 }
else if (
flags != 0) {
1601
1602 if (charWidthTable != nullptr
1607 } else {
1609 }
1610 } else {
1612 }
1613
1616 }
1620 }
1622 return charWidth * msgScale * 0.5;
1623 }
1625 return 0;
1626 }
1627 return charWidth * msgScale;
1628}
MessageCharData * rasters
@ MSG_CHAR_READ_HALF_SPACE
@ MSG_CHAR_READ_FULL_SPACE
MessageCharset * MsgCharsets[5]
#define CHAR_SPACE_MULTIPLIER
Referenced by filemenu_draw_contents_choose_name().
◆ filemenu_draw_contents_choose_name()
Definition at line 172 of file filemenu_createfile.c.
177 {
183 s32 xOffset, yOffset;
190
197 }
198
199 for (row = 0; row <
menu->numRows; row++) {
200 for (layer = 0; layer < 2; layer++) {
201 yOffset = 15 * row + 4;
202 if (layer == 0) {
209 } else {
215 baseY + yOffset + 16);
216 }
217
218 for (col = 0; col <
menu->numCols; col++) {
221 if (col ==
menu->col && row ==
menu->row) {
223 color = 0;
224 } else {
226 color = 10;
227 }
230#if VERSION_PAL
232#endif
234 if (
c >= 0xA2 &&
c < 0xF0) {
239 }
240 }
242 xOffset--;
243 }
245#if VERSION_PAL
246 xOffset += 16;
247#else
248 xOffset += 5;
249#endif
250 }
252#if VERSION_PAL
254 xOffset += 4;
255 } else {
256 xOffset += 8;
257 }
258#else
259 xOffset += 8;
260#endif
261 }
263 yOffset--;
265 }
266#if VERSION_PAL
268#else
270#endif
271 }
272 }
273 }
274 }
276 } else {
277 for (col = 0; col <
menu->numCols; col++) {
278 for (row = 0; row <
menu->numRows; row++) {
281 if (col ==
menu->col && row ==
menu->row) {
283 color = 0;
284 } else {
286 color = 10;
287 }
290#if VERSION_PAL
292#endif
294 if (
c >= 0xA2 &&
c < 0xF0) {
299 }
300 }
302 xOffset--;
303 }
306 }
308#if VERSION_PAL
310 xOffset += 4;
311 } else {
312 xOffset += 8;
313 }
314#else
315 xOffset += 8;
316#endif
317 }
319 yOffset--;
321 }
322#if VERSION_PAL
324#else
326#endif
327 }
328 }
329 }
330 }
331
335 }
340 }
341}
@ WINDOW_FLAG_INITIAL_ANIMATION
@ WIN_FILES_INPUT_KEYBOARD
void filemenu_set_cursor_goal_pos(s32 windowIndex, s32 posX, s32 posY)
◆ filemenu_choose_name_init()
Definition at line 344 of file filemenu_createfile.c.
344 {
346
350 }
351
354 }
355
357
360
361 menu->initialized =
true;
362}
void setup_pause_menu_tab(MenuWindowBP *bpArray, s32 arraySize)
HudElemID hud_element_create(HudScript *anim)
Creates a new HUD element and returns its ID.
void hud_element_set_flags(s32 id, s32 flags)
Turns on the given flags.
@ HUD_ELEMENT_FLAG_MANUAL_RENDER
◆ filemenu_choose_name_handle_input()
Definition at line 364 of file filemenu_createfile.c.
364 {
367
368#if VERSION_PAL
371#endif
372
377 }
382 }
383 if (
menu->row ==
menu->numRows - 1) {
384 if (
menu->col > 10) {
386 }
else if (
menu->col == 8 ||
menu->col == 9) {
388 }
389#if !VERSION_PAL
390 else if (
menu->col == 5 ||
menu->col == 6) {
392 }
393#endif
394 }
395 }
396
401 }
406 }
407 }
408
409 if (
menu->row ==
menu->numRows - 1) {
410 if (
menu->col > 10) {
412 }
else if (
menu->col == 8 ||
menu->col == 9) {
414 }
415#if !VERSION_PAL
416 else if (
menu->col == 5 ||
menu->col == 6) {
418 }
419#endif
420 }
421
425 }
426
428 switch (
menu->selected) {
433 }
438 }
439 break;
446 }
447 break;
454 }
455 break;
457
458 break;
462 break;
463 }
464 }
467 break;
468 }
469
476
477#if VERSION_PAL
479#else
481#endif
485
489 return;
490 default:
494 } else {
499 }
500 }
501 break;
502 }
503
508 ) {
510 }
511 }
512
532 return;
533 }
534
537 }
538 }
539
543 break;
544 }
545 }
548 return;
549
550 }
551
554
559
560#if VERSION_PAL
562#else
564#endif
568
572 }
573}
@ SOUND_CREATE_FILE_MOVE_CURSOR
@ SOUND_CREATE_FILE_BACKSPACE
@ SOUND_CREATE_FILE_CHANGE_CHARSET
@ SOUND_CREATE_FILE_SET_CHARACTER
@ MSG_CHAR_MENU_USE_CHARSET_B
@ MSG_CHAR_MENU_USE_CHARSET_A
@ WIN_FILES_OPTION_CENTER
@ WIN_FILES_CONFIRM_PROMPT
@ WIN_FILES_CONFIRM_OPTIONS
void filemenu_set_selected(MenuPanel *menu, s32 col, s32 row)
void sfx_play_sound(s32 soundID)
#define MENU_PANEL_SELECTED_GRID_DATA(panel)
◆ filemenu_choose_name_update()
◆ filemenu_choose_name_cleanup()
Definition at line 578 of file filemenu_createfile.c.
578 {
580
581 for (i = 0; i < 3; i++) {
583 }
584}
void hud_element_free(s32 id)
◆ HES_FilenameCaret
Definition at line 45 of file menu_hud_scripts.c.
45 {
55};
#define hs_SetCustomSize(arg0, arg1)
@ HUD_ELEMENT_FLAG_INVISIBLE
#define hs_SetCI(time, name)
#define hs_ClearFlags(arg0)
#define hs_SetFlags(arg0)
◆ HES_FilenameSpace
◆ HES_134F60_135120
◆ filemenu_createfile_hudScripts
◆ D_8024A18C
◆ filemenu_createfile_windowBPs
Initial value:= {
{
.unk_01 = 0,
.pos = { .x = 68, .y = (10) },
.width = 164,
.height = 46,
.tab = nullptr,
.extraFlags = 0,
},
{
.unk_01 = 0,
.pos = { .x = 12, .y = (67) },
.width = 262,
.height = (113) ,
.tab = nullptr,
.extraFlags = 0,
},
}
Definition at line 29 of file filemenu_createfile.c.
29 {
30 {
32 .unk_01 = 0,
34 .width = 164,
35 .height = 46,
38 .tab = nullptr,
41 .extraFlags = 0,
43 },
44 {
46 .unk_01 = 0,
48 .width = 262,
52 .tab = nullptr,
55 .extraFlags = 0,
57 },
58};
Referenced by filemenu_choose_name_init().
◆ filemenu_createfile_menuBP
Initial value:= {
.initialized = false,
.col = 0,
.row = 0,
.selected = 0,
.state = 0,
.numCols = 13,
.numRows = (6) ,
.numPages = 0,
}
Definition at line 60 of file filemenu_createfile.c.
60 {
61 .initialized = false,
62 .col = 0,
63 .row = 0,
64 .selected = 0,
65 .state = 0,
66 .numCols = 13,
68 .numPages = 0,
74};