NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_controller_information.hpp
1#pragma once
3#include <dol/bases/d_lytbase.hpp>
4
9public:
10
12 enum ANIM_e {
15 HIT2BTN
16 };
17
19 enum STATE_e {
24 END
25 };
26
29 virtual int create();
30 virtual int doDelete();
31 virtual int execute();
32 virtual int draw();
33
36 bool createLayout();
37
38 void setVisible(bool visible) { mVisible = visible; }
39 void setState(STATE_e state) { mState = state; }
40
41private:
44 bool mVisible;
46};
An extension of fBase_c with base kind and name strings.
Definition d_base.hpp:9
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 state that controls what the layout should be doing.
@ WAITING_FOR_END
Play the button animation while waiting for user input.
@ SHOW_IN
Play the button pop-out animation.
@ END
The button has been pressed, play the sound effect and the shrinking button animation.
@ SHOW_LOOP
Wait 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.
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.