mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
aa08abd4da
* Dump PAL filemenu section Co-authored-by: Unnunu <serge_zorkin@mail.ru> * Clean up numbers * Use more constants * Find more constants * Clean up a bit * eth cleanup * Clean up * Fix brace style * rename new file & funcs --------- Co-authored-by: Unnunu <serge_zorkin@mail.ru> Co-authored-by: Ethan Roseman <ethteck@gmail.com>
122 lines
4.7 KiB
C
122 lines
4.7 KiB
C
#ifndef _FILEMENU_H_
|
|
#define _FILEMENU_H_
|
|
|
|
#include "common.h"
|
|
|
|
enum {
|
|
PAGE_0,
|
|
PAGE_1,
|
|
#if !VERSION_PAL
|
|
PAGE_2,
|
|
#endif
|
|
PAGE_3,
|
|
PAGE_4,
|
|
};
|
|
|
|
extern MenuPanel* filemenu_menus[];
|
|
|
|
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];
|
|
|
|
#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
|
|
|
|
#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);
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_with_rotation);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_name_input);
|
|
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);
|
|
WINDOW_UPDATE_FUNC(filemenu_update_deselect_file);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_name_confirm);
|
|
WINDOW_UPDATE_FUNC(filemenu_update_hidden_name_confirm);
|
|
|
|
WINDOW_UPDATE_FUNC(main_menu_window_update);
|
|
|
|
WINDOW_UPDATE_FUNC(filemenu_update_show_title);
|
|
|
|
#if VERSION_PAL
|
|
WINDOW_UPDATE_FUNC(filemenu_selectlanguage_80248018);
|
|
#endif
|
|
|
|
void filemenu_draw_file_name(u8*, s32, s32, s32, s32, s32, s32, s32);
|
|
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);
|
|
void filemenu_draw_rect(s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileDescriptor, s32 uls, s32 ult, s32 dsdx, s32 dtdy);
|
|
|
|
extern WindowStyleCustom filemenu_windowStyles[];
|
|
extern u8 filemenu_createfile_gridData[];
|
|
|
|
#endif
|