NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
eggColorFader.h
1
#pragma once
2
3
#include <lib/egg/core/eggBitFlag.h>
4
#include <lib/egg/core/eggFader.h>
5
6
#include <lib/nw4r/ut/Color.h>
7
#include <lib/nw4r/ut/Rect.h>
8
9
namespace
EGG {
10
11
/// @ingroup eggcore
12
class
ColorFader :
public
Fader
{
13
public
:
14
ColorFader(
float
x,
float
y,
float
w,
float
h,
nw4r::ut::Color
color,
EStatus
initialStatus);
15
16
virtual
void
setStatus(
EStatus
status);
17
virtual
EStatus
getStatus
()
const
{
return
mStatus; }
18
virtual
bool
fadeIn
();
19
virtual
bool
fadeOut
();
20
virtual
bool
calc
();
21
virtual
void
draw
();
22
virtual
~ColorFader
() {}
23
24
void
setFrame(u16 frame);
25
void
setColor(
nw4r::ut::Color
color);
26
27
protected
:
28
enum
eFlag { SIGNAL_ON_FADE_IN, SIGNAL_ON_FADE_OUT };
29
30
EStatus
mStatus;
31
TBitFlag<u8> mFlag;
32
u16 mFrameCount;
33
u16 mFrame;
34
nw4r::ut::Color mCurrColor;
35
nw4r::ut::Rect mDims;
36
};
37
38
}
// namespace EGG
EGG::ColorFader
Definition
eggColorFader.h:12
EGG::ColorFader::draw
virtual void draw()
Calculates the fader at the current frame.
Definition
eggColorFader.cpp:99
EGG::ColorFader::calc
virtual bool calc()
Initiates a fade out from no-obstruction.
Definition
eggColorFader.cpp:61
EGG::ColorFader::fadeOut
virtual bool fadeOut()
Initiates a fade in from pure blacked-out.
Definition
eggColorFader.cpp:51
EGG::ColorFader::getStatus
virtual EStatus getStatus() const
Sets the fader's status.
Definition
eggColorFader.h:17
EGG::ColorFader::fadeIn
virtual bool fadeIn()
Gets the fader's status.
Definition
eggColorFader.cpp:41
EGG::Fader
Interface for a fader.
Definition
eggFader.h:8
EGG::Fader::EStatus
EStatus
The fader's status.
Definition
eggFader.h:11
nw4r::ut::Color
A 32-bit RGBA color.
Definition
Color.h:8
include
lib
egg
core
eggColorFader.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2