LeviLamina
Loading...
Searching...
No Matches
GeneralSettingsScreenController.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/ViewRequest.h"
9#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
10#include "mc/client/gui/screens/controllers/MultiplayerLockState.h"
11#include "mc/client/gui/screens/controllers/SettingsScreenControllerBase.h"
12#include "mc/client/social/ProfileImageOptions.h"
13#include "mc/client/sound/SoundOptions.h"
14#include "mc/deps/core/threading/Async.h"
15#include "mc/deps/core/utility/pub_sub/Subscription.h"
16#include "mc/platform/Result.h"
17
18// auto generated forward declare list
19// clang-format off
21class IContentManager;
26class TaskGroup;
27struct PackInstanceId;
29namespace Json { class Value; }
30namespace MSGraph::Models { struct GraphError; }
31// clang-format on
32
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<1, 1, bool> mIsGlobalSettings;
38 ::ll::TypedStorage<1, 1, bool> mReloadTexturePacksOnExit;
39 ::ll::TypedStorage<1, 1, bool> mGlobalResourcePacksVisible;
40 ::ll::TypedStorage<1, 1, bool> mHasLoadedCloudInfo;
41 ::ll::TypedStorage<1, 1, bool> mCloudConnectionError;
42 ::ll::TypedStorage<8, 32, ::std::string> mCloudUploadUrl;
43 ::ll::TypedStorage<
44 8,
45 16,
46 ::Bedrock::Threading::Async<::Bedrock::Result<::std::string, ::MSGraph::Models::GraphError>>>
47 mCloudFolderUrlHandle;
48 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::std::string, ::std::string>>> mLanguages;
49 ::ll::TypedStorage<8, 8, uint64> mCurrentlySelectedIndex;
50 ::ll::TypedStorage<8, 8, ::MultiplayerLockState> mMultiplayerState;
51 ::ll::TypedStorage<8, 8, ::IContentManager&> mContentManager;
52 ::ll::TypedStorage<8, 8, ::PackManagerContentSourceImpl*> mResourceContentSource;
53 ::ll::TypedStorage<4, 36, ::tm> mLastRefreshTime;
54 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mScreenAnimationsOptionSubscription;
55 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mGraphicsQualityPresetOptionSubscription;
56 ::ll::TypedStorage<8, 32, ::std::string> mOverrideMajorVersion;
57 ::ll::TypedStorage<8, 32, ::std::string> mOverrideMinorVersion;
58 ::ll::TypedStorage<8, 32, ::std::string> mOverridePatchVersion;
59 ::ll::TypedStorage<8, 32, ::std::string> mOverrideBetaVersion;
60 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IContentManagerContext>> mContentManagerContext;
61 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GeneralSettingsScreenControllerProxy>> mProxy;
62 ::ll::TypedStorage<8, 72, ::Social::ProfileImageOptions> mProfileImage;
63 ::ll::TypedStorage<8, 32, ::std::string> mUserDisplayName;
64 ::ll::TypedStorage<1, 1, bool> mDirty;
65 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::StorageManagementScreenController>>
66 mStorageManagementScreenController;
67 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SubscriptionsScreenController>> mSubscriptionsScreenController;
68 ::ll::TypedStorage<8, 88, ::SoundOptions> mSoundOptions;
69 ::ll::TypedStorage<8, 32, ::std::string> mLeakMemoryMB;
70 ::ll::TypedStorage<1, 1, bool> mNeedsOfflineTokenAuthorization;
71 ::ll::TypedStorage<1, 1, bool> mEnableGameTipsDisplay;
72 ::ll::TypedStorage<1, 1, bool> mAdvancedGraphicsExpanded;
73 ::ll::TypedStorage<1, 1, bool> mGraphicsApiSwitchingEnabled;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
75 // NOLINTEND
76
77public:
78 // prevent constructor by default
79 GeneralSettingsScreenController& operator=(GeneralSettingsScreenController const&);
80 GeneralSettingsScreenController(GeneralSettingsScreenController const&);
81 GeneralSettingsScreenController();
82
83public:
84 // virtual functions
85 // NOLINTBEGIN
86 virtual ~GeneralSettingsScreenController() /*override*/;
87
88 virtual ::ui::DirtyFlag tick() /*override*/;
89
90 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) /*override*/;
91
92 virtual bool canExit() /*override*/;
93
94 virtual void onOpen() /*override*/;
95
96 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
97 // NOLINTEND
98
99public:
100 // member functions
101 // NOLINTBEGIN
102 MCAPI GeneralSettingsScreenController(
103 ::std::shared_ptr<::MainMenuScreenModel> model,
104 bool isGlobalSettings,
105 bool reloadTexturePacksOnExit,
106 ::std::string const& initialPackId
107 );
108
109 MCAPI bool _areAnyPackImportsPending() const;
110
111 MCAPI void _chooseLanguage(::std::string const& selectedLanguageCode, int selectedLanguageIndex);
112
113 MCAPI ::std::string _generateAccountInformation() const;
114
115 MCAPI ::std::string _generateBuildInformation() const;
116
117 MCAPI void _getEduCloudInfo();
118
119 MCAPI ::std::vector<int> _getGUIScaleValues() const;
120
121 MCAPI ::std::vector<::PackInstanceId> _getModelManagerIdentities();
122
123 MCAPI ::ui::ViewRequest _handleLanguageChoiceClick(int i);
124
125 MCAPI void _initLanguageList();
126
127 MCAPI void _processPendingImports();
128
129 MCAPI void _registerControllerCallbacks();
130
131 MCAPI void _registerEventHandlers();
132
133 MCAPI void _registerPlayerNameEditBoxCallbacks();
134
135 MCAPI void _setFancyBubbles(bool value);
136
137 MCAPI void _setFancyBubblesHelper(bool value);
138
139 MCAPI void
140 _setGlobalStack(::std::vector<::PackInstanceId> const& modelManagerIdentities, bool anyVersion, bool saveStack);
141
142 MCAPI void _setResourcePackStack();
143
144 MCAPI void _toggleCrossPlatformPlayState();
145
146 MCAPI void _updateDisplayNameOnScreenFromUser();
147
148 MCAPI void _updateProfileImage();
149
150 MCAPI void confirmationFancyBubblesDialog(
151 ::std::string const& messageId,
152 ::std::function<void(::ModalScreenButtonId)> callback
153 );
154
155 MCAPI void setGuiScaleOption(int guiScaleOffset);
156 // NOLINTEND
157
158public:
159 // static functions
160 // NOLINTBEGIN
161 MCAPI static void
162 addStaticScreenVars(::Json::Value& globalVars, bool isTexturePackRequired, bool showFeedbackButton);
163 // NOLINTEND
164
165public:
166 // constructor thunks
167 // NOLINTBEGIN
168 MCAPI void* $ctor(
169 ::std::shared_ptr<::MainMenuScreenModel> model,
170 bool isGlobalSettings,
171 bool reloadTexturePacksOnExit,
172 ::std::string const& initialPackId
173 );
174 // NOLINTEND
175
176public:
177 // destructor thunk
178 // NOLINTBEGIN
179 MCAPI void $dtor();
180 // NOLINTEND
181
182public:
183 // virtual function thunks
184 // NOLINTBEGIN
185 MCAPI ::ui::DirtyFlag $tick();
186
187 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
188
189 MCAPI bool $canExit();
190
191 MCAPI void $onOpen();
192
193 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
194 // NOLINTEND
195
196public:
197 // vftables
198 // NOLINTBEGIN
200
201 MCNAPI static void** $vftableForScreenController();
202 // NOLINTEND
203};
Definition GeneralSettingsScreenControllerProxy.h:5
Definition GeneralSettingsScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition IContentManagerContext.h:5
Definition IContentManager.h:5
Definition Value.h:16
Definition MainMenuScreenModel.h:5
Definition SettingsScreenControllerBase.h:5
Definition StorageManagementScreenController.h:5
Definition SubscriptionsScreenController.h:5
Definition TaskGroup.h:57
Definition GraphError.h:7
Definition PackInstanceId.h:8
Definition PackManagerContentSourceImpl.h:5