mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
implement some of MxTransitionManager (#143)
* implement some of MxTransitionManager start working on MxTransitionManager::StartTransition add TransitionType enum implement/match MxTransitionManager::GetDDrawSurfaceFromVideoManager implement/match global function SetAppCursor * remove offset comment from mxomni.h * remove misc offset comments from mxtransitionmanager.h * address feedback * merge m_unk20-24 into pad
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
#define MXTRANSITIONMANAGER_H
|
||||
|
||||
#include "mxcore.h"
|
||||
#include "mxvideopresenter.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
class MxVideoPresenter;
|
||||
|
||||
// 0x100d7ea0
|
||||
// VTABLE 0x100d7ea0
|
||||
class MxTransitionManager : public MxCore
|
||||
{
|
||||
public:
|
||||
@@ -15,6 +16,42 @@ public:
|
||||
__declspec(dllexport) void SetWaitIndicator(MxVideoPresenter *videoPresenter);
|
||||
|
||||
virtual MxResult Tickle(); // vtable+0x8
|
||||
|
||||
// OFFSET: LEGO1 0x1004b950
|
||||
inline virtual const char *ClassName() const override // vtable+0x0c
|
||||
{
|
||||
return "MxTransitionManager";
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1004b960
|
||||
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
||||
{
|
||||
return !strcmp(name, MxTransitionManager::ClassName()) || MxCore::IsA(name);
|
||||
}
|
||||
|
||||
virtual MxResult GetDDrawSurfaceFromVideoManager(); // vtable+0x14
|
||||
|
||||
enum TransitionType {
|
||||
NOT_TRANSITIONING,
|
||||
NO_ANIMATION,
|
||||
DISSOLVE,
|
||||
PIXELATION,
|
||||
SCREEN_WIPE,
|
||||
WINDOWS,
|
||||
BROKEN // Unknown what this is supposed to be, it locks the game up
|
||||
};
|
||||
|
||||
MxResult StartTransition(TransitionType p_animationType, MxS32 p_speed, undefined p_unk, MxBool p_playMusicInAnim);
|
||||
|
||||
private:
|
||||
undefined m_pad00[0x20];
|
||||
undefined m_pad20[0x04];
|
||||
TransitionType m_transitionType;
|
||||
LPDIRECTDRAWSURFACE m_ddSurface;
|
||||
MxU16 m_animationTimer;
|
||||
undefined m_pad36[0x8c2];
|
||||
MxULong m_systemTime;
|
||||
MxS32 m_animationSpeed;
|
||||
};
|
||||
|
||||
#endif // MXTRANSITIONMANAGER_H
|
||||
|
||||
Reference in New Issue
Block a user