2021-09-22 13:17:46 +02:00
|
|
|
#ifndef _FILEMENU_H_
|
|
|
|
#define _FILEMENU_H_
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2023-05-01 09:40:57 +02:00
|
|
|
enum {
|
|
|
|
PAGE_0,
|
|
|
|
PAGE_1,
|
|
|
|
#if !VERSION_PAL
|
|
|
|
PAGE_2,
|
|
|
|
#endif
|
|
|
|
PAGE_3,
|
|
|
|
PAGE_4,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern MenuPanel* filemenu_menus[];
|
2021-09-22 13:17:46 +02:00
|
|
|
|
2022-10-16 00:24:05 +02:00
|
|
|
extern s32 filemenu_iterFileIdx;
|
|
|
|
extern s32 filemenu_pressedButtons;
|
|
|
|
extern s32 filemenu_cursorHudElem;
|
|
|
|
extern s32 filemenu_heldButtons;
|
|
|
|
extern s8 filemenu_filename_pos;
|
|
|
|
extern s32 filemenu_loadedFileIdx;
|
|
|
|
extern s8 filemenu_currentMenu;
|
|
|
|
extern s32 filemenu_8024C09C;
|
|
|
|
extern s32 filemenu_cursorHudElemID[1];
|
|
|
|
extern s32 filemenu_8024C0A4[3];
|
|
|
|
extern s32 filemenu_hudElemIDs[20];
|
|
|
|
extern s32 filemenu_createfile_hudElems[4];
|
|
|
|
extern u8 filemenu_filename[8];
|
2022-03-10 10:55:38 +01:00
|
|
|
|
2023-05-01 09:40:57 +02:00
|
|
|
#if VERSION_PAL
|
|
|
|
extern s32 D_802517D0[1];
|
|
|
|
extern s32 D_802517D4[1];
|
|
|
|
extern u16 D_802517E0[2][0x400];
|
|
|
|
extern u8 D_filemenu_8025095C[4];
|
|
|
|
#endif
|
|
|
|
|
2022-03-10 10:55:38 +01:00
|
|
|
#define WINDOW_UPDATE_FUNC(name) void (name)( \
|
|
|
|
s32 windowIdx,\
|
|
|
|
s32* flags,\
|
|
|
|
s32* posX, s32* posY, s32* posZ,\
|
|
|
|
f32* scaleX, f32* scaleY,\
|
|
|
|
f32* rotX, f32* rotY, f32* rotZ,\
|
|
|
|
s32* darkening,\
|
|
|
|
s32* opacity);\
|
|
|
|
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_name_input);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_options_left);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_options_right);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_options_bottom);
|
2022-03-30 14:07:13 +02:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_with_rotation);
|
2022-03-10 10:55:38 +01:00
|
|
|
|
2022-03-30 14:07:13 +02:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_name_input);
|
2022-03-10 10:55:38 +01:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_options_left);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_options_right);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_title);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_options_bottom);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_with_rotation);
|
|
|
|
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_select_file);
|
2022-03-30 14:07:13 +02:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_deselect_file);
|
2022-03-10 10:55:38 +01:00
|
|
|
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_name_confirm);
|
2022-03-30 14:07:13 +02:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_name_confirm);
|
2022-03-10 10:55:38 +01:00
|
|
|
|
|
|
|
WINDOW_UPDATE_FUNC(main_menu_window_update);
|
2021-09-22 13:17:46 +02:00
|
|
|
|
2022-09-28 19:09:11 +02:00
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_title);
|
|
|
|
|
2023-05-01 09:40:57 +02:00
|
|
|
#if VERSION_PAL
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_selectlanguage_80248018);
|
|
|
|
#endif
|
|
|
|
|
2022-03-22 22:27:22 +01:00
|
|
|
void filemenu_draw_file_name(u8*, s32, s32, s32, s32, s32, s32, s32);
|
2022-09-28 19:09:11 +02:00
|
|
|
void filemenu_draw_contents_title(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_stereo(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_mono(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_option_left(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_option_center(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_option_right(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_0_info(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_0_title(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_1_info(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_1_title(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_2_info(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_2_title(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_3_info(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_3_title(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_yesno_draw_options_contents(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_yesno_draw_prompt_contents(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_info_draw_message_contents(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_file_create_header(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_choose_name(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_cursor(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
void filemenu_draw_contents_copy_arrow(MenuPanel*, s32, s32, s32, s32, s32, s32);
|
|
|
|
|
|
|
|
void filemenu_main_init(MenuPanel*);
|
|
|
|
void filemenu_main_handle_input(MenuPanel*);
|
|
|
|
void filemenu_main_update(MenuPanel*);
|
|
|
|
void filemenu_main_cleanup(MenuPanel*);
|
|
|
|
void filemenu_yesno_init(MenuPanel*);
|
|
|
|
void filemenu_yesno_handle_input(MenuPanel*);
|
|
|
|
void filemenu_yesno_update(MenuPanel*);
|
|
|
|
void filemenu_yesno_cleanup(MenuPanel*);
|
|
|
|
void filemenu_info_init(MenuPanel*);
|
|
|
|
void filemenu_info_handle_input(MenuPanel*);
|
|
|
|
void filemenu_info_update(MenuPanel*);
|
|
|
|
void filemenu_info_cleanup(MenuPanel*);
|
|
|
|
void filemenu_choose_name_init(MenuPanel*);
|
|
|
|
void filemenu_choose_name_handle_input(MenuPanel*);
|
|
|
|
void filemenu_choose_name_update(MenuPanel*);
|
|
|
|
void filemenu_choose_name_cleanup(MenuPanel*);
|
|
|
|
|
|
|
|
void filemenu_draw_message(u8*, s32, s32, s32, s32, u32);
|
2023-06-29 14:06:23 +02:00
|
|
|
void filemenu_draw_rect(s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileIdx, s32 uls, s32 ult, s32 dsdx, s32 dtdy);
|
2022-09-28 19:09:11 +02:00
|
|
|
|
|
|
|
extern WindowStyleCustom filemenu_windowStyles[];
|
|
|
|
extern u8 filemenu_createfile_gridData[];
|
2022-03-22 22:27:22 +01:00
|
|
|
|
2021-09-22 13:17:46 +02:00
|
|
|
#endif
|