Push work on m_design_ovl

This commit is contained in:
Cuyler36
2025-05-01 09:15:52 -04:00
parent 0188f5cf50
commit 27f480c12c
6 changed files with 627 additions and 5 deletions
+71
View File
@@ -3,11 +3,82 @@
#include "types.h"
#include "m_mask_cat.h"
#include "m_submenu_ovl.h"
#include "m_design_ovl_h.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*mDE_OVL_PROC)(mDE_Ovl_c* design_ovl);
struct design_ovl_s {
u16* palette_p;
//u8 pad[32-4]; // 32-byte align pad
mNW_original_tex_c texture;
mNW_original_tex_c work_texture;
mNW_original_tex_c undo_texture;
rgb8_t rgb8_pal[mNW_PALETTE_COUNT];
int _650;
int _654;
int _658;
int _65C;
f32 _660;
f32 _664;
int cursor_x;
int cursor_y;
int _670;
int _674;
int _678;
int _67C;
int _680;
int _684;
int _688;
int _68C;
int _690;
int _694;
u8 _698;
u8 _699;
u8 _69A;
u8 palette_no;
u8 image_no;
u8 _69D;
u8 _69E;
u8 _69F;
u8 _6A0;
u8 _6A1;
u8 _6A2;
u8 _6A3;
u8 _6A4;
u8 _6A5;
u8 _6A6;
u8 _6A7;
u8 main_mode_act;
//u8 pad[3];
mDE_OVL_PROC act_proc;
mDE_OVL_PROC main_mode_proc;
u8 _6B4;
u8 _6B5;
u8 _6B6;
u8 _6B7;
u32 _6B8;
u32 _6BC;
u32 _6C0;
u32 _6C4;
f32 move_pR;
u8 _6CC;
u8 _6CD;
u8 _6CE;
u8 _6CF;
u32 _6D0;
u32 _6D4;
u8 _6D8;
u8 _6D9;
u8 _6DA;
u8 _6DB;
int _6DC;
};
extern void mDE_maskcat_init(MaskCat_c* mask_cat);
extern void mDE_design_ovl_construct(Submenu* submenu);
+16
View File
@@ -0,0 +1,16 @@
#ifndef M_DESIGN_OVL_H_H
#define M_DESIGN_OVL_H_H
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct design_ovl_s mDE_Ovl_c;
#ifdef __cplusplus
}
#endif
#endif /* M_DESIGN_OVL_H_H */
+4
View File
@@ -55,6 +55,10 @@ typedef struct rgb_t {
uint r, g, b;
} rgb_t;
typedef struct rgb8_t {
u8 r, g, b;
} rgb8_t;
typedef struct {
xyz_t position;
s_xyz angle;
+2 -1
View File
@@ -39,6 +39,7 @@
#include "m_cpwarning_ovl_h.h"
#include "m_mscore_ovl_h.h"
#include "m_calendar_ovl_h.h"
#include "m_design_ovl_h.h"
#ifdef __cplusplus
extern "C" {
@@ -201,7 +202,7 @@ struct submenu_overlay_s {
/* 0x9D4 */ mBN_Ovl_c* bank_ovl;
/* 0x9D8 */ mNW_Ovl_c* needlework_ovl;
/* 0x9DC */ mCO_Ovl_c* cporiginal_ovl;
/* 0x9E0 */ void* _9E0;
/* 0x9E0 */ mDE_Ovl_c* design_ovl;
/* 0x9E4 */ mGB_Ovl_c* gba_ovl;
/* 0x9E8 */ mDI_Ovl_c* diary_ovl;
/* 0x9EC */ mCD_Ovl_c* calendar_ovl;