mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
Implement & link m_notice_ovl
This commit is contained in:
@@ -21,6 +21,7 @@ extern void mBGMPsComp_make_ps_co_quiet(u16 stop_type, s16 frames);
|
||||
extern void mBGMPsComp_volume_talk_start();
|
||||
extern void mBGMPsComp_volume_talk_end();
|
||||
extern void mBGMForce_inform_end();
|
||||
extern void mBGMPsComp_pause(int pause_mode);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
#ifndef M_NOTICE_OVL_H
|
||||
#define M_NOTICE_OVL_H
|
||||
|
||||
#include "types.h"
|
||||
#include "m_notice_ovl_h.h"
|
||||
#include "m_submenu_ovl.h"
|
||||
#include "m_notice.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mNT_MAX_WIDTH 192
|
||||
#define mNT_MAX_LINES 6
|
||||
|
||||
enum {
|
||||
mNT_PLAY_PAGE_READ,
|
||||
mNT_PLAY_PAGE_MOVE,
|
||||
mNT_PLAY_PAGE_TO_WRITE,
|
||||
mNT_PLAY_PAGE_TO_READ,
|
||||
|
||||
mNT_PLAY_PAGE_NUM
|
||||
};
|
||||
|
||||
enum {
|
||||
mNT_LINE_CHECK_OK,
|
||||
mNT_LINE_CHECK_NEWLINE,
|
||||
mNT_LINE_CHECK_OVERLINE,
|
||||
mNT_LINE_CHECK_OVERSTRING,
|
||||
|
||||
mNT_LINE_CHECK_NUM
|
||||
};
|
||||
|
||||
struct notice_ovl_s {
|
||||
u8 mode;
|
||||
u8 stick_area;
|
||||
u8 page_center;
|
||||
u8 page_count;
|
||||
u8 now_page;
|
||||
u8 disp_page;
|
||||
u8 move_time;
|
||||
mNtc_board_post_c post;
|
||||
f32 control_position;
|
||||
};
|
||||
|
||||
extern void mNT_notice_ovl_set_proc(Submenu* submenu);
|
||||
extern void mNT_notice_ovl_construct(Submenu* submenu);
|
||||
extern void mNT_notice_ovl_destruct(Submenu* submenu);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef M_NOTICE_OVL_H_H
|
||||
#define M_NOTICE_OVL_H_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct notice_ovl_s mNT_Ovl_c;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "m_haniwaPortrait_ovl_h.h"
|
||||
#include "m_timeIn_ovl_h.h"
|
||||
#include "m_repay_ovl_h.h"
|
||||
#include "m_notice_ovl_h.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -137,7 +138,8 @@ struct submenu_overlay_s {
|
||||
/* 0x9AC */ mRP_Ovl_c* repay_ovl;
|
||||
/* 0x9B0 */ void* _9B0;
|
||||
/* 0x9B4 */ mMP_Overlay_c* map_ovl;
|
||||
/* 0x9B8 */ u8 _9B8[0x9D0 - 0x9B8];
|
||||
/* 0x9B8 */ mNT_Ovl_c* notice_ovl;
|
||||
/* 0x9BC */ u8 _9BC[0x9D0 - 0x9BC];
|
||||
/* 0x9D0 */ mMU_Overlay_c* music_ovl;
|
||||
/* 0x9D4 */ mBN_Overlay_c* bank_ovl;
|
||||
/* 0x9D8 */ void* _9D8;
|
||||
|
||||
Reference in New Issue
Block a user