3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/LastClickedSource.h"
7#include "mc/client/events/OnlineSafetyDialogVisibility.h"
8#include "mc/client/gui/CraftingType.h"
9#include "mc/client/gui/EncyclopediaTopicIndex.h"
10#include "mc/client/gui/HowToPlayTopicIndex.h"
11#include "mc/client/gui/ProgressContentType.h"
12#include "mc/client/gui/SettingsTabIndex.h"
13#include "mc/client/gui/oreui/interface/RouteMode.h"
14#include "mc/client/gui/screens/SelectWorldResult.h"
15#include "mc/client/gui/screens/controllers/CreditsType.h"
16#include "mc/client/gui/screens/controllers/InventoryTabIndex.h"
17#include "mc/client/gui/screens/controllers/LibraryModalScreenType.h"
18#include "mc/client/gui/screens/controllers/MarketplacePassTabIndex.h"
19#include "mc/client/gui/screens/controllers/SlotSelectedAction.h"
20#include "mc/client/gui/screens/controllers/TabbedUpsellScreenDefaultTab.h"
21#include "mc/client/gui/screens/controllers/UpdateVersionScreenContext.h"
22#include "mc/client/gui/screens/interfaces/ISceneFactory.h"
23#include "mc/client/gui/screens/models/PlayScreenDefaultTab.h"
24#include "mc/client/store/sidebar/Type.h"
25#include "mc/client/tts/TTSEnabledStatus.h"
26#include "mc/deps/core/file/FileUploadType.h"
27#include "mc/deps/core/string/HashedString.h"
28#include "mc/deps/core/threading/Async.h"
29#include "mc/deps/core/threading/AsyncPromise.h"
30#include "mc/deps/core/utility/NonOwnerPointer.h"
31#include "mc/deps/core/utility/optional_ref.h"
32#include "mc/deps/core/utility/pub_sub/Subscription.h"
33#include "mc/deps/input/interface/GameControllerErrorType.h"
34#include "mc/events/OpenCodeMethod.h"
35#include "mc/options/FeedbackType.h"
36#include "mc/util/UploadState.h"
37#include "mc/world/level/GameType.h"
38#include "mc/world/level/block/actor/BlockActorType.h"
39#include "mc/world/level/storage/StorageVersion.h"
55class IStoreCatalogItem;
61class OfferCollectionComponent;
90namespace Core {
class Path; }
91namespace Json {
class Value; }
94namespace Realms {
struct World; }
109 ::ll::TypedStorage<8, 32, ::std::string> screenName;
110 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIControlFactory>> controlFactory;
111 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VisualTree>> visualTree;
112 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LayoutManager>> layoutManager;
113 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIControl>> rootControl;
114 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> taskHandle;
118 using InGameScreenCreator = ::std::function<::std::shared_ptr<::UIScene>(
122 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
123 ::std::string
const&,
132 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
133 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraft;
134 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>> mAdvancedGraphicsOptions;
135 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
136 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
137 ::ll::TypedStorage<1, 1, bool> mUseClientInstanceStack;
138 ::ll::TypedStorage<8, 8, ::OreUI::SceneProvider&> mSceneProvider;
139 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::UISoundPlayer>> mSoundPlayer;
140 ::ll::TypedStorage<8, 8, ::CachedScenes&> mCachedScenes;
141 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::SceneFactory::PreCachePackage>>> mPreCachePackages;
142 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SceneFactoryProxy>> mProxy;
146 ::std::unordered_map<
150 ::std::function<::std::shared_ptr<::UIScene>(
154 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
155 ::std::string
const&,
160 mRegisteredInGameScreens;
161 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSceneStackDestroyedSubscription;
166 SceneFactory& operator=(SceneFactory
const&);
167 SceneFactory(SceneFactory
const&);
173 virtual ~SceneFactory() ;
175 virtual ::std::shared_ptr<::AbstractScene> createDevConsole();
177 virtual ::std::shared_ptr<::AbstractScene>
178 createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab) ;
180 virtual ::std::shared_ptr<::AbstractScene> createStoreDataDrivenScreen(
181 ::StoreDataDrivenScreenParams
const& params,
182 bool const forceDisableProgressScreen,
183 ::std::function<
void()> initializedCallback
186 virtual ::std::shared_ptr<::AbstractScene> createStartMenuScreen(
bool shouldSendEvent) ;
188 virtual ::Json::Value
189 createGlobalVars(::Bedrock::NotNullNonOwnerPtr<::IUIDefRepository const> defRepository)
const = 0;
196 ::IMinecraftGame& minecraft,
197 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
198 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const& advancedGraphicsOptions,
199 ::OreUI::SceneProvider& sceneProvider
202 MCAPI ::Json::Value _calculateSafeZoneSize(
203 float safeZoneScaleFactor,
204 float screenPositionOffset,
209 MCAPI ::std::shared_ptr<::AbstractScene> _createPlayScreenImpl(
210 ::PlayScreenDefaultTab tab,
211 ::std::string
const& dirtyLevelId,
212 ::std::function<
void()> initializedCallback
215 MCAPI ::Json::Value _createSafeZoneSizeVar(
216 float safeZoneScaleFactor,
217 float screenPositionOffset,
222 MCAPI ::std::shared_ptr<::AbstractScene> _createScreen(::std::shared_ptr<::BaseScreen> newScreen);
224 MCAPI
void _preCacheScreen(::Json::Value
const& globalVars, ::std::string
const& screenName);
226 MCAPI ::std::shared_ptr<::AbstractScene> createAcceptDeclineInvitationScreen(
227 ::std::string
const& title,
228 ::std::string
const& subtitle,
229 ::std::function<
void(
bool,
bool)> callback
232 MCAPI ::std::shared_ptr<::AbstractScene>
233 createActiveDirectoryAuthenticationScreen(
bool displaySignIn, ::LastClickedSource lastClickedSource);
235 MCAPI ::std::shared_ptr<::AbstractScene> createActiveDirectoryModal(::ActiveDirectoryModalArgs
const& args);
237 MCAPI ::std::shared_ptr<::AbstractScene> createAddEditExternalServerScreen(
int id);
239 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocInProgressScreen(
bool enableAdhoc);
241 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocScreen();
243 MCAPI ::std::shared_ptr<::AbstractScene>
244 createApplyResourcePacksScreen(::std::function<
void(::MinecraftScreenModel&)> applyPacks);
246 MCAPI ::std::shared_ptr<::AbstractScene> createAutoSaveInfoScreen();
248 MCAPI ::std::shared_ptr<::AbstractScene> createBetaFeedbackQrScreen(::std::string
const& feedbackUrl);
250 MCAPI ::std::shared_ptr<::AbstractScene>
251 createBookScreen(
int bookSlot,
bool editable,
int page, ::BlockActor* lectern);
253 MCAPI ::std::shared_ptr<::AbstractScene> createBundlePurchaseWarningScreen(
254 ::IStoreCatalogItem
const& catalogItem,
255 ::OfferCollectionComponent
const& bundleCollection,
256 ::std::function<
void()> onPurchaseCallback
259 MCAPI ::std::shared_ptr<::AbstractScene> createCannotUseNetworkFeaturesScreen();
261 MCAPI ::std::shared_ptr<::AbstractScene> createCellularDataWarningScreen(::std::function<
void(
bool)> callback);
263 MCAPI ::std::shared_ptr<::AbstractScene> createChalkboardScreen(::BlockPos
const& pos,
bool lockVisible);
265 MCAPI ::std::shared_ptr<::AbstractScene> createChatScreen();
267 MCAPI ::std::shared_ptr<::AbstractScene> createChooseRealmScreen(
268 ::std::function<
void(::Realms::World)> callback,
269 ::SlotSelectedAction action,
270 ::std::function<
void()> onCancelCallback
273 MCAPI ::std::shared_ptr<::AbstractScene> createCodeScreen(::OpenCodeMethod openMethod);
275 MCAPI ::std::shared_ptr<::AbstractScene>
276 createCommonDialogInfoScreen(::std::string
const& dialogTitle, ::std::string
const& dialogBody);
278 MCAPI ::std::shared_ptr<::AbstractScene>
279 createConnectGamepadScreen(::GameControllerErrorType controllerError, ::std::function<
void()> onCompleteCallback);
281 MCAPI ::std::shared_ptr<::AbstractScene> createConsoleScreen();
283 MCAPI ::std::shared_ptr<::AbstractScene> createContentLogHistoryScreen();
285 MCAPI ::std::shared_ptr<::AbstractScene>
286 createCreditsScreen(::CreditsType contentType, ::std::function<
void()> callback);
288 MCAPI ::std::shared_ptr<::AbstractScene> createCubeMapScreen(
bool flushable);
290 MCAPI ::std::shared_ptr<::AbstractScene>
291 createCustomTemplatesScreen(::std::vector<::WorldTemplateInfo>
const& customTemplates);
293 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceIntroPopup();
295 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceScreen();
297 MCAPI ::std::shared_ptr<::AbstractScene> createDeathScreen();
299 MCAPI ::std::shared_ptr<::AbstractScene> createDebugScreen();
301 MCAPI ::std::shared_ptr<::AbstractScene> createDeeplinkConfirmationScreen(::std::function<
void(
bool)> callback);
303 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteAccountScreen();
305 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteProgressScreen(
306 ::std::string
const& uniqueEventName,
307 ::IContentManager& contentManager,
308 ::std::vector<::std::shared_ptr<::ContentItem const>>&& itemsToDelete
311 MCAPI ::std::shared_ptr<::AbstractScene>
312 createDimensionChangeProgressScreen(
bool localServer, ::DimensionType targetDimensionID);
314 MCAPI ::std::shared_ptr<::AbstractScene>
315 createDisabledSkinScreen(
bool twoButtonWithCallback, ::std::function<
void()> callback);
317 MCAPI ::std::shared_ptr<::AbstractScene> createDisconnectScreen(
318 ::std::string
const& titleMessage,
319 ::std::string
const& displayMessage,
320 ::std::string
const& screenNameOverride,
321 ::std::string
const& telemetryOverride
324 MCAPI ::std::shared_ptr<::AbstractScene> createDlcProgressScreen(
325 ::std::vector<::DlcId>
const& dlcIds,
326 ::std::function<
void(
bool,
bool)> callback,
327 bool showCloseButton,
328 bool processingUpdates,
329 bool requireCancelToExit
332 MCAPI ::std::shared_ptr<::AbstractScene> createEDULibraryCategoryScreen(
333 ::std::string
const& title,
334 ::std::string
const& icon,
335 ::std::string
const& description,
336 ::std::string
const& screenshotRatio,
338 ::std::vector<::EDULibraryCategory>
const& categories,
342 MCAPI ::std::shared_ptr<::AbstractScene> createEDUPlayScreen(::std::string initialCode);
344 MCAPI ::std::shared_ptr<::AbstractScene> createEDUServersScreen();
346 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldTemplatesScreen();
348 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldsScreen();
350 MCAPI ::std::shared_ptr<::AbstractScene> createEditWorldScreen(
351 ::LevelSummary
const& levelSummary,
352 ::std::string
const& packId,
353 ::std::function<
void()> onOpenCallback
356 MCAPI ::std::shared_ptr<::AbstractScene> createEmoteWheelScreen();
358 MCAPI ::std::shared_ptr<::AbstractScene> createEncryptionWarningScreen(::std::function<
void(
bool)> callback);
360 MCAPI ::std::shared_ptr<::AbstractScene> createEncyclopediaScreen(::EncyclopediaTopicIndex startingTopicIndex);
362 MCAPI ::std::shared_ptr<::AbstractScene> createExternalLinkDialogScreen(
363 ::std::string
const& title,
364 ::std::string
const& externalLink,
365 ::std::string
const& message,
366 ::std::string
const& goToPageText,
367 ::std::string
const& secondButtonText,
368 ::std::function<
void()>
const& callback
371 MCAPI ::std::shared_ptr<::AbstractScene>
372 createFeedbackPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
374 MCAPI ::std::shared_ptr<::AbstractScene> createFileDownloadProgressScreen(
375 ::std::string
const& realmID,
377 ::std::string
const& realmName,
378 ::std::string
const& realmVersion,
379 ::std::string
const& realmVersionName,
380 ::std::function<
void(
bool)> callback
383 MCAPI ::std::shared_ptr<::AbstractScene> createFileUploadProgressScreen(
384 ::std::string
const& realmID,
385 ::std::string
const& fileID,
388 ::Core::FileUploadType fileUploadType,
389 ::std::function<
void(::UploadState, ::Realms::World)> callback
392 MCAPI ::std::shared_ptr<::AbstractScene> createGameInputErrorScreen(::std::function<
void()> callback);
394 MCAPI ::std::shared_ptr<::AbstractScene> createGamepadDisconnectScreen();
396 MCAPI ::std::shared_ptr<::AbstractScene> createGameplayScreen();
398 MCAPI ::std::shared_ptr<::AbstractScene> createGammaCalibrationScreen();
400 MCAPI ::std::shared_ptr<::AbstractScene> createGlobalPauseScreen();
402 MCAPI ::std::shared_ptr<::AbstractScene> createHowToPlayScreen(::HowToPlayTopicIndex startingTopicIndex);
404 MCAPI ::std::shared_ptr<::AbstractScene> createHudScreen();
406 MCAPI ::std::shared_ptr<::AbstractScene> createIPSafetyDialogScreen(
int externalServerId);
408 MCAPI ::std::shared_ptr<::AbstractScene> createImmersiveReader(::std::string readerText);
410 MCAPI ::std::shared_ptr<::AbstractScene> createImportExportProgressScreen(
411 ::std::string
const& titleText,
412 ::std::string
const& uniqueEventName,
413 ::std::string
const& messageText
416 MCAPI ::std::shared_ptr<::AbstractScene> createInBedScreen();
418 MCAPI ::std::shared_ptr<::AbstractScene>
419 createInGameSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
421 MCAPI ::std::shared_ptr<::AbstractScene>
422 createInGameScreen(::std::string
const& name, ::Player& player, ::BlockPos
const& pos, ::ActorUniqueID uniqueId);
424 MCAPI ::std::shared_ptr<::AbstractScene> createInventoryScreen(::CraftingType craftingType);
426 MCAPI ::std::shared_ptr<::AbstractScene> createInviteScreen();
428 MCAPI ::std::shared_ptr<::AbstractScene>
429 createLateJoinPreGameScreen(::std::function<
void()>
const& userReadyCallback,
bool hasXBLBroadcast);
431 MCAPI ::std::shared_ptr<::AbstractScene> createLeaveLevelScreen(
432 ::std::string
const& uniqueEventName,
433 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
437 MCAPI ::std::shared_ptr<::AbstractScene>
438 createLegacyCreateWorldFromTemplateScreen(::LevelSummary
const& levelSummary);
440 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyCreateWorldScreen();
442 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyRealmsPlusEndedScreen();
444 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyWorldTemplateLoadingScreen(::std::string
const& manifestId);
446 MCAPI ::std::shared_ptr<::AbstractScene> createLessonCompleteScreen();
448 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryItemScreen(
449 ::std::shared_ptr<::LibraryItem> item,
450 ::std::unordered_map<::std::string, ::std::string> additionalOptions
453 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryModalScreen(
454 ::LibraryModalScreenType type,
455 ::std::function<
void(
bool)> callback,
456 ::std::vector<::std::pair<::std::string, ::std::string>> eventProperties
459 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryScreen(::std::shared_ptr<::LibraryCollection> collection);
461 MCAPI ::std::shared_ptr<::AbstractScene> createLibrarySearchScreen(
462 ::std::shared_ptr<::LibraryCollection> collection,
463 ::std::string
const& libraryTitle,
464 ::std::string
const& libraryIcon
467 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryTagScreen(
468 ::std::shared_ptr<::LibraryCollection> collection,
469 ::std::string
const& libraryTitle,
470 ::std::string
const& libraryIcon,
471 ::std::string
const& libraryPageDescription
474 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryWorldScreen(
475 ::std::shared_ptr<::LibraryCollection> collection,
476 ::std::string libraryTitle,
477 ::std::string libraryIcon,
478 ::std::string libraryPageDescription,
479 ::std::string
const& categoryTitle
482 MCAPI ::std::shared_ptr<::AbstractScene> createLocalWorldPickerScreen(
483 ::std::string
const& realmID,
485 ::std::function<
void(::UploadState, ::Realms::World)> callbackAfterUpload
488 MCAPI ::std::shared_ptr<::AbstractScene>
489 createMakeInfiniteScreen(::LevelSummary
const& editedLevel, ::StorageVersion storageVersion);
491 MCAPI ::std::shared_ptr<::AbstractScene> createManifestValidationScreen(
492 ::PackManifestFactory& manifestFactory,
493 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
494 ::ResourceLocation
const& resourceLocation,
495 ::Core::Path
const& originalFilePath,
496 bool packInUserDataPath,
497 ::std::shared_ptr<::PackContentItem const> item
500 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPDPScreen(
501 ::MarketplacePassTabIndex tabIndex,
502 ::sidebar::navigationLayout::Type sidebarLayoutType
505 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseAmazonDeviceWarningScreen();
507 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseWarningScreen();
509 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassUpsellScreen();
511 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassWelcomeScreen();
513 MCAPI ::std::shared_ptr<::AbstractScene> createMigrationErrorScreen();
515 MCAPI ::std::shared_ptr<::AbstractScene> createMobEffectsScreen();
517 MCAPI ::std::shared_ptr<::AbstractScene> createModalProgressScreen(
518 ::std::string
const& uniqueEventName,
519 ::std::unique_ptr<::ProgressHandler> progressHandler,
521 bool forceRenderBelow,
522 ::std::string
const& screenNameOverride,
524 float backgroundFillAlpha
527 MCAPI ::std::shared_ptr<::AbstractScene> createModalScreen(::ModalScreenData
const& modalScreenData);
529 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
530 ::std::string
const& uniqueEventName,
531 ::std::unique_ptr<::ProgressHandler> connectHandler,
532 bool allowSmallDownloads,
533 bool sendProgressTelem,
534 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
537 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
538 ::std::string
const& uniqueEventName,
539 ::std::deque<::std::unique_ptr<::ProgressHandler>>&& connectHandlers,
540 bool allowSmallDownloads,
541 bool sendProgressTelem,
542 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
545 MCAPI ::std::shared_ptr<::AbstractScene> createNoInvitesOrJoiningScreen();
547 MCAPI ::std::shared_ptr<::AbstractScene> createNoLicenseScreen();
549 MCAPI ::std::shared_ptr<::AbstractScene> createNoWifiWarningScreen();
551 MCAPI ::std::shared_ptr<::AbstractScene> createNotSignedIntoNintendoScreen(::std::string
const& messageOverride);
553 MCAPI ::std::shared_ptr<::AbstractScene>
554 createNpcInteractScreen(::Player& player, ::std::shared_ptr<::INpcDialogueData> data);
556 MCAPI ::std::shared_ptr<::AbstractScene> createOSWriteThrottleDialogScreen(
557 ::std::chrono::duration<
double, ::std::ratio<1, 1>> totalWait,
558 ::std::shared_ptr<bool> dialogStillAlive
561 MCAPI ::std::shared_ptr<::AbstractScene> createOnlineSafetyDialogScreen(::OnlineSafetyProgressHandler& handler);
563 MCAPI ::std::shared_ptr<::AbstractScene> createOptionsScreen(
564 ::LevelSummary
const& levelSummary,
565 ::SettingsTabIndex startingTabIndex,
566 bool navToMenuOnExit,
567 bool maintainOldFocus,
568 ::std::string
const& initialPackId,
573 MCAPI ::std::shared_ptr<::AbstractScene> createPackSettingsScreen(::PackSettingsInfo packSettingsInfo);
575 MCAPI ::std::shared_ptr<::AbstractScene> createPauseScreen(
bool overlaySocialDrawerOnce);
577 MCAPI ::std::shared_ptr<::AbstractScene> createPermissionsScreen(::ActorUniqueID defaultPlayerId);
579 MCAPI ::std::shared_ptr<::AbstractScene>
580 createPlatformNetworkConnectConfirmationScreen(::std::function<
void(
bool)> callback);
582 MCAPI ::std::shared_ptr<::AbstractScene>
583 createPlatformSplitScreenConnectConfirmationScreen(::std::function<
void(
bool)> callback);
585 MCAPI ::std::shared_ptr<::AbstractScene>
586 createPlatformStoreConnectConfirmationScreen(::std::function<
void(
bool)> callback);
588 MCAPI ::std::shared_ptr<::AbstractScene> createPortfolioScreen();
590 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
591 ::std::string
const& uniqueEventName,
592 ::std::unique_ptr<::ProgressHandler> progressHandler,
594 bool sendProgressTelem,
595 ::std::string
const& overrideScreen
598 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
599 ::std::string
const& uniqueEventName,
600 ::std::deque<::std::unique_ptr<::ProgressHandler>>&& progressHandlerList,
602 bool sendProgressTelem,
603 ::std::string
const& overrideScreen
606 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
607 ::std::string
const& uniqueEventName,
608 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
610 bool sendProgressTelem,
611 bool useRandomProgressMessage,
612 bool allowSmallDownloads,
613 ::ProgressContentType contentType,
617 MCAPI ::std::shared_ptr<::AbstractScene>
618 createRatingPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
620 MCAPI ::std::shared_ptr<::AbstractScene> createRealmNetworkProgressScreen(
621 ::std::string
const& uniqueEventName,
622 ::std::unique_ptr<::ProgressHandler> connectHandler
625 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsAllowListScreen(
626 ::Realms::World
const& world,
627 ::std::function<
void()> followUpActionAfterCreation,
631 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsCreateScreen(::RealmsCreateParams
const& screenDetails);
633 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinkSettingScreen(
634 ::Realms::World
const& world,
635 ::Realms::InviteLink
const& link,
636 ::SettingsTabIndex initialTab
639 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinksScreen(::Realms::World
const& world);
641 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsJoinProgressScreen(
642 ::std::string
const& uniqueEventName,
643 ::std::unique_ptr<::ProgressHandler> connectHandler,
644 ::std::unique_ptr<::ProgressHandler> progressHandler,
646 bool realmsPlusExpired,
647 ::std::function<
void()> onlineSafetyCancelledCallback
650 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsManageMembersScreen(::Realms::World
const& world);
652 MCAPI ::std::shared_ptr<::AbstractScene>
653 createRealmsManageScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
655 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPackErrorsScreen();
657 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPendingInvitesScreen(
bool hasPendingInvites);
659 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPlusPurchaseWarningScreen(::std::function<
void()> callback);
661 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSavesScreen(::Realms::World
const& world);
663 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSettingsScreen(
664 ::Realms::World
const& world,
665 ::SettingsTabIndex initialTab,
666 ::std::string
const& initialPackId
669 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSharingLauncherScreen(::std::string
const& realmsInvite);
671 MCAPI ::std::shared_ptr<::AbstractScene>
672 createRealmsSlotSettingsScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
674 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSlotsScreen(::Realms::World& world);
676 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsStoriesTransitionScreen(::Realms::World
const& world);
678 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreen();
680 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreenWithParams(
681 ::Realms::World
const& world,
682 ::std::string
const& ip,
684 ::std::string
const& serverRegion,
688 MCAPI ::std::shared_ptr<::AbstractScene> createSafeZoneScreen();
690 MCAPI ::std::shared_ptr<::AbstractScene> createSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
692 MCAPI ::std::shared_ptr<::AbstractScene> createScreenshotScreen();
694 MCAPI ::std::shared_ptr<::AbstractScene> createSelectWorldScreen(
696 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>
700 MCAPI ::std::shared_ptr<::AbstractScene> createServerForm(uint formId, ::std::string
const& formJSON);
702 MCAPI ::std::shared_ptr<::AbstractScene>
703 createServerTrustModalScreen(::std::string serverAddress, ::Bedrock::Threading::AsyncPromise<bool> resultPromise);
705 MCAPI ::std::shared_ptr<::AbstractScene>
706 createSignScreen(::BlockPos
const& pos, ::BlockActorType blockActorType,
bool isFrontSide);
708 MCAPI ::std::shared_ptr<::AbstractScene> createStorageMigrationProgressScreen(
709 ::Bedrock::NonOwnerPointer<::Bedrock::StorageMigration::StorageMigrationService>
const& migrationService
712 MCAPI ::std::shared_ptr<::AbstractScene> createStorageSpaceWarningScreen(::std::string
const& message);
714 MCAPI ::std::shared_ptr<::AbstractScene> createStoreFeaturesDisabledScreen(::std::string
const& messageOverride);
716 MCAPI ::std::shared_ptr<::AbstractScene>
717 createStoreInventoryScreen(::InventoryTabIndex tabIndex, ::std::optional<::StoreDataDrivenScreenParams> paramsOpt);
719 MCAPI ::std::shared_ptr<::AbstractScene>
720 createSubmitFeedbackScreen(::FeedbackType feedbackType, ::std::string
const& identifier,
int feedbackTextLimit);
722 MCAPI ::std::shared_ptr<::AbstractScene> createSunsettingScreen(::std::string& title);
724 MCAPI ::std::shared_ptr<::AbstractScene> createTTSEnabledWarningScreen(::TTSEnabledStatus status);
726 MCAPI ::std::shared_ptr<::AbstractScene> createTTSErrorScreen();
728 MCAPI ::std::shared_ptr<::AbstractScene> createToastScreen();
730 MCAPI ::std::shared_ptr<::AbstractScene> createTokenFAQScreen();
732 MCAPI ::std::shared_ptr<::AbstractScene> createTokenPopupScreen();
734 MCAPI ::std::shared_ptr<::AbstractScene> createTrade2Screen(::Player&, ::ActorUniqueID
const& uniqueID);
736 MCAPI ::std::shared_ptr<::AbstractScene> createTradeScreen(::Player&, ::ActorUniqueID
const& uniqueID);
738 MCAPI ::std::shared_ptr<::UIScene> createUIScene(
739 ::IMinecraftGame& mc,
740 ::IClientInstance& client,
741 ::std::string
const& screenName,
742 ::std::shared_ptr<::ScreenController> controller
745 MCAPI ::std::shared_ptr<::AbstractScene>
746 createUpdateWorldHeightScreen(::std::function<
void(
bool)> startWorldCallback);
748 MCAPI ::std::shared_ptr<::AbstractScene> createUpsellScreen(
bool isNewWorld,
bool timeExpired);
750 MCAPI ::std::shared_ptr<::AbstractScene> createUserManagementModalScreen(
751 ::UserManagementModalScreenData
const& screenData,
752 ::std::function<
void(
bool)> callback
755 MCAPI ::std::shared_ptr<::AbstractScene> createVersionUpdateScreen(::UpdateVersionScreenContext context);
757 MCAPI ::std::shared_ptr<::AbstractScene> createWin10TrialConversionScreen();
759 MCAPI ::std::shared_ptr<::AbstractScene>
760 createWorldConversionCompleteScreen(::std::string
const& levelId, ::std::function<
void()> cancelCallback);
762 MCAPI ::std::shared_ptr<::AbstractScene> createWorldRecoveryScreen(::std::function<
void()> successCallback);
764 MCAPI ::std::shared_ptr<::AbstractScene> createWorldSeedCatalogScreen(
765 ::std::function<
void(::std::string
const&, ::std::string
const&, ::Core::Path
const&)> closeCallback
768 MCAPI ::std::shared_ptr<::AbstractScene> createWorldTemplateScreen(
bool hideTopBar);
770 MCAPI ::std::shared_ptr<::AbstractScene> createXblConsoleSignInScreen(::std::string
const& code);
772 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
773 ::std::string
const& signInSource,
774 ::std::function<
void()> callBackAfterSignIn,
775 ::std::function<
void()> callBackAfterCancel
778 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
779 ::std::string
const& signInSource,
780 ::std::string
const& redirectToRoute,
781 bool replacePreviousRouteAfterSignIn
784 MCAPI ::Json::Value generateGlobalVars(::std::string
const& screenName, ::ScreenController& controller);
786 MCAPI ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> getCurrentSceneStack();
788 MCAPI
void precacheGameplayScreens();
790 MCAPI
void registerInGameScreen(
791 ::std::string
const& registeredName,
792 ::std::string
const& resourceName,
793 ::std::function<::std::shared_ptr<::UIScene>(
797 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
798 ::std::string
const&,
805 MCAPI
void resetSceneStackForOutOfGameUse();
807 MCAPI
void setUseClientInstanceStack(
bool useClientInstanceStack);
809 MCAPI
void unregisterInGameScreens();
816 ::IMinecraftGame& minecraft,
817 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
818 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const& advancedGraphicsOptions,
819 ::OreUI::SceneProvider& sceneProvider
832 MCAPI ::std::shared_ptr<::AbstractScene> $createDevConsole();
834 MCAPI ::std::shared_ptr<::AbstractScene> $createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab);
836 MCAPI ::std::shared_ptr<::AbstractScene> $createStoreDataDrivenScreen(
837 ::StoreDataDrivenScreenParams
const& params,
838 bool const forceDisableProgressScreen,
839 ::std::function<
void()> initializedCallback
842 MCAPI ::std::shared_ptr<::AbstractScene> $createStartMenuScreen(
bool shouldSendEvent);
Definition AbstractScene.h:5
Definition BaseScreen.h:5
Definition StorageMigrationService.h:21
Definition BlockActor.h:28
Definition CachedScenes.h:5
Definition IAdvancedGraphicsOptions.h:10
Definition IClientInstance.h:5
Definition IContentKeyProvider.h:13
Definition IContentManager.h:5
Definition IMinecraftGame.h:5
Definition ISceneFactory.h:5
Definition ISceneStack.h:5
Definition IUIDefRepository.h:5
Definition LayoutManager.h:5
Definition LibraryCollection.h:5
Definition LibraryItem.h:5
Definition MinecraftScreenModel.h:5
Definition OnlineSafetyProgressHandler.h:5
Definition SceneProvider.h:7
Definition PackManifestFactory.h:19
Definition ProgressHandler.h:5
Definition RealmsCreateParams.h:5
Definition ResourceLocation.h:15
Definition SceneFactoryProxy.h:5
Definition SceneFactory.h:5
Definition ScreenController.h:5
Definition TaskGroup.h:61
Definition UIControlFactory.h:5
Definition UISoundPlayer.h:5
Definition VisualTree.h:5
Definition ActiveDirectoryModalArgs.h:5
Definition ActorUniqueID.h:5
Definition ContentItem.h:5
Definition DimensionType.h:5
Definition EDULibraryCategory.h:5
Definition INpcDialogueData.h:12
Definition LevelSummary.h:30
Definition ModalScreenData.h:5
Definition PackContentItem.h:5
Definition PackSettingsInfo.h:5
Definition InviteLink.h:7
Definition SceneFactory.h:13
Definition StoreDataDrivenScreenParams.h:5
Definition UserManagementModalScreenData.h:5
Definition WorldTemplateInfo.h:12