LeviLamina
Loading...
Searching...
No Matches
ScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/SceneType.h"
9#include "mc/client/gui/ViewRequest.h"
10#include "mc/client/gui/screens/interfaces/IScreenController.h"
11#include "mc/deps/input/enums/ButtonState.h"
12#include "mc/platform/brstd/move_only_function.h"
13
14// auto generated forward declare list
15// clang-format off
16class BlockPos;
18class UIPropertyBag;
19struct ActorUniqueID;
23struct ItemRendererData;
26struct ScreenEvent;
31namespace Json { class Value; }
32namespace mce { class Color; }
33// clang-format on
34
36public:
37 // ScreenController inner types declare
38 // clang-format off
40 // clang-format on
41
42 // ScreenController inner types define
43 enum class PreviousButtonStateRequirement : int {
44 Any = 0,
45 Down = 1,
46 Up = 2,
47 NotDown = 3,
48 NotUp = 4,
49 };
50
52
53public:
54 // member variables
55 // NOLINTBEGIN
86 // NOLINTEND
87
88public:
89 // prevent constructor by default
90 ScreenController& operator=(ScreenController const&);
93
94public:
95 // virtual functions
96 // NOLINTBEGIN
97 // vIndex: 0
98 virtual ~ScreenController() /*override*/ = default;
99
100 // vIndex: 2
101 virtual ::ui::DirtyFlag tick() /*override*/;
102
103 // vIndex: 1
104 virtual void preFrameTick() /*override*/;
105
106 // vIndex: 3
107 virtual ::ui::ViewRequest handleEvent(::ScreenEvent&) /*override*/;
108
109 // vIndex: 4
110 virtual ::std::optional<::std::string> getRoute() const /*override*/;
111
112 // vIndex: 5
113 virtual void setScreenState(::std::vector<::std::pair<::std::string_view, ::std::string_view>> const&) /*override*/;
114
115 // vIndex: 6
116 virtual void onOpen();
117
118 // vIndex: 7
119 virtual void queueTitleNarration();
120
121 // vIndex: 8
122 virtual void onTerminate();
123
124 // vIndex: 9
125 virtual void onInit();
126
127 // vIndex: 10
128 virtual void onDelete();
129
130 // vIndex: 11
131 virtual bool canExit();
132
133 // vIndex: 12
134 virtual ::ui::ViewRequest tryExit();
135
136 // vIndex: 13
137 virtual void onCreation();
138
139 // vIndex: 14
140 virtual void onReload();
141
142 // vIndex: 15
143 virtual void onLeave();
144
145 // vIndex: 16
146 virtual void leaveScreen(::std::string const&);
147
148 // vIndex: 17
149 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification);
150
151 // vIndex: 19
152 virtual bool
153 bind(::std::string const&, uint, int, ::std::string const&, uint, ::std::string const&, ::UIPropertyBag&);
154
155 // vIndex: 18
156 virtual bool bind(::std::string const&, uint, ::std::string const&, ::UIPropertyBag&);
157
158 // vIndex: 20
159 virtual void handleLicenseChanged();
160
161 // vIndex: 21
162 virtual void onDictationEvent(::std::string const&);
163
164 // vIndex: 22
165 virtual void setAssociatedBlockPos(::BlockPos const&);
166
167 // vIndex: 23
168 virtual void setAssociatedEntityUniqueID(::ActorUniqueID const);
169
170 // vIndex: 24
171 virtual void setSuspendInput(bool);
172
173 // vIndex: 25
174 virtual void setSuspendDirectionalInput(bool);
175
176 // vIndex: 26
177 virtual void setViewCommand(::ScreenViewCommand const&);
178
179 // vIndex: 27
180 virtual void addStaticScreenVars(::Json::Value&);
181
182 // vIndex: 28
183 virtual ::std::string getAdditionalScreenInfo() const;
184
185 // vIndex: 29
186 virtual ::std::string getTelemetryOverride() const;
187
188 // vIndex: 30
189 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>&) const;
190
191 // vIndex: 31
192 virtual ::ui::SceneType getSceneType() const;
193
194 // vIndex: 32
195 virtual int getScreenVersion() const;
196
197 // vIndex: 33
198 virtual uint getSceneId() const;
199
200 // vIndex: 34
201 virtual bool screenHandlesGamepadMenuButton() const;
202
203 // vIndex: 35
204 virtual ::ScreenControllerProxy* getProxy();
205
206 // vIndex: 36
207 virtual void onEntered();
208
209 // vIndex: 37
210 virtual void onScreenPushedAbove();
211
212 // vIndex: 38
213 virtual void onEntering();
214
215 // vIndex: 39
216 virtual bool _doesScreenHaveExitBehavior() const;
217
218 // vIndex: 40
219 virtual bool _isContainerScreen() const;
220 // NOLINTEND
221
222public:
223 // virtual function thunks
224 // NOLINTBEGIN
225
226 // NOLINTEND
227};
Definition BlockPos.h:18
Definition IScreenController.h:14
Definition ScreenControllerProxy.h:10
Definition ScreenController.h:35
Definition UIPropertyBag.h:14
STL namespace.
Definition ActorUniqueID.h:5
Definition FocusMoveScreenEventData.h:5
Definition HoloInputModeChangeScreenEventData.h:8
Definition InputModeChangeScreenEventData.h:8
Definition ItemRendererData.h:5
Definition PointerHeldScreenEventData.h:5
Definition RawInputScreenEventData.h:9
Definition ScreenController.h:51
Definition ScreenEvent.h:10
Definition ScreenViewCommand.h:5
Definition TextEditScreenEventData.h:13
Definition TextEditSelectedStateChangeEventData.h:5
Definition ToggleChangeEventData.h:10
Definition Alias.h:14