New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
CommonWindowMgr.h
Go to the documentation of this file.
1#pragma once
2
3#include <layout/CommonWindow.h>
4
5#include <container/seadSafeArray.h>
6#include <heap/seadDisposer.h>
7#include <layer/aglRenderInfo.h>
8
10{
11 // createInstance() Address: 0x024BC444
12 // deleteInstance() Address: Deleted
13 // sInstance Address: 0x101D15E8
14 // SingletonDisposer_::~SingletonDisposer_() Address: 0x024BC874
15 // SingletonDisposer_::sStaticDisposer Address: 0x101D15EC
16 // SingletonDisposer_::vtbl Address: 0x100B7014
18
19public:
28
29public:
30 // Address: 0x024BC3C4
32
33 // Address: 0x024BC4C4
34 void create();
35
36 // Address: 0x024BC540
37 void execute();
38
39 // Address: 0x024BC590
40 void draw(const agl::lyr::RenderInfo& render_info) const;
41
42 // Address: 0x024BC5A4
43 void drawDRC(const agl::lyr::RenderInfo& render_info) const; // Only draws if mCommonWindow.mIsSystemDRC == false
44 // Address: 0x024BC5C4
45 void drawDRC_System(const agl::lyr::RenderInfo& render_info) const; // Only draws if mCommonWindow.mIsSystemDRC == true
46
47 void open(
48 CommonWindow::Type type,
49 SysController::Id controller_id = SysController::cId_CafeDRC_SinglePlayer,
50 CommonWindow::Type msg_text_type = CommonWindow::cDefaultMsgTextType
51 )
52 {
53 mCommonWindow.mRequestOpen = true;
54 mCommonWindow.mType = type;
55 mCommonWindow.mMsgTextType = msg_text_type;
56 mCommonWindow.mIsSystemDRC = false;
57 mCommonWindow.cursorResetDecideTrig();
58
59 mIsActive = true;
60 mCurrentControllerId = controller_id;
61 }
62
63 void setHideBackButton(bool hide)
64 {
65 mCommonWindow.mHideBackButton = hide;
66 }
67
68 void setSystemDRC(bool enable)
69 {
70 mCommonWindow.mIsSystemDRC = enable;
71 }
72
73 void close()
74 {
75 mCommonWindow.mRequestClose = true;
76 }
77
78 bool isOpen() const
79 {
80 return mCommonWindow.mRequestOpen;
81 }
82
83 bool isVisible() const
84 {
85 return mCommonWindow.mIsVisible;
86 }
87
88 bool isTransitionAnime() const
89 {
90 return mCommonWindow.mIsTransitionAnime;
91 }
92
93 bool isFadeOut() const
94 {
95 return mCommonWindow.mIsFadeOut;
96 }
97
98 // Address: 0x024BC5E4
99 PadTrigStatus processPadTrig_TwoButtons(bool enable_back_button); // i.e., Window has two UI buttons
100 // Address: 0x024BC7D4
101 PadTrigStatus processPadTrig_OneButton(); // i.e., Window has one UI button
102
104 {
105 return mCommonWindow.cursorIsOnLeftButton();
106 }
107
109 {
110 return mCommonWindow.cursorIsOnRightButton();
111 }
112
114 {
115 mCommonWindow.cursorTriggerDecide();
116 }
117
119 {
120 return mCommonWindow.cursorIsNoPadInput();
121 }
122
123 void setFreezePostDecide(bool freeze)
124 {
125 mCommonWindow.mFreezePostDecide = freeze;
126 }
127
129 {
130 return mCommonWindow.mIsDoneOutQuickSaveAnime;
131 }
132
133private:
141};
142static_assert(sizeof(CommonWindowMgr) == 0x22B8);
Definition CommonWindowMgr.h:10
bool isDoneOutQuickSaveAnime() const
Definition CommonWindowMgr.h:128
bool cursorIsOnLeftButton() const
Definition CommonWindowMgr.h:103
bool isVisible() const
Definition CommonWindowMgr.h:83
void draw(const agl::lyr::RenderInfo &render_info) const
void setSystemDRC(bool enable)
Definition CommonWindowMgr.h:68
bool cursorIsNoPadInput() const
Definition CommonWindowMgr.h:118
PadTrigStatus processPadTrig_TwoButtons(bool enable_back_button)
bool isTransitionAnime() const
Definition CommonWindowMgr.h:88
bool isOpen() const
Definition CommonWindowMgr.h:78
void close()
Definition CommonWindowMgr.h:73
void setHideBackButton(bool hide)
Definition CommonWindowMgr.h:63
void open(CommonWindow::Type type, SysController::Id controller_id=SysController::cId_CafeDRC_SinglePlayer, CommonWindow::Type msg_text_type=CommonWindow::cDefaultMsgTextType)
Definition CommonWindowMgr.h:47
PadTrigStatus processPadTrig_OneButton()
void cursorTriggerDecide()
Definition CommonWindowMgr.h:113
bool cursorIsOnRightButton() const
Definition CommonWindowMgr.h:108
SysController::Id mCurrentControllerId
Definition CommonWindowMgr.h:139
bool mIsActive
Definition CommonWindowMgr.h:140
sead::SafeArray< SysControllerWrapper, SysController::cId_Max > mControllers
Definition CommonWindowMgr.h:138
bool isFadeOut() const
Definition CommonWindowMgr.h:93
void drawDRC_System(const agl::lyr::RenderInfo &render_info) const
void drawDRC(const agl::lyr::RenderInfo &render_info) const
CommonWindow mCommonWindow
Definition CommonWindowMgr.h:134
void setFreezePostDecide(bool freeze)
Definition CommonWindowMgr.h:123