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