mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-04 11:19:58 -04:00
43 lines
891 B
C++
43 lines
891 B
C++
#ifndef JUTFADER_H
|
|
#define JUTFADER_H
|
|
|
|
#include "JSystem/JGeometry.h"
|
|
#include "JSystem/JUtility/TColor.h"
|
|
|
|
/**
|
|
* @ingroup jsystem-jutility
|
|
*
|
|
*/
|
|
class JUTFader {
|
|
public:
|
|
enum EStatus {
|
|
None,
|
|
Wait,
|
|
FadeIn,
|
|
FadeOut,
|
|
};
|
|
|
|
JUTFader(int, int, int, int, JUtility::TColor);
|
|
void advance();
|
|
void control();
|
|
void setStatus(JUTFader::EStatus, int);
|
|
|
|
virtual ~JUTFader();
|
|
virtual bool startFadeIn(int);
|
|
virtual bool startFadeOut(int);
|
|
virtual void draw();
|
|
|
|
s32 getStatus() const { return mStatus; }
|
|
void setColor(JUtility::TColor color) { mColor.set(color); }
|
|
|
|
/* 0x04 */ s32 mStatus;
|
|
/* 0x08 */ u16 mDuration;
|
|
/* 0x0A */ u16 mTimer;
|
|
/* 0x0C */ JUtility::TColor mColor;
|
|
/* 0x10 */ JGeometry::TBox2<f32> mBox;
|
|
/* 0x20 */ int mStatusTimer;
|
|
/* 0x24 */ u32 mNextStatus;
|
|
};
|
|
|
|
#endif /* JUTFADER_H */
|