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
#include <nw4r/ut.h>
6
7
namespace
EGG {
8
9
/// @ingroup eggcore
10
class
ColorFader :
public
Fader
{
11
public
:
12
ColorFader(
float
x,
float
y,
float
w,
float
h,
nw4r::ut::Color
color,
EStatus
initialStatus);
13
14
virtual
void
setStatus(
EStatus
status);
15
virtual
EStatus
getStatus
()
const
{
return
mStatus; }
16
virtual
bool
fadeIn
();
17
virtual
bool
fadeOut
();
18
virtual
bool
calc
();
19
virtual
void
draw
();
20
virtual
~ColorFader
() {}
21
22
void
setFrame(u16 frame);
23
void
setColor(
nw4r::ut::Color
color);
24
25
protected
:
26
enum
eFlag { SIGNAL_ON_FADE_IN, SIGNAL_ON_FADE_OUT };
27
28
EStatus
mStatus;
29
TBitFlag<u8> mFlag;
30
u16 mFrameCount;
31
u16 mFrame;
32
nw4r::ut::Color mCurrColor;
33
nw4r::ut::Rect mDims;
34
};
35
36
}
// namespace EGG
EGG::ColorFader
Definition
eggColorFader.h:10
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:15
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
Definition
ut_Color.h:10
include
lib
egg
core
eggColorFader.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2