NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_controller_information.hpp
1#pragma once
2#include <game/bases/d_base.hpp>
3#include <game/bases/d_lytbase.hpp>
4
13public:
14
21
30
33 virtual int create();
34 virtual int doDelete();
35 virtual int execute();
36 virtual int draw();
37
38 void setVisible(bool visible) { mVisible = visible; }
39 void setState(STATE_e state) { mState = state; }
40
43private:
44 bool createLayout();
45
48 bool mVisible;
50};
The minimum required implementation for a base.
Definition d_base.hpp:41
Displays the controller information screen.
bool mIsCreated
If the layout has been successfully created.
STATE_e mState
Which state the base is currently in.
STATE_e
The screen's current state.
@ WAITING_FOR_END
Playing the button animation while waiting for user input.
@ SHOW_IN
Playing the button pop-out animation.
@ END
Playing the button pressed sound effect and the button shrinking animation.
@ SHOW_LOOP
Waiting for the pop-out to finish.
@ IDLE
Initial state; waiting for layout creation.
virtual int execute()
do method for the execute operation.
virtual int doDelete()
do method for the delete operation.
dControllerInformation_c()
Constructs a new base.
virtual int draw()
do method for the draw operation.
virtual int create()
do method for the create operation.
bool mVisible
If the layout should be rendered.
bool createLayout()
Loads the resources and creates the layout for the base.
LytBase_c mLayout
The layout of the base.
ANIM_e
The identifier for each animation.
@ LOOP2BTN
The button's blinking loop animation.
@ HIT2BTN
The button's hit animation.
@ IN2BTN
The button's pop-out animation.
virtual ~dControllerInformation_c()
Destroys the base.