mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-18 12:52:53 -04:00
Implement & link m_warning_ovl.c
This commit is contained in:
+15
-1
@@ -11,11 +11,22 @@
|
||||
#include "m_map_ovl_h.h"
|
||||
#include "m_bank_ovl_h.h"
|
||||
#include "m_music_ovl_h.h"
|
||||
#include "m_warning_ovl_h.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
mSM_OVL_PROC_MOVE,
|
||||
mSM_OVL_PROC_PLAY,
|
||||
mSM_OVL_PROC_WAIT,
|
||||
mSM_OVL_PROC_3,
|
||||
mSM_OVL_PROC_END,
|
||||
|
||||
mSM_OVL_PROC_NUM
|
||||
};
|
||||
|
||||
// TODO: fill this out
|
||||
typedef struct submenu_segment_s {
|
||||
u8 _00[0x54];
|
||||
@@ -98,7 +109,10 @@ struct submenu_overlay_s {
|
||||
/* 0x964 */ mSM_SETUP_VIEW_PROC setup_view_proc;
|
||||
/* 0x968 */ void* unused_func_968;
|
||||
/* 0x96C */ mSM_CHANGE_VIEW_PROC change_view_proc;
|
||||
/* 0x970 */ u8 _940[0x9B4 - 0x970];
|
||||
/* 0x970 */ u8 _970[0x9A8 - 0x970];
|
||||
/* 0x9A8 */ mWR_Ovl_c* warning_ovl;
|
||||
/* 0x9AC */ void* _9AC;
|
||||
/* 0x9B0 */ void* _9B0;
|
||||
/* 0x9B4 */ mMP_Overlay_c* map_ovl;
|
||||
/* 0x9B8 */ u8 _9B8[0x9D0 - 0x9B8];
|
||||
/* 0x9D0 */ mMU_Overlay_c* music_ovl;
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#ifndef M_WARNING_OVL_H
|
||||
#define M_WARNING_OVL_H
|
||||
|
||||
#include "types.h"
|
||||
#include "m_warning_ovl_h.h"
|
||||
#include "m_submenu_ovl.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
mWR_STATE_OUT,
|
||||
mWR_STATE_IN,
|
||||
|
||||
mWR_STATE_NUM
|
||||
};
|
||||
|
||||
struct warning_ovl_s {
|
||||
u8 selected;
|
||||
u8 state;
|
||||
f32 scale;
|
||||
};
|
||||
|
||||
extern void mWR_warning_ovl_set_proc(Submenu* submenu);
|
||||
extern void mWR_warning_ovl_init(Submenu* submenu);
|
||||
extern void mWR_warning_ovl_construct(Submenu* submenu);
|
||||
extern void mWR_warning_ovl_destruct(Submenu* submenu);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef M_WARNING_OVL_H_H
|
||||
#define M_WARNING_OVL_H_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct warning_ovl_s mWR_Ovl_c;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user