diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2023-06-27 05:26:55 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-27 05:26:55 +0300 |
| commit | bb588caf38eec670ec22fc89e40e7fe551befb54 (patch) | |
| tree | 899814556c6c6dbd98d39591492501e1cb94753d /include | |
| parent | 22059e57b780ebb537c7d73b926a1f258a21cc3f (diff) | |
| parent | 7af48a00789a0cc94f375fee1bb8171dacc640d3 (diff) | |
Merge pull request #352 from Jcw87/d_menu_collect
d_menu_collect
Diffstat (limited to 'include')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DAnmLoader.h | 2 | ||||
| -rw-r--r-- | include/d/com/d_com_inf_game.h | 4 | ||||
| -rw-r--r-- | include/d/d_select_cursor.h | 2 | ||||
| -rw-r--r-- | include/d/menu/d_menu_collect.h | 19 | ||||
| -rw-r--r-- | include/d/menu/d_menu_insect.h | 2 | ||||
| -rw-r--r-- | include/d/meter/d_meter2_info.h | 8 | ||||
| -rw-r--r-- | include/d/save/d_save.h | 2 | ||||
| -rw-r--r-- | include/m_Do/m_Do_graphic.h | 1 | ||||
| -rw-r--r-- | include/m_Do/m_Do_mtx.h | 4 |
9 files changed, 32 insertions, 12 deletions
diff --git a/include/JSystem/J2DGraph/J2DAnmLoader.h b/include/JSystem/J2DGraph/J2DAnmLoader.h index 19b8642558..5b1257b925 100644 --- a/include/JSystem/J2DGraph/J2DAnmLoader.h +++ b/include/JSystem/J2DGraph/J2DAnmLoader.h @@ -5,7 +5,7 @@ #include "dolphin/types.h" struct J2DAnmLoaderDataBase { - /* 80308A6C */ static void* load(void const*); + /* 80308A6C */ static J2DAnmBase* load(void const*); }; class J2DAnmLoader { diff --git a/include/d/com/d_com_inf_game.h b/include/d/com/d_com_inf_game.h index dce98cbf78..ae2994b76c 100644 --- a/include/d/com/d_com_inf_game.h +++ b/include/d/com/d_com_inf_game.h @@ -1702,6 +1702,10 @@ inline void dComIfGs_setOptCalibrateDist(u16 i_calibrateDist) { g_dComIfG_gameInfo.info.getPlayer().getConfig().setCalibrateDist(i_calibrateDist); } +inline u16 dComIfGs_getFishNum(u8 param_0) { + return g_dComIfG_gameInfo.info.getPlayer().getFishingInfo().getFishCount(param_0); +} + void dComIfGp_setSelectItem(int index); s32 dComIfGp_offHeapLockFlag(int flag); void dComIfGp_createSubExpHeap2D(); diff --git a/include/d/d_select_cursor.h b/include/d/d_select_cursor.h index 8d08fe368b..698156c485 100644 --- a/include/d/d_select_cursor.h +++ b/include/d/d_select_cursor.h @@ -58,6 +58,8 @@ public: void onPlayAnime(int i_flag) { field_0xb4 |= (1 << i_flag); } void offPlayAnime(int i_flag) { field_0xb4 &= ~(1 << i_flag); } + void onPlayAllAnime() { field_0xb4 = 0xff; } + void offPlayAllAnime() { field_0xb4 = 0; } private: /* 0x04 */ J2DScreen* mpScreen; diff --git a/include/d/menu/d_menu_collect.h b/include/d/menu/d_menu_collect.h index 26ca21fb31..d5599adbb5 100644 --- a/include/d/menu/d_menu_collect.h +++ b/include/d/menu/d_menu_collect.h @@ -20,6 +20,7 @@ class dSelect_cursor_c; class dMenu_Collect2D_c; class dMenu_Collect2DTop_c : public dDlst_base_c { public: + dMenu_Collect2DTop_c(dMenu_Collect2D_c* param_0) { mpCollect2D = param_0; } /* 801B77A4 */ virtual void draw(); /* 801B7EB8 */ virtual ~dMenu_Collect2DTop_c(); @@ -32,9 +33,9 @@ public: /* 801AFEA4 */ void _create(); /* 801B0100 */ void _delete(); /* 801B0570 */ void initialize(); - /* 801B05A8 */ void isFishIconVisible(); - /* 801B061C */ void isSkillIconVisible(); - /* 801B071C */ void isInsectIconVisible(); + /* 801B05A8 */ bool isFishIconVisible(); + /* 801B061C */ bool isSkillIconVisible(); + /* 801B071C */ bool isInsectIconVisible(); /* 801B074C */ void screenSet(); /* 801B1C3C */ void animationSet(); /* 801B1CE0 */ void btkAnimeLoop0(J2DAnmTextureSRTKey*); @@ -105,6 +106,8 @@ public: /* 801B7F00 */ virtual void draw(); /* 801AFE34 */ virtual ~dMenu_Collect2D_c(); + u8 getCursorX() { return mCursorX; } + u8 getCursorY() { return mCursorY; } u8 getSubWindowOpenCheck() { return mSubWindowOpenCheck; } private: @@ -311,12 +314,12 @@ public: /* 801B6FB0 */ void animeEntry(); /* 801B7014 */ void createMaskModel(); /* 801B71C4 */ void createMirrorModel(); - /* 801B7434 */ void getCrystalNum(); - /* 801B749C */ void getMirrorNum(); + /* 801B7434 */ int getCrystalNum(); + /* 801B749C */ int getMirrorNum(); /* 801B7504 */ void getMaskMdlVisible(); - /* 801B75E8 */ static void setupItem3D(f32 (*)[4]); + /* 801B75E8 */ static void setupItem3D(Mtx); /* 801B7660 */ void toItem3Dpos(f32, f32, f32, cXyz*); - /* 801B774C */ void calcViewMtx(f32 (*)[4]); + /* 801B774C */ static void calcViewMtx(Mtx); /* 801B6538 */ virtual ~dMenu_Collect3D_c(); @@ -331,7 +334,7 @@ private: /* 0x018 */ J3DModel* mpModel; /* 0x01C */ mDoExt_bckAnm* field_0x1c; /* 0x020 */ mDoExt_brkAnm* field_0x20; - /* 0x024 */ u8 field_0x24[4]; + /* 0x024 */ u32 field_0x24; /* 0x028 */ dKy_tevstr_c field_0x28; /* 0x3B0 */ cXyz field_0x3b0; /* 0x3BC */ csXyz field_0x3bc; diff --git a/include/d/menu/d_menu_insect.h b/include/d/menu/d_menu_insect.h index 5ae137e84c..e394a8a4f2 100644 --- a/include/d/menu/d_menu_insect.h +++ b/include/d/menu/d_menu_insect.h @@ -35,7 +35,7 @@ public: /* 801D9644 */ void screenSetBase(); /* 801D98F0 */ void screenSetExplain(); /* 801D9BD0 */ void screenSetDoIcon(); - /* 801D9D4C */ void getGetInsectNum(); + /* 801D9D4C */ static u8 getGetInsectNum(); /* 801D9DCC */ void getInsectItemID(int, int); /* 801D9DE4 */ void isGetInsect(int, int); /* 801D9E20 */ void isGiveInsect(int, int); diff --git a/include/d/meter/d_meter2_info.h b/include/d/meter/d_meter2_info.h index 78ad8a4cc1..2b1a57c796 100644 --- a/include/d/meter/d_meter2_info.h +++ b/include/d/meter/d_meter2_info.h @@ -151,6 +151,10 @@ public: u8 getItemExplainWindowStatus() { return mItemExplainWindowStatus; } void resetDirectUseItem() { mDirectUseItem = 0; } u16 getFloatingFlowID() { return mFloatingFlowID; } + void setCollectCursorPosXY(u8 x, u8 y) { + mCollectCursorPosX = x; + mCollectCursorPosY = y; + } public: /* 0x04 */ u8 unk4[4]; @@ -550,6 +554,10 @@ inline u16 dMeter2Info_getFloatingFlowID() { return g_meter2_info.getFloatingFlowID(); } +inline void dMeter2Info_setCollectCursorPosXY(u8 x, u8 y) { + g_meter2_info.setCollectCursorPosXY(x, y); +} + const char* dMeter2Info_getNumberTextureName(int pIndex); void dMeter2Info_recieveLetter(); u8 dMeter2Info_getNewLetterNum(); diff --git a/include/d/save/d_save.h b/include/d/save/d_save.h index f5934842ce..dc3880cf18 100644 --- a/include/d/save/d_save.h +++ b/include/d/save/d_save.h @@ -678,6 +678,7 @@ class dSv_fishing_info_c { public: void init(); void addFishCount(u8 i_fishIndex); + u16 getFishCount(u8 i_fishIndex) { return mFishCount[i_fishIndex]; } private: /* 0x00 */ u16 mFishCount[16]; @@ -768,6 +769,7 @@ public: dSv_player_get_item_c& getGetItem() { return mGetItem; } dSv_player_config_c& getConfig() { return mConfig; } dSv_letter_info_c& getLetterInfo() { return mLetterInfo; } + dSv_fishing_info_c& getFishingInfo() { return mFishingInfo; } dSv_player_field_last_stay_info_c& getPlayerFieldLastStayInfo() { return mPlayerFieldLastStayInfo; } diff --git a/include/m_Do/m_Do_graphic.h b/include/m_Do/m_Do_graphic.h index 9fbb547ad7..1c24974dc5 100644 --- a/include/m_Do/m_Do_graphic.h +++ b/include/m_Do/m_Do_graphic.h @@ -73,6 +73,7 @@ public: static f32 getMinXF() { return 0.0f; } static f32 getMaxYF() { return 448.0f; } static f32 getMaxXF() { return 608.0f; } + static f32 getAspect() { return 1.3571428f; } static int getMinY() { return 0; } static int getMinX() { return 0; } static int getMaxY() { return 448; } diff --git a/include/m_Do/m_Do_mtx.h b/include/m_Do/m_Do_mtx.h index 510056d203..c849395597 100644 --- a/include/m_Do/m_Do_mtx.h +++ b/include/m_Do/m_Do_mtx.h @@ -19,8 +19,8 @@ void mDoMtx_XrotM(Mtx, s16); void mDoMtx_YrotM(Mtx, s16); void mDoMtx_ZrotM(Mtx, s16); void mDoMtx_MtxToRot(CMtxP, csXyz*); -void mDoMtx_lookAt(f32 (*param_0)[4], Vec const* param_1, Vec const* param_2, s16 param_3); -void mDoMtx_lookAt(f32 (*param_0)[4], Vec const* param_1, Vec const* param_2, Vec const* param_3, +void mDoMtx_lookAt(Mtx param_0, Vec const* param_1, Vec const* param_2, s16 param_3); +void mDoMtx_lookAt(Mtx param_0, Vec const* param_1, Vec const* param_2, Vec const* param_3, s16 param_4); void mDoMtx_concatProjView(f32 const (*param_0)[4], f32 const (*param_1)[4], f32 (*param_2)[4]); void mDoMtx_ZrotM(Mtx mtx, s16 z); |
