Skip to content

Commit

Permalink
d_a_title (#666)
Browse files Browse the repository at this point in the history
* d_a_title work

* daTitle_proc_c::proc_draw matching

* daTitle_proc_c::~daTitle_proc_c matching

* daTitle_proc_c::daTitle_proc_c matching

* d_a_title work

* daTitle_proc_c::set_mtx matching

* proc_execute matching

* daTitle_proc_c::model_draw matching

* daTitle_c inlines matching

* daTitle_proc_c::calc_2d_alpha matching

* Fixed mDoExt_bpkAnm::remove inline

* Updated configure.py

* d_a_title cleanup

* Updated configure.py
  • Loading branch information
DanTGL authored Jul 14, 2024
1 parent 0614e8c commit 347f996
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 26 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ def JSystemLib(lib_name, objects):
ActorRel(NonMatching, "d_a_tag_kf1"),
ActorRel(Matching, "d_a_tag_ret", extra_cflags=['-pragma "nosyminline on"']),
ActorRel(Matching, "d_a_tag_volcano"),
ActorRel(NonMatching, "d_a_title"),
ActorRel(NonMatching, "d_a_title", extra_cflags=['-pragma "nosyminline on"']),
ActorRel(NonMatching, "d_a_tn"),
ActorRel(Matching, "d_a_toge", extra_cflags=['-pragma "nosyminline on"']),
ActorRel(NonMatching, "d_a_tori_flag"),
Expand Down
40 changes: 37 additions & 3 deletions include/d/actor/d_a_title.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#ifndef D_A_TITLE_H
#define D_A_TITLE_H

#include "d/d_com_inf_game.h"
#include "d/d_drawlist.h"
#include "f_op/f_op_actor.h"

class daTitle_proc_c {
class daTitle_proc_c : public dDlst_base_c {
public:
daTitle_proc_c();
~daTitle_proc_c();
Expand All @@ -15,21 +17,53 @@ class daTitle_proc_c {
void proc_execute();
void model_draw();
void proc_draw();
BOOL draw();
inline void draw();
s32 getEnterMode() { return mEnterMode; }

static void daTitle_Kirakira_Sound_flag_on();

static bool daTitle_Kirakira_Sound_flag;
public:
/* 0x004 */ JPABaseEmitter* mpEmitter;
/* 0x008 */ JPABaseEmitter* mpEmitter2;
/* 0x00C */ cXyz m00C;
/* 0x018 */ s32 m018;
/* 0x01C */ s32 m01C;
/* 0x020 */ s32 m020;
/* 0x024 */ s32 m024;
/* 0x028 */ s32 m028;
/* 0x02C */ s32 m02C;
/* 0x030 */ s32 mEnterMode;
/* 0x034 */ u8 m034[0x038 - 0x034];
/* 0x038 */ J3DModel* mModel_ship;
/* 0x03C */ J3DModel* mModel_subtitle;
/* 0x040 */ J3DModel* mModel_kirari;
/* 0x044 */ mDoExt_bckAnm mBckShip;
/* 0x054 */ mDoExt_bpkAnm mBpkShip;
/* 0x068 */ mDoExt_btkAnm mBtkSub;
/* 0x07C */ mDoExt_btkAnm mBtkKirari;
/* 0x090 */ u8 m090;
/* 0x094 */ f32 m094;
/* 0x098 */ s32 m098;
/* 0x09C */ J2DScreen* m_Screen;
/* 0x0A0 */ J2DPane* m0A0[6];
/* 0x0B8 */ fopMsgM_pane_class pane[6];
/* 0x208 */ JKRExpHeap* m_exp_heap;
/* 0x20C */ JKRSolidHeap* m_solid_heap;
};

class daTitle_c : public fopAc_ac_c {
public:
inline ~daTitle_c();

inline s32 create();
inline BOOL draw();
inline BOOL execute();

public:
/* Place member variables here */
/* 0x290 */ request_of_phase_process_class mPhs;
/* 0x298 */ daTitle_proc_c* mpTitleProc;
/* 0x29C */ bool m29C;
};

#endif /* D_A_TITLE_H */
2 changes: 2 additions & 0 deletions include/m_Do/m_Do_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class mDoExt_bpkAnm : public mDoExt_baseAnm {

void entry(J3DModelData* i_modelData) { entry(i_modelData, getFrame()); }

int remove(J3DModelData* i_modelData) { return i_modelData->removeMatColorAnimator(mpAnm); }

private:
/* 0x08 */ J3DAnmColor* mpAnm;
/* 0x0C */ J3DMatColorAnm* field_0xc;
Expand Down
Loading

0 comments on commit 347f996

Please sign in to comment.