NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_fader.hpp
1#pragma once
2
3#include <game/mLib/m_fader.hpp>
4#include <lib/egg/core/eggHeap.h>
5
6class dFader_c : public mFader_c {
7public:
8 enum fader_type_e {
9 FADER_FADE,
10 FADER_CIRCLE_MIDDLE,
11 FADER_BOWSER,
12 FADER_DRIP_DOWN,
13 FADER_MARIO,
14 FADER_CIRCLE_TARGET
15 };
16
17 static void draw();
18 static void calc();
19
20 static void createFader(EGG::Heap *heap);
21 static void setFader(fader_type_e type);
22
23 /// @brief Starts a fade in with the @ref mFader_c::mFader "current fader".
24 /// @param duration The duration of the fade in.
25 /// @return Whether the fade in was started.
26 static bool startFadeIn(u16 duration);
27
28 /// @brief Starts a fade out with the @ref mFader_c::mFader "current fader".
29 /// @param duration The duration of the fade out.
30 /// @return Whether the fade out was started.
31 static bool startFadeOut(u16 duration);
32
33 static mFaderBase_c *mFader;
34};
static bool startFadeOut(u16 duration)
Starts a fade out with the current fader.
static bool startFadeIn(u16 duration)
Starts a fade in with the current fader.
Base fader implementation.
Fader management class.
Definition m_fader.hpp:7
static void draw()
Draws the current fader.
Definition m_fader.cpp:8