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()
void filemenu_draw_contents_file_create_header |
( |
MenuPanel * | menu, |
|
|
s32 | baseX, |
|
|
s32 | baseY, |
|
|
s32 | width, |
|
|
s32 | height, |
|
|
s32 | opacity, |
|
|
s32 | darkening ) |
Definition at line 93 of file filemenu_createfile.c.
98 {
99#if VERSION_PAL
101 s32 yOffset;
102 s32 xOffset;
103 s32 i;
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
130 s32 xOffset;
131 s32 yOffset;
132 s32 i;
133
136 xOffset = 41;
137
140 if (i == 0) {
142 } else {
144 }
145 }
146
149
152 }
155 }
156#endif
157}
@ 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 1578 of file msg.c.
1578 {
1580
1585 return 0;
1586 }
1587
1588#if VERSION_IQUE
1590 charWidth = 16.0;
1591 return charWidth * msgScale;
1592 }
1593#endif
1594
1597 }
else if (
flags != 0) {
1599
1600 if (charWidthTable !=
NULL
1605 } else {
1607 }
1608 } else {
1610 }
1611
1614 }
1618 }
1620 return charWidth * msgScale * 0.5;
1621 }
1623 return 0;
1624 }
1625 return charWidth * msgScale;
1626}
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()
void filemenu_draw_contents_choose_name |
( |
MenuPanel * | menu, |
|
|
s32 | baseX, |
|
|
s32 | baseY, |
|
|
s32 | width, |
|
|
s32 | height, |
|
|
s32 | opacity, |
|
|
s32 | darkening ) |
Definition at line 173 of file filemenu_createfile.c.
178 {
183 s32 row, col;
184 s32 xOffset, yOffset;
186 s32 layer;
188 s32 color;
191
198 }
199
200 for (row = 0; row <
menu->numRows; row++) {
201 for (layer = 0; layer < 2; layer++) {
202 yOffset = 15 * row + 4;
203 if (layer == 0) {
210 } else {
216 baseY + yOffset + 16);
217 }
218
219 for (col = 0; col <
menu->numCols; col++) {
222 if (col ==
menu->col && row ==
menu->row) {
224 color = 0;
225 } else {
227 color = 10;
228 }
231#if VERSION_PAL
233#endif
235 if (
c >= 0xA2 &&
c < 0xF0) {
240 }
241 }
243 xOffset--;
244 }
246#if VERSION_PAL
247 xOffset += 16;
248#else
249 xOffset += 5;
250#endif
251 }
253#if VERSION_PAL
255 xOffset += 4;
256 } else {
257 xOffset += 8;
258 }
259#else
260 xOffset += 8;
261#endif
262 }
264 yOffset--;
266 }
267#if VERSION_PAL
269#else
271#endif
272 }
273 }
274 }
275 }
277 } else {
278 for (col = 0; col <
menu->numCols; col++) {
279 for (row = 0; row <
menu->numRows; row++) {
282 if (col ==
menu->col && row ==
menu->row) {
284 color = 0;
285 } else {
287 color = 10;
288 }
291#if VERSION_PAL
293#endif
295 if (
c >= 0xA2 &&
c < 0xF0) {
300 }
301 }
303 xOffset--;
304 }
307 }
309#if VERSION_PAL
311 xOffset += 4;
312 } else {
313 xOffset += 8;
314 }
315#else
316 xOffset += 8;
317#endif
318 }
320 yOffset--;
322 }
323#if VERSION_PAL
325#else
327#endif
328 }
329 }
330 }
331 }
332
336 }
341 }
342}
@ 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 345 of file filemenu_createfile.c.
345 {
346 s32 width;
347 s32 i;
348
352 }
353
356 }
357
359
362
364}
void setup_pause_menu_tab(MenuWindowBP *bpArray, s32 arraySize)
s32 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.
◆ filemenu_choose_name_handle_input()
Definition at line 366 of file filemenu_createfile.c.
366 {
368 s32 i;
369
370#if VERSION_PAL
373#endif
374
379 }
384 }
385 if (
menu->row ==
menu->numRows - 1) {
386 if (
menu->col > 10) {
388 }
else if (
menu->col == 8 ||
menu->col == 9) {
390 }
391#if !VERSION_PAL
392 else if (
menu->col == 5 ||
menu->col == 6) {
394 }
395#endif
396 }
397 }
398
403 }
408 }
409 }
410
411 if (
menu->row ==
menu->numRows - 1) {
412 if (
menu->col > 10) {
414 }
else if (
menu->col == 8 ||
menu->col == 9) {
416 }
417#if !VERSION_PAL
418 else if (
menu->col == 5 ||
menu->col == 6) {
420 }
421#endif
422 }
423
427 }
428
430 switch (
menu->selected) {
435 }
440 }
441 break;
448 }
449 break;
456 }
457 break;
459
460 break;
464 break;
465 }
466 }
469 break;
470 }
471
478
479#if VERSION_PAL
481#else
483#endif
487
491 return;
492 default:
496 } else {
501 }
502 }
503 break;
504 }
505
510 ) {
512 }
513 }
514
534 return;
535 }
536
539 }
540 }
541
545 break;
546 }
547 }
550 return;
551
552 }
553
556
561
562#if VERSION_PAL
564#else
566#endif
570
574 }
575}
@ 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 580 of file filemenu_createfile.c.
580 {
581 s32 i;
582
583 for (i = 0; i < 3; i++) {
585 }
586}
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_200000
#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,
.extraFlags = 0,
},
{
.unk_01 = 0,
.pos = { .x = 12, .y = (67) },
.width = 262,
.height = (113) ,
.extraFlags = 0,
},
}
Definition at line 29 of file filemenu_createfile.c.
29 {
30 {
32 .unk_01 = 0,
34 .width = 164,
35 .height = 46,
41 .extraFlags = 0,
43 },
44 {
46 .unk_01 = 0,
48 .width = 262,
55 .extraFlags = 0,
57 },
58};
Referenced by filemenu_choose_name_init().
◆ filemenu_createfile_menuBP
Initial value:= {
.col = 0,
.row = 0,
.selected = 0,
.state = 0,
.numCols = 13,
.numRows = (6) ,
.numPages = 0,
}
Definition at line 60 of file filemenu_createfile.c.
60 {
62 .col = 0,
63 .row = 0,
64 .selected = 0,
65 .state = 0,
66 .numCols = 13,
68 .numPages = 0,
74};