Skip to content

Commit 4ac9525

Browse files
committed
checkpoint
1 parent 45b0601 commit 4ac9525

File tree

5 files changed

+489
-169
lines changed

5 files changed

+489
-169
lines changed

include/d/menu/d_menu_fmap2D.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
3232
/* 801D2100 */ void setIcon2DPos(u8, f32, f32, f32, u8, bool);
3333
/* 801D241C */ void setIcon2DPos(u8, char const*, f32, f32, f32, u8, bool);
3434
/* 801D2454 */ void setIcon2DPos(u8, u8, char const*, f32, f32, f32, u8, bool);
35-
/* 801D2508 */ void isShowRegion(int);
35+
/* 801D2508 */ bool isShowRegion(int);
3636
/* 801D2658 */ f32 getMapAreaGlobalPosX();
3737
/* 801D2668 */ f32 getMapAreaGlobalPosY();
3838
/* 801D2678 */ f32 getMapAreaGlobalCenterPosX();
@@ -43,8 +43,8 @@ class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
4343
/* 801D2790 */ f32 getMapScissorAreaLY();
4444
/* 801D27E8 */ f32 getMapScissorAreaSizeX();
4545
/* 801D2860 */ f32 getMapScissorAreaSizeRealX();
46-
/* 801D2880 */ void getMapScissorAreaCenterPosX();
47-
/* 801D28D0 */ void getMapScissorAreaCenterPosY();
46+
/* 801D2880 */ f32 getMapScissorAreaCenterPosX();
47+
/* 801D28D0 */ f32 getMapScissorAreaCenterPosY();
4848
/* 801D2920 */ f32 getMapScissorAreaSizeY();
4949
/* 801D2998 */ f32 getMapScissorAreaSizeRealY();
5050
/* 801D29B8 */ void calcRenderingPos();
@@ -88,7 +88,9 @@ class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
8888
}
8989

9090
u8 isArrowDrawFlag() { return mArrowDrawFlag; }
91-
void onShowRegionFlag(int bit) { mRegionFlag |= ((1 << bit) & 0xFF); }
91+
92+
void onShowRegionFlag(int region_bit) { mRegionFlag |= ((1 << region_bit) & 0xFF); }
93+
bool isShowRegionFlag(int region_bit) { return mRegionFlag & ((1 << region_bit) & 0xFF); }
9294

9395
struct unkData {
9496
/* 0x00 */ float field_0x0;
@@ -112,7 +114,7 @@ class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
112114
/* 0x0CE0 */ dMeterHaihai_c* mpMeterHaihai;
113115
/* 0x0CE4 */ J2DAnmBase* mpBaseAnm;
114116
/* 0x0CE8 */ unkData field_0xce8[8];
115-
/* 0x0D88 */ u32 field_0xd88;
117+
/* 0x0D88 */ Stage_c* mpStages;
116118
/* 0x0D8C */ float field_0xd8c[8];
117119
/* 0x0D0C */ float field_0xdac[8];
118120
/* 0x0D0C */ float field_0xdcc[8];
@@ -133,7 +135,7 @@ class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
133135
/* 0x0F90 */ float field_0xf90;
134136
/* 0x0F94 */ float field_0xf94;
135137
/* 0x0F98 */ float field_0xf98;
136-
/* 0x0F9C */ float field_0xf9c;
138+
/* 0x0F9C */ float field_0xf9c; // Likely called mZoom
137139
/* 0x0FA0 */ float field_0xfa0;
138140
/* 0x0FA4 */ float field_0xfa4;
139141
/* 0x0FA8 */ float field_0xfa8;

include/d/menu/d_menu_map_common.h

+15-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ struct dMenuMapCommon_c {
3737
/* 0x15 */ u8 _15;
3838
};
3939

40+
struct Stage_c {
41+
// Incomplete or wrong
42+
43+
struct Stage_c_data {
44+
/* 0x00 */ char mName[8];
45+
/* 0x08 */ u8 field_0x8;
46+
/* 0x09 */ u8 field_0x9;
47+
/* 0x0C */ f32 field_0xc;
48+
/* 0x10 */ f32 field_0x10;
49+
};
50+
51+
/* 0x0 */ u32 field_0x0;
52+
/* 0x4 */ Stage_c_data field_0x4[0];
53+
};
54+
4055
/* 0x004 */ J2DPicture* mPictures[23];
4156
/* 0x060 */ J2DPicture* _60;
4257
/* 0x064 */ dSelect_cursor_c* mpDrawCursor;
@@ -56,5 +71,4 @@ struct dMenuMapCommon_c {
5671
/* 0xC90 */ u8 _c90;
5772
};
5873

59-
6074
#endif /* D_MENU_D_MENU_MAP_COMMON_H */

include/d/meter/d_meter2_info.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ class dMeter2Info_c {
228228
/* 0xB4 */ u16 mWindowAccept;
229229
/* 0xB6 */ u16 mOilGaugeBackUp;
230230
/* 0xB8 */ u8 mDirectUseItem;
231-
/* 0xB9 */ u8 mWindowStatus; // 0: normal play, 2: item wheel, 3: pause menu, 4: map, 10: pause menu submenus, 11: map in dungeon
231+
/* 0xB9 */ u8 mWindowStatus; // 0: normal play, 2: item wheel, 3: pause menu, 4: map, 10: pause
232+
// menu submenus, 11: map in dungeon
232233
/* 0xBA */ u8 unk186;
233234
/* 0xBB */ u8 mMaxCount;
234235
/* 0xBC */ u8 mNowCount;
@@ -279,6 +280,8 @@ static void dMeter2Info_setFloatingMessage(u16 pMessageID, s16 pMessageTimer, bo
279280
static void dMeter2Info_offUseButton(int pButton);
280281
bool dMeter2Info_is2DActiveTouchArea();
281282
u8 dMeter2Info_getRecieveLetterNum();
283+
bool dMeter2Info_getPixel(f32 param_0, f32 param_1, f32 param_2, f32 param_3, f32 param_4,
284+
f32 param_5, struct ResTIMG const* param_6);
282285

283286
inline void dMeter2Info_Initialize() {
284287
g_meter2_info.init();

0 commit comments

Comments
 (0)