NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_wipe_dokan.hpp
1#pragma once
2#include <dol/mLib/m_fader_base.hpp>
3#include <dol/bases/d_lytbase.hpp>
4#include <lib/nw4r/ut/color.hpp>
5
11class dWipeDokan_c : public mFaderBase_c {
12public:
13
15 enum ACTION_e {
19 IDLE
20 };
21
23 enum ANIM_e {
27 IN_UP
28 };
29
32
35 bool createLayout();
36
38 void OpenSetup();
39
43 void AnimeEndCheck();
44
48 bool MuKiDecision();
49
51 void CloseSetup();
52
53 virtual int calc();
54 virtual void draw();
55
58 virtual void setStatus(mFaderBase_c::EStatus stat);
59
60 virtual bool fadeIn();
61 virtual bool fadeOut();
62
64
65private:
71};
A fader that animates a wavy texture across the screen.
void OpenSetup()
Prepares the fade-out transition.
void CloseSetup()
Prepares the fade-in transition.
virtual bool fadeIn()
Initiates a fade in from pure blacked-out.
ANIM_e
The animations for this fader.
@ IN_DOWN
Downward fade-in.
@ IN_UP
Upward fade-in.
@ OUT_DOWN
Downward fade-out.
@ OUT_UP
Upward fade-out.
ACTION_e mAction
The action to be performed in calc.
LytBase_c mLyt
The layout for the fader.
bool mIsCreated
Whether the layout for the fader has been created.
virtual bool fadeOut()
Initiates a fade out from no-obstruction.
~dWipeDokan_c()
Destroys the fader.
virtual void setStatus(mFaderBase_c::EStatus stat)
Sets the fader's status.
void AnimeEndCheck()
Checks if the fade animation has finished yet.
ACTION_e
The possible actions performed in calc.
@ OPEN_SETUP
Prepare the fade-out transition.
@ CLOSE_SETUP
Prepare the fade-in transition.
@ ANIME_END_CHECK
Fade has begun, waiting for it to end.
@ IDLE
The fade has not been started.
nw4r::lyt::Picture * mpPic[1]
The picture pane containing the fader texture.
bool MuKiDecision()
Returns whether the wipe should go upwards or downwards.
virtual int calc()
Calculates the fader at the current frame.
static dWipeDokan_c * m_instance
The instance of the fader.
nw4r::lyt::Pane * mpRootPane
The root pane of the fader layout.
virtual void draw()
Draws the fader.
bool createLayout()
Loads the resources and creates the layout for the fader.
Base fader implementation.
EStatus
The fader's status.
A 32-bit RGBA color.
Definition color.hpp:8