Implement & link m_gba_ovl

This commit is contained in:
Cuyler36
2024-10-22 22:13:53 -04:00
parent bf7f1a6e73
commit 33686ce130
5 changed files with 414 additions and 3 deletions
+14 -2
View File
@@ -8,9 +8,21 @@
extern "C" {
#endif
extern void mGB_copy_image(Submenu*, mActor_name_t, mActor_name_t);
extern void mGB_draw_gba(Submenu* submenu, GRAPH* graph, f32 pos_x, f32 pos_y, f32 scale, int idx, int color_flag);
struct gba_ovl_s {
u16 mark_flg;
u16 hide_flg;
mNW_original_design_c* original_p;
u8 original_design_table_no;
};
extern int mGB_get_change_flg(void);
extern int mGB_check_hide_flg(Submenu* submenu, int idx);
extern int mGB_check_mark_flg(Submenu* submenu, int idx);
extern void mGB_copy_image(Submenu* submenu, mActor_name_t rsv_gba, mActor_name_t rsv_nw);
extern u8* mGB_get_image_name(Submenu* submenu, int idx);
extern u16* mGB_get_image_pal(Submenu* submenu, int idx);
extern u8* mGB_get_image_texture(Submenu* submenu, int idx);
extern void mGB_draw_gba(Submenu* submenu, GRAPH* graph, f32 pos_x, f32 pos_y, f32 scale, int idx, int shadow_flag);
extern void mGB_gba_ovl_construct(Submenu* submenu);
extern void mGB_gba_ovl_destruct(Submenu* submenu);
extern void mGB_gba_ovl_set_proc(Submenu* submenu);
+16
View File
@@ -0,0 +1,16 @@
#ifndef M_GBA_OVL_H_H
#define M_GBA_OVL_H_H
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct gba_ovl_s mGB_Ovl_c;
#ifdef __cplusplus
}
#endif
#endif
+2 -1
View File
@@ -34,6 +34,7 @@
#include "m_haniwa_ovl_h.h"
#include "m_mailbox_ovl_h.h"
#include "m_needlework_ovl_h.h"
#include "m_gba_ovl_h.h"
#ifdef __cplusplus
extern "C" {
@@ -197,7 +198,7 @@ struct submenu_overlay_s {
/* 0x9D8 */ mNW_Ovl_c* needlework_ovl;
/* 0x9DC */ mCO_Ovl_c* cporiginal_ovl;
/* 0x9E0 */ void* _9E0;
/* 0x9E4 */ void* _9E4;
/* 0x9E4 */ mGB_Ovl_c* gba_ovl;
/* 0x9E8 */ mDI_Ovl_c* diary_ovl;
/* 0x9EC */ void* _9EC;
/* 0x9F0 */ mPM_Ovl_c* passwordMake_ovl;