NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_collection_coin_base.hpp
1#pragma once
2#include <game/bases/d_base.hpp>
3#include <game/bases/d_lytbase.hpp>
4#include <game/bases/d_collection_coin_date.hpp>
6
7/**
8 * @brief The pages for the Star Coins Menu.
9 * @ingroup bases
10 * @details This is the page that scrolls on the Star Coins Menu, it handles positioning
11 * the 12 level entries (dCollectionCoinDate_c) that appear for that world.
12 */
14public:
15
16 /// @brief The null panes used in the layout.
17 enum N_PANE_e {
18 N_coinDateAll_00,
19 N_coinBarPos_00,
20 N_coinBarPos_01,
21 N_coinBarPos_02,
22 N_coinBarPos_03,
23 N_coinBarPos_04,
24 N_coinBarPos_05,
25 N_coinBarPos_06,
26 N_coinBarPos_07,
27 N_coinBarPos_08,
28 N_coinBarPos_09,
29 N_coinBarPos_10,
30 N_coinBarPos_11,
31 N_COUNT
32 };
33
34 dCollectionCoinBase_c(); ///< @copydoc dBase_c::dBase_c
35 virtual ~dCollectionCoinBase_c(); ///< @copydoc dBase_c::~dBase_c
36
37 virtual int create();
38 virtual int doDelete();
39 virtual int preExecute();
40 virtual int execute();
41 virtual int draw();
42
43 /// @brief Loads the resources and creates the layout for the base.
44 /// @return Whether the creation was successful.
45 bool createLayout();
46
47 /// @brief Updates the position of the dates every frame.
48 void setDatePos();
49
51
52 LytBase_c mLayout; ///< The layout of the page.
53
54 nw4r::lyt::Pane *mpRootPane; ///< The root pane of the layout.
55 nw4r::lyt::Pane *mpNullPanes[N_COUNT]; ///< The null panes of the layout.
56
57 bool mIsCreated; ///< Whether the layout has been successfully created.
58 bool mIsVisible; ///< Whether the layout is currently visible.
59};
A 2D layout.
Definition d_lytbase.hpp:9
dBase_c()
Constructs a new base.
Definition d_base.cpp:13
bool createLayout()
Loads the resources and creates the layout for the base.
LytBase_c mLayout
The layout of the page.
N_PANE_e
The null panes used in the layout.
void setDatePos()
Updates the position of the dates every frame.
virtual int preExecute()
pre method for the execute operation.
virtual int execute()
do method for the execute operation.
virtual int create()
do method for the create operation.
virtual ~dCollectionCoinBase_c()
Destroys the base.
dCollectionCoinDate_c * mpDates[STAR_COIN_MENU_LEVEL_COUNT]
The date bases.
dCollectionCoinBase_c()
Constructs a new base.
bool mIsVisible
Whether the layout is currently visible.
virtual int draw()
do method for the draw operation.
bool mIsCreated
Whether the layout has been successfully created.
virtual int doDelete()
do method for the delete operation.
nw4r::lyt::Pane * mpRootPane
The root pane of the layout.
nw4r::lyt::Pane * mpNullPanes[N_COUNT]
The null panes of the layout.
#define STAR_COIN_MENU_LEVEL_COUNT
The maximum number of levels in the Star Coins Menu.