mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Work on d_jdpreviwer (#3067)
This commit is contained in:
@@ -187,4 +187,8 @@ inline void JORReleaseMContext(JORMContext* mctx) {
|
||||
JORServer::getInstance()->releaseMCTX(mctx);
|
||||
}
|
||||
|
||||
inline void JOR_ENABLEEVENTCALLBACKLIST(bool enable) {
|
||||
JORServer::getInstance()->enableEventCallbackList(enable);
|
||||
}
|
||||
|
||||
#endif /* JORSERVER_H */
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
#ifndef JSYSTEM_JSTUDIO_JSTUDIO_JPREVIEWER_CONTROL_H
|
||||
#define JSYSTEM_JSTUDIO_JSTUDIO_JPREVIEWER_CONTROL_H
|
||||
|
||||
#include "JSystem/JHostIO/JORReflexible.h"
|
||||
#include "JSystem/JHostIO/JORServer.h"
|
||||
#include "JSystem/JStudio/JStudioToolLibrary/interface.h"
|
||||
#include "JSystem/JStudio/JStudioToolLibrary/visual.h"
|
||||
|
||||
class J2DOrthoGraph;
|
||||
class JUTFont;
|
||||
class JUTGamePad;
|
||||
|
||||
namespace JStudio {
|
||||
class TControl;
|
||||
class TParse;
|
||||
};
|
||||
|
||||
namespace JStudioPreviewer {
|
||||
class TControl : public JORReflexible, public JOREventCallbackListNode {
|
||||
public:
|
||||
TControl();
|
||||
virtual ~TControl() {}
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
void interface_setPad(const JUTGamePad* pPad) {
|
||||
mPad.setPad(pPad);
|
||||
}
|
||||
|
||||
void show_setRender(J2DOrthoGraph* pGraph, JUTFont* pFont) {
|
||||
field_0x128.setRender(pGraph);
|
||||
field_0x12c.setFont(pFont);
|
||||
}
|
||||
|
||||
void jstudio_setControl(JStudio::TControl*);
|
||||
void jstudio_setParse(JStudio::TParse*);
|
||||
|
||||
virtual void update();
|
||||
virtual void show2D();
|
||||
virtual void show3D(Mtx mtx);
|
||||
virtual int JORAct(u32, const char*);
|
||||
|
||||
private:
|
||||
/* 0x018 */ u8 field_0x18[0xf8 - 0x18];
|
||||
/* 0x0F8 */ JStudioToolLibrary::TPad mPad;
|
||||
/* 0x018 */ u8 field_0xfc[0x128 - 0xfc];
|
||||
/* 0x128 */ JStudioToolLibrary::TDrawPrimitive2D field_0x128;
|
||||
/* 0x12C */ JStudioToolLibrary::TPrint field_0x12c;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -2,6 +2,7 @@
|
||||
#define D_JPREVIEWER_H
|
||||
|
||||
#include <dolphin/mtx.h>
|
||||
#include "JSystem/JStudio/JStudio_JPreviewer/control.h"
|
||||
|
||||
namespace JStudio {
|
||||
class TControl;
|
||||
@@ -13,7 +14,7 @@ class JUTGamePad;
|
||||
class JUTResFont;
|
||||
class tParse_;
|
||||
|
||||
class dJprevCtrl_c /* : public JStudioPreviewer::TControl */ {
|
||||
class dJprevCtrl_c : public JStudioPreviewer::TControl {
|
||||
public:
|
||||
|
||||
};
|
||||
@@ -21,9 +22,13 @@ public:
|
||||
class dJprev_c {
|
||||
public:
|
||||
dJprev_c(JStudio::TControl*, const JUTGamePad&);
|
||||
~dJprev_c();
|
||||
|
||||
void show3D(Mtx);
|
||||
void show2D();
|
||||
void create(JStudio::TControl* pControl, const JUTGamePad& pad);
|
||||
void remove();
|
||||
void update();
|
||||
|
||||
static dJprev_c* get() { return m_myObj; }
|
||||
|
||||
@@ -34,7 +39,7 @@ public:
|
||||
/* 0x08 */ JKRExpHeap* mHeap;
|
||||
/* 0x0C */ tParse_* m_parse;
|
||||
/* 0x10 */ dJprevCtrl_c* mControl;
|
||||
/* 0x14 */ u8 field_0x14;
|
||||
/* 0x14 */ s8 mHIOId;
|
||||
};
|
||||
|
||||
#endif /* D_JPREVIEWER_H */
|
||||
|
||||
Reference in New Issue
Block a user