NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_wipe_mario.hpp
1#pragma once
2#include <game/mLib/m_fader_base.hpp>
3#include <game/bases/d_lytbase.hpp>
4#include <lib/nw4r/ut/color.hpp>
5
9class dWipeMario_c : public mFaderBase_c {
10public:
11
19
21 enum ANIM_e {
24 };
25
28
31 bool createLayout();
32
34 void OpenSetup();
35
39 void AnimeEndCheck();
40
42 void CloseSetup();
43
44 virtual int calc();
45 virtual void draw();
46
49 virtual void setStatus(mFaderBase_c::EStatus stat);
50
51 virtual bool fadeIn();
52 virtual bool fadeOut();
53
55
56private:
62};
A fader that animates a Mario texture in/out.
dWipeMario_c(nw4r::ut::Color, mFaderBase_c::EStatus stat)
See mFaderBase_c::mFaderBase_c.
ACTION_e
The possible actions performed in calc.
@ CLOSE_SETUP
Prepare the fade-in transition.
@ OPEN_SETUP
Prepare the fade-out transition.
@ ANIME_END_CHECK
Fade has begun, waiting for it to end.
@ IDLE
The fade has not been started.
virtual bool fadeOut()
Initiates a fade out from no-obstruction.
void CloseSetup()
Prepares the fade-in transition.
bool mIsCreated
Whether the layout for the fader has been created.
static dWipeMario_c * m_instance
The instance of the fader.
virtual int calc()
Calculates the fader at the current frame.
nw4r::lyt::Pane * mpRootPane
The root pane of the fader layout.
void AnimeEndCheck()
Checks if the fade animation has finished yet.
virtual void setStatus(mFaderBase_c::EStatus stat)
Sets the fader's status.
virtual bool fadeIn()
Initiates a fade in from pure blacked-out.
void OpenSetup()
Prepares the fade-out transition.
~dWipeMario_c()
Destroys the fader.
ANIM_e
The animations for this fader.
@ IN
Fade-in animation.
@ OUT
Fade-out animation.
LytBase_c mLyt
The layout for the fader.
virtual void draw()
Draws the fader.
ACTION_e mAction
The action to be performed in calc.
bool createLayout()
Loads the resources and creates the layout for the fader.
nw4r::lyt::Window * mpWnd[1]
The window pane containing the fader texture.
Base fader implementation.
EStatus
The fader's status.
A 32-bit RGBA color.
Definition color.hpp:8