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 FADE,
10 CIRCLE_MIDDLE
11 };
12
13 static void draw();
14 static void calc();
15
16 static void createFader(EGG::Heap *heap);
17 static void setFader(fader_type_e type);
18
19 /// @brief Starts a fade in with the @ref mFader_c::mFader "current fader".
20 /// @param duration The duration of the fade in.
21 /// @return Whether the fade in was started.
22 static bool startFadeIn(u16 duration);
23
24 /// @brief Starts a fade out with the @ref mFader_c::mFader "current fader".
25 /// @param duration The duration of the fade out.
26 /// @return Whether the fade out was started.
27 static bool startFadeOut(u16 duration);
28
29 static mFaderBase_c *mFader;
30};
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