NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_CourseSelectGuide.hpp>
The world map HUD.
Definition at line 14 of file d_CourseSelectGuide.hpp.
Classes | |
struct | GlobalData_t |
Public Member Functions | |
dCourseSelectGuide_c () | |
Constructs a new course select guide instance. | |
virtual | ~dCourseSelectGuide_c () |
Destroys the instance. | |
Static Public Attributes | |
static dCourseSelectGuide_c * | m_instance |
The instance of the view. | |
static const int | c_DISP_WAIT_TIMER = 20 |
The speed at which the opacity of the remaining lives counter is changed. | |
Private Types | |
enum | T_PANE_e { T_worldNum_00 , T_cSelect_00 , T_cSelect_pic , T_lifeNumber_00 , T_lifeNumber_01 , T_lifeNumber_02 , T_lifeNumber_03 , T_guideViewLS_00 , T_guideViewL_01 , T_COUNT } |
The text boxes used in the layout. More... | |
enum | N_PANE_e { N_IconPos1P_00 , N_IconPos2P_00 , N_IconPos3P_00 , N_IconPos4P_00 , N_mapArrow_00 , N_proportionL_00 , N_proportionR_00 , N_proportionC_00 , N_guideViewC_00 , N_guideViewR_01 , N_left_00 , N_COUNT } |
The null panes used in the layout. More... | |
enum | P_PANE_e { P_cC_1_00 , P_cC_2_00 , P_cC_3_00 , P_cC_1s_00 , P_cC_2s_00 , P_cC_3s_00 , P_flagSkull_00 , P_marioFace_00 , P_luigiFace_00 , P_BkinoFace_00 , P_YkinoFace_00 , P_bgShadow_00 , P_COUNT } |
The picture panes used in the layout. More... | |
enum | ANIM_NAME_e { inInfo , loopInfo , outInfo , inMapArrow , loopArrow , outMapArrow , inShadow , outShadow , ANIM_NAME_COUNT } |
The animation names used in the layout. More... | |
enum | ANIM_e { ANIM_IN_UNDER , ANIM_IN_ZANKI , ANIM_IN_COURSE_INFO , ANIM_LOOP_UNDER , ANIM_LOOP_ZANKI , ANIM_LOOP_COURSE_INFO , ANIM_OUT_UNDER , ANIM_OUT_ZANKI , ANIM_OUT_COURSE_INFO , ANIM_IN_ARROW_R , ANIM_IN_ARROW_L , ANIM_IN_ARROW_U , ANIM_IN_ARROW_D , ANIM_LOOP_ARROW_R , ANIM_LOOP_ARROW_L , ANIM_LOOP_ARROW_U , ANIM_LOOP_ARROW_D , ANIM_OUT_ARROW_R , ANIM_OUT_ARROW_L , ANIM_OUT_ARROW_U , ANIM_OUT_ARROW_D , ANIM_IN_SHADOW , ANIM_OUT_SHADOW , ANIM_COUNT } |
The animations used for the layout. More... | |
enum | T_FIXED_PANE_e { T_guideViewC_00 , T_guideViewR_00 , T_world_00 , T_FIXED_COUNT } |
The fixed panes used in the layout. More... | |
Private Member Functions | |
bool | createLayout () |
Creates the layout and initializes the class state. | |
void | ScissorMaskSet () |
Clips the layout to the maximum allowed size. | |
void | RestNumberDisp () |
Fills in the text boxes showing the remaining lives count. | |
void | RestAlphaDisp () |
Sets the opacity of the remaining lives count. | |
void | execute () |
The main loop of the view. | |
void | draw () |
Draws the view. | |
void | doDelete () |
Prepares the view for deletion. | |
void | CollectionCoinSet () |
Updates the star coin icons. | |
void | PlayerIconSet () |
Updates the player icons in the remaining lives info to the active player. | |
void | CourseSelectSet (dWmLib::PointType_e type) |
Updates the textbox that displays the current course. | |
bool | IsDirectionAllowed (int dir) |
Returns whether the arrow for direction dir should be shown. | |
void | UpdateGuide (short courseNo, dWmLib::PointType_e type) |
Updates the course-related parts of the course info guide. | |
void | ControllerConnectCheck () |
Checks for attached controller extensions and updates the button hints with the correct icon. | |
Private Attributes | |
u32 | mUnk |
LytBase_c | mLayout |
The layout for the window. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrWorldCourse |
The state manager for the course info (world / course name). | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrGuide |
The state manager for the button legends and remaining lives display. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrUp |
The state manager for the up arrow for the map view. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrDown |
The state manager for the down arrow for the map view. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrLeft |
The state manager for the left arrow for the map view. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrRight |
The state manager for the right arrow for the map view. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrShadow |
The state manager for darkening the course view. [Unused?]. | |
sFStateMgr_c< dCourseSelectGuide_c, sStateMethodUsr_FI_c > | mStateMgrScrollGuide |
The state manager for the button legends during the map view. | |
nw4r::lyt::Pane * | mpRootPane |
The root pane of the view. | |
nw4r::lyt::Pane * | mpNullPanes [N_COUNT] |
The null panes of the view. | |
LytTextBox_c * | mpTextBoxes [T_COUNT] |
The textboxes of the view. | |
nw4r::lyt::Picture * | mpPicturePanes [P_COUNT] |
The picture panes of the view. | |
Remocon::EXTENSION_TYPE_e | mExtension |
The currently attached Wii remote extension. | |
int | mWorldNo |
The current world number. | |
int | mCourseNo |
The current course number. Set to a negative value if it's a course with an icon. | |
int | mCourseType |
The current course type. | |
int | mRest [PLAYER_COUNT] |
The remaining lives for each player. | |
int | mWorldCourseOnStageTimer |
Cooldown for showing the course info. | |
int | mGuideOnStageTimer |
Cooldown for showing the remaining guide HUD. | |
int | mRestAlpha |
int | mRestAlphaTarget |
The target transparency for mRestAlpha. | |
u8 | mMoveDirection |
A bitmask describing which arrows should be shown in the free move view. | |
bool | mInitialized |
Whether the layout has been fully initialized. | |
bool | mShowCourseInfo |
Set this to true to show the course info. | |
bool | mHideCourseInfo |
Set this to true to hide the course info. | |
bool | mIsCourseInfoOutAnime |
Automatically set to false after the course info has been hidden. | |
bool | mNoAnimCourseInfoIn |
Whether the course info should simply appear instead of sliding in. | |
bool | mBeginGuide |
Set this to true to show the remaining guide. | |
bool | mEndGuide |
Set this to true to hide the remaining guide. | |
bool | mGuideRelated |
bool | mNoHUDAppearAnim |
Whether the HUD should be shown without an animation. | |
bool | mEnableAllArrows |
Whether to show all map view arrows. Gets reset after 1 frame. | |
bool | mDisableArrows |
Whether to stop updating the map view arrows. | |
bool | mMapView |
Whether the HUD should process the map view elements. | |
bool | mEnabled |
Controls whether the HUD is updated every frame. | |
bool | mHideHUD |
Set this to true to hide the entire HUD. | |
bool | mShowShadow |
Set this to true to darken the world map view. | |
bool | mHideShadow |
Set this to true to remove the darkening of the world map view. | |
bool | mInMapView |
Whether the HUD is in the map view mode. | |
bool | mShowScrollGuide |
Set this to true to show the button legends for the map view mode. | |
bool | mEndScrollGuide |
Set this to true to hide the button legends for the map view mode. | |
bool | mScrollGuideRelated |
bool | mCourseInfoAnim |
Whether the course information is in an animation. | |
bool | mUpAnim |
Whether the up arrow is in an animation. | |
bool | mDownAnim |
Whether the down arrow is in an animation. | |
bool | mLeftAnim |
Whether the left arrow is in an animation. | |
bool | mRightAnim |
Whether the right arrow is in an animation. | |
bool | mShowRestNumber |
Whether to update the remaining lives count. | |
|
private |
The text boxes used in the layout.
Definition at line 18 of file d_CourseSelectGuide.hpp.
|
private |
The null panes used in the layout.
Definition at line 33 of file d_CourseSelectGuide.hpp.
|
private |
The picture panes used in the layout.
Definition at line 50 of file d_CourseSelectGuide.hpp.
|
private |
The animation names used in the layout.
Definition at line 68 of file d_CourseSelectGuide.hpp.
|
private |
The animations used for the layout.
Definition at line 82 of file d_CourseSelectGuide.hpp.
|
private |
The fixed panes used in the layout.
Definition at line 96 of file d_CourseSelectGuide.hpp.
dCourseSelectGuide_c::dCourseSelectGuide_c | ( | ) |
Constructs a new course select guide instance.
Definition at line 20 of file d_CourseSelectGuide.cpp.
|
virtual |
Destroys the instance.
Definition at line 68 of file d_CourseSelectGuide.cpp.
|
private |
Creates the layout and initializes the class state.
Definition at line 72 of file d_CourseSelectGuide.cpp.
|
private |
Clips the layout to the maximum allowed size.
Definition at line 244 of file d_CourseSelectGuide.cpp.
|
private |
Fills in the text boxes showing the remaining lives count.
Definition at line 283 of file d_CourseSelectGuide.cpp.
|
private |
Sets the opacity of the remaining lives count.
Definition at line 300 of file d_CourseSelectGuide.cpp.
|
private |
The main loop of the view.
Definition at line 323 of file d_CourseSelectGuide.cpp.
|
private |
Draws the view.
Definition at line 362 of file d_CourseSelectGuide.cpp.
|
private |
Prepares the view for deletion.
Definition at line 368 of file d_CourseSelectGuide.cpp.
|
private |
Updates the star coin icons.
Definition at line 459 of file d_CourseSelectGuide.cpp.
|
private |
Updates the player icons in the remaining lives info to the active player.
Definition at line 255 of file d_CourseSelectGuide.cpp.
|
private |
Updates the textbox that displays the current course.
type | The point type. |
[Why not use COURSE_TYPE_KINOKO_START here?]
Definition at line 372 of file d_CourseSelectGuide.cpp.
|
private |
Returns whether the arrow for direction dir
should be shown.
Definition at line 487 of file d_CourseSelectGuide.cpp.
|
private |
Updates the course-related parts of the course info guide.
courseNo | The course number. |
type | The point type. |
The updated elements include the course name, the star coins collected and the checkpoint status.
Definition at line 956 of file d_CourseSelectGuide.cpp.
|
private |
Checks for attached controller extensions and updates the button hints with the correct icon.
The updated elements include the "View Map" and "Items" button legends.
Definition at line 979 of file d_CourseSelectGuide.cpp.
|
private |
Definition at line 152 of file d_CourseSelectGuide.hpp.
|
private |
The layout for the window.
Definition at line 154 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the course info (world / course name).
Definition at line 157 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the button legends and remaining lives display.
Definition at line 159 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the up arrow for the map view.
Definition at line 161 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the down arrow for the map view.
Definition at line 163 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the left arrow for the map view.
Definition at line 165 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the right arrow for the map view.
Definition at line 167 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for darkening the course view. [Unused?].
Definition at line 169 of file d_CourseSelectGuide.hpp.
|
private |
The state manager for the button legends during the map view.
Definition at line 171 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 173 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 174 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 175 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 176 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 178 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 179 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 180 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 181 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 183 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 184 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 185 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 186 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 188 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 189 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 190 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 191 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 193 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 194 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 195 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 196 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 198 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 199 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 200 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 201 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 203 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 204 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 205 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 206 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 208 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 209 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 210 of file d_CourseSelectGuide.hpp.
|
staticprivate |
Definition at line 211 of file d_CourseSelectGuide.hpp.
|
private |
The root pane of the view.
Definition at line 213 of file d_CourseSelectGuide.hpp.
|
private |
The null panes of the view.
Definition at line 215 of file d_CourseSelectGuide.hpp.
|
private |
The textboxes of the view.
Definition at line 216 of file d_CourseSelectGuide.hpp.
|
private |
The picture panes of the view.
Definition at line 217 of file d_CourseSelectGuide.hpp.
|
private |
The currently attached Wii remote extension.
Definition at line 219 of file d_CourseSelectGuide.hpp.
|
private |
The current world number.
Definition at line 220 of file d_CourseSelectGuide.hpp.
|
private |
The current course number. Set to a negative value if it's a course with an icon.
Definition at line 221 of file d_CourseSelectGuide.hpp.
|
private |
The current course type.
Definition at line 222 of file d_CourseSelectGuide.hpp.
|
private |
The remaining lives for each player.
Set to -1 if the player is not present. This is stored here so that the game doesn't have to recalculate the textbox each frame.
Definition at line 230 of file d_CourseSelectGuide.hpp.
|
private |
Cooldown for showing the course info.
Definition at line 232 of file d_CourseSelectGuide.hpp.
|
private |
Cooldown for showing the remaining guide HUD.
Definition at line 233 of file d_CourseSelectGuide.hpp.
|
private |
@brief The current transparency for the player remaining lives HUD. This should be changed via mRestAlphaTarget, which will cause mRestAlpha to smoothly transition to mRestAlphaTarget. <dl class="decompnote"><dt>Decompilation Note</dt><dd>This transition effect goes unused, because even
though stepping on Peach's castle performs this transition, it happens before the remaining lives counter appears again on-screen.
Definition at line 243 of file d_CourseSelectGuide.hpp.
|
private |
The target transparency for mRestAlpha.
Definition at line 244 of file d_CourseSelectGuide.hpp.
|
private |
A bitmask describing which arrows should be shown in the free move view.
Definition at line 246 of file d_CourseSelectGuide.hpp.
|
private |
Whether the layout has been fully initialized.
Definition at line 248 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to show the course info.
Definition at line 250 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to hide the course info.
Definition at line 251 of file d_CourseSelectGuide.hpp.
|
private |
Automatically set to false
after the course info has been hidden.
Definition at line 252 of file d_CourseSelectGuide.hpp.
|
private |
Whether the course info should simply appear instead of sliding in.
Definition at line 253 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to show the remaining guide.
Definition at line 255 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to hide the remaining guide.
Definition at line 256 of file d_CourseSelectGuide.hpp.
|
private |
Definition at line 257 of file d_CourseSelectGuide.hpp.
|
private |
Whether the HUD should be shown without an animation.
Definition at line 258 of file d_CourseSelectGuide.hpp.
|
private |
Whether to show all map view arrows. Gets reset after 1 frame.
Definition at line 260 of file d_CourseSelectGuide.hpp.
|
private |
Whether to stop updating the map view arrows.
Definition at line 261 of file d_CourseSelectGuide.hpp.
|
private |
Whether the HUD should process the map view elements.
Definition at line 262 of file d_CourseSelectGuide.hpp.
|
private |
Controls whether the HUD is updated every frame.
Definition at line 264 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true to hide the entire HUD.
Definition at line 265 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to darken the world map view.
Definition at line 267 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to remove the darkening of the world map view.
Definition at line 268 of file d_CourseSelectGuide.hpp.
|
private |
Whether the HUD is in the map view mode.
Definition at line 270 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to show the button legends for the map view mode.
Definition at line 272 of file d_CourseSelectGuide.hpp.
|
private |
Set this to true
to hide the button legends for the map view mode.
Definition at line 273 of file d_CourseSelectGuide.hpp.
|
private |
Definition at line 274 of file d_CourseSelectGuide.hpp.
|
private |
Whether the course information is in an animation.
Definition at line 276 of file d_CourseSelectGuide.hpp.
|
private |
Whether the up arrow is in an animation.
Definition at line 277 of file d_CourseSelectGuide.hpp.
|
private |
Whether the down arrow is in an animation.
Definition at line 278 of file d_CourseSelectGuide.hpp.
|
private |
Whether the left arrow is in an animation.
Definition at line 279 of file d_CourseSelectGuide.hpp.
|
private |
Whether the right arrow is in an animation.
Definition at line 280 of file d_CourseSelectGuide.hpp.
|
private |
Whether to update the remaining lives count.
Definition at line 282 of file d_CourseSelectGuide.hpp.
|
static |
The instance of the view.
Definition at line 285 of file d_CourseSelectGuide.hpp.
|
static |
The speed at which the opacity of the remaining lives counter is changed.
Definition at line 288 of file d_CourseSelectGuide.hpp.