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
51 enum class SliderChangeType : int {
52 AnyChange = 0,
53 NotFinalized = 1,
54 Finalized = 2,
55 };
56
58
59public:
60 // member variables
61 // NOLINTBEGIN
92 // NOLINTEND
93
94public:
95 // prevent constructor by default
96 ScreenController& operator=(ScreenController const&);
99
100public:
101 // virtual functions
102 // NOLINTBEGIN
103 // vIndex: 0
104 virtual ~ScreenController() /*override*/ = default;
105
106 // vIndex: 2
107 virtual ::ui::DirtyFlag tick() /*override*/;
108
109 // vIndex: 1
110 virtual void preFrameTick() /*override*/;
111
112 // vIndex: 3
113 virtual ::ui::ViewRequest handleEvent(::ScreenEvent&) /*override*/;
114
115 // vIndex: 4
116 virtual ::std::optional<::std::string> getRoute() const /*override*/;
117
118 // vIndex: 5
119 virtual void setScreenState(::std::vector<::std::pair<::std::string_view, ::std::string_view>> const&) /*override*/;
120
121 // vIndex: 6
122 virtual void onOpen();
123
124 // vIndex: 7
125 virtual void queueTitleNarration();
126
127 // vIndex: 8
128 virtual void onTerminate();
129
130 // vIndex: 9
131 virtual void onInit();
132
133 // vIndex: 10
134 virtual void onDelete();
135
136 // vIndex: 11
137 virtual bool canExit();
138
139 // vIndex: 12
140 virtual ::ui::ViewRequest tryExit();
141
142 // vIndex: 13
143 virtual void onCreation();
144
145 // vIndex: 14
146 virtual void onReload();
147
148 // vIndex: 15
149 virtual void onLeave();
150
151 // vIndex: 16
152 virtual void leaveScreen(::std::string const&);
153
154 // vIndex: 17
155 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification);
156
157 // vIndex: 19
158 virtual bool
159 bind(::std::string const&, uint, int, ::std::string const&, uint, ::std::string const&, ::UIPropertyBag&);
160
161 // vIndex: 18
162 virtual bool bind(::std::string const&, uint, ::std::string const&, ::UIPropertyBag&);
163
164 // vIndex: 20
165 virtual void handleLicenseChanged();
166
167 // vIndex: 21
168 virtual void onDictationEvent(::std::string const&);
169
170 // vIndex: 22
171 virtual void setAssociatedBlockPos(::BlockPos const&);
172
173 // vIndex: 23
174 virtual void setAssociatedEntityUniqueID(::ActorUniqueID const);
175
176 // vIndex: 24
177 virtual void setSuspendInput(bool);
178
179 // vIndex: 25
180 virtual void setSuspendDirectionalInput(bool);
181
182 // vIndex: 26
183 virtual void setViewCommand(::ScreenViewCommand const&);
184
185 // vIndex: 27
186 virtual void addStaticScreenVars(::Json::Value&);
187
188 // vIndex: 28
189 virtual ::std::string getAdditionalScreenInfo() const;
190
191 // vIndex: 29
192 virtual ::std::string getTelemetryOverride() const;
193
194 // vIndex: 30
195 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>&) const;
196
197 // vIndex: 31
198 virtual ::ui::SceneType getSceneType() const;
199
200 // vIndex: 32
201 virtual int getScreenVersion() const;
202
203 // vIndex: 33
204 virtual uint getSceneId() const;
205
206 // vIndex: 34
207 virtual bool screenHandlesGamepadMenuButton() const;
208
209 // vIndex: 35
210 virtual ::ScreenControllerProxy* getProxy();
211
212 // vIndex: 36
213 virtual void onEntered();
214
215 // vIndex: 37
216 virtual void onScreenPushedAbove();
217
218 // vIndex: 38
219 virtual void onEntering();
220
221 // vIndex: 39
222 virtual bool _doesScreenHaveExitBehavior() const;
223
224 // vIndex: 40
225 virtual bool _isContainerScreen() const;
226 // NOLINTEND
227
228public:
229 // virtual function thunks
230 // NOLINTBEGIN
231
232 // NOLINTEND
233};
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:57
Definition ScreenEvent.h:10
Definition ScreenViewCommand.h:5
Definition TextEditScreenEventData.h:13
Definition TextEditSelectedStateChangeEventData.h:5
Definition ToggleChangeEventData.h:10
Definition Alias.h:14