mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-09 12:37:22 -04:00
Implement & link m_gba_ovl
This commit is contained in:
+14
-2
@@ -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);
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user