3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/LastClickedSource.h"
7#include "mc/client/gui/CraftingType.h"
8#include "mc/client/gui/EncyclopediaTopicIndex.h"
9#include "mc/client/gui/HowToPlayTopicIndex.h"
10#include "mc/client/gui/ProgressContentType.h"
11#include "mc/client/gui/SettingsTabIndex.h"
12#include "mc/client/gui/oreui/interface/RouteMode.h"
13#include "mc/client/gui/screens/OnlineSafetyDialogVisibility.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/utility/NonOwnerPointer.h"
30#include "mc/deps/core/utility/optional_ref.h"
31#include "mc/deps/core/utility/pub_sub/Subscription.h"
32#include "mc/deps/input/interface/GameControllerErrorType.h"
33#include "mc/events/OpenCodeMethod.h"
34#include "mc/util/UploadState.h"
35#include "mc/world/level/GameType.h"
36#include "mc/world/level/block/actor/BlockActorType.h"
37#include "mc/world/level/storage/StorageVersion.h"
53class IStoreCatalogItem;
59class OfferCollectionComponent;
70class StoreCatalogItem;
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;
120 MCAPI ~PreCachePackage();
130 using InGameScreenCreator = ::std::function<::std::shared_ptr<::UIScene>(
134 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
135 ::std::string
const&,
144 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
145 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraft;
146 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>> mAdvancedGraphicsOptions;
147 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
148 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
149 ::ll::TypedStorage<1, 1, bool> mUseClientInstanceStack;
150 ::ll::TypedStorage<8, 8, ::OreUI::SceneProvider&> mSceneProvider;
151 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::UISoundPlayer>> mSoundPlayer;
152 ::ll::TypedStorage<8, 8, ::CachedScenes&> mCachedScenes;
153 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::SceneFactory::PreCachePackage>>> mPreCachePackages;
154 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SceneFactoryProxy>> mProxy;
158 ::std::unordered_map<
162 ::std::function<::std::shared_ptr<::UIScene>(
166 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
167 ::std::string
const&,
172 mRegisteredInGameScreens;
173 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSceneStackDestroyedSubscription;
178 SceneFactory& operator=(SceneFactory
const&);
179 SceneFactory(SceneFactory
const&);
185 virtual ~SceneFactory() ;
187 virtual ::std::shared_ptr<::AbstractScene>
188 createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab) ;
190 virtual ::std::shared_ptr<::AbstractScene> createStoreDataDrivenScreen(
191 ::StoreDataDrivenScreenParams
const& params,
192 bool const forceDisableProgressScreen,
193 ::std::function<
void()> initializedCallback
196 virtual ::std::shared_ptr<::AbstractScene> createStartMenuScreen(
bool shouldSendEvent) ;
198 virtual ::Json::Value
199 createGlobalVars(::Bedrock::NotNullNonOwnerPtr<::IUIDefRepository const> defRepository)
const = 0;
206 ::IMinecraftGame& minecraft,
207 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
208 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const& advancedGraphicsOptions,
209 ::OreUI::SceneProvider& sceneProvider
212 MCAPI ::Json::Value _calculateSafeZoneSize(
213 float safeZoneScaleFactor,
214 float screenPositionOffset,
219 MCAPI
void _createInventoryScreenCache();
221 MCAPI ::std::shared_ptr<::AbstractScene> _createPlayScreenImpl(
222 ::PlayScreenDefaultTab tab,
223 ::std::string
const& dirtyLevelId,
224 ::std::function<
void()> initializedCallback
227 MCAPI ::Json::Value _createSafeZoneSizeVar(
228 float safeZoneScaleFactor,
229 float screenPositionOffset,
234 MCAPI ::std::shared_ptr<::AbstractScene> _createScreen(::std::shared_ptr<::BaseScreen> newScreen);
236 MCAPI ::std::shared_ptr<::AbstractScene> _createStartMenuScreenForEditor(::std::function<
void()> loadCallback);
238 MCAPI
void _createWorldSettingsScreenCache();
240 MCAPI
void _preCacheScreen(::Json::Value
const& globalVars, ::std::string
const& screenName);
242 MCAPI
void _setUseClientInstanceStack(
bool useClientInstanceStack);
244 MCAPI ::std::shared_ptr<::AbstractScene> createAcceptDeclineInvitationScreen(
245 ::std::string
const& title,
246 ::std::string
const& subtitle,
247 ::std::function<
void(
bool,
bool)> callback
250 MCAPI ::std::shared_ptr<::AbstractScene>
251 createActiveDirectoryAuthenticationScreen(
bool displaySignIn, ::LastClickedSource lastClickedSource);
253 MCAPI ::std::shared_ptr<::AbstractScene> createActiveDirectoryModal(::ActiveDirectoryModalArgs
const& args);
255 MCAPI ::std::shared_ptr<::AbstractScene> createAddEditExternalServerScreen(
int id);
257 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocInProgressScreen(
bool enableAdhoc);
259 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocScreen();
261 MCAPI ::std::shared_ptr<::AbstractScene>
262 createApplyResourcePacksScreen(::std::function<
void(::MinecraftScreenModel&)> applyPacks);
264 MCAPI ::std::shared_ptr<::AbstractScene> createAutoSaveInfoScreen();
266 MCAPI ::std::shared_ptr<::AbstractScene>
267 createBookScreen(
int bookSlot,
bool editable,
int page, ::BlockActor* lectern);
269 MCAPI ::std::shared_ptr<::AbstractScene> createBundlePurchaseWarningScreen(
270 ::IStoreCatalogItem
const& catalogItem,
271 ::OfferCollectionComponent
const& bundleCollection,
272 ::std::function<
void()> onPurchaseCallback
275 MCAPI ::std::shared_ptr<::AbstractScene> createCannotUseNetworkFeaturesScreen();
277 MCAPI ::std::shared_ptr<::AbstractScene> createCellularDataWarningScreen(::std::function<
void(
bool)> callback);
279 MCAPI ::std::shared_ptr<::AbstractScene> createChalkboardScreen(::BlockPos
const& pos,
bool lockVisible);
281 MCAPI ::std::shared_ptr<::AbstractScene> createChatScreen();
283 MCAPI ::std::shared_ptr<::AbstractScene> createChooseRealmScreen(
284 ::std::function<
void(::Realms::World)> callback,
285 ::SlotSelectedAction action,
286 ::std::function<
void()> onCancelCallback
289 MCAPI ::std::shared_ptr<::AbstractScene> createCodeScreen(::OpenCodeMethod openMethod);
291 MCAPI ::std::shared_ptr<::AbstractScene>
292 createCommonDialogInfoScreen(::std::string
const& dialogTitle, ::std::string
const& dialogBody);
294 MCAPI ::std::shared_ptr<::AbstractScene>
295 createConnectGamepadScreen(::GameControllerErrorType controllerError, ::std::function<
void()> onCompleteCallback);
297 MCAPI ::std::shared_ptr<::AbstractScene> createConsoleScreen();
299 MCAPI ::std::shared_ptr<::AbstractScene> createContentLogHistoryScreen();
301 MCAPI ::std::shared_ptr<::AbstractScene>
302 createCreditsScreen(::CreditsType contentType, ::std::function<
void()> callback);
304 MCAPI ::std::shared_ptr<::AbstractScene> createCubeMapScreen(
bool flushable);
306 MCAPI ::std::shared_ptr<::AbstractScene>
307 createCustomTemplatesScreen(::std::vector<::WorldTemplateInfo>
const& customTemplates);
309 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceIntroPopup();
311 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceScreen();
313 MCAPI ::std::shared_ptr<::AbstractScene> createDeathScreen();
315 MCAPI ::std::shared_ptr<::AbstractScene> createDebugScreen();
317 MCAPI ::std::shared_ptr<::AbstractScene> createDeeplinkConfirmationScreen(::std::function<
void(
bool)> callback);
319 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteAccountScreen();
321 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteProgressScreen(
322 ::std::string
const& uniqueEventName,
323 ::IContentManager& contentManager,
324 ::std::vector<::std::shared_ptr<::ContentItem const>>&& itemsToDelete
327 MCAPI ::std::shared_ptr<::AbstractScene> createDevConsole();
329 MCAPI ::std::shared_ptr<::AbstractScene>
330 createDimensionChangeProgressScreen(
bool localServer, ::DimensionType targetDimensionID);
332 MCAPI ::std::shared_ptr<::AbstractScene>
333 createDisabledSkinScreen(
bool twoButtonWithCallback, ::std::function<
void()> callback);
335 MCAPI ::std::shared_ptr<::AbstractScene> createDisconnectScreen(
336 ::std::string
const& titleMessage,
337 ::std::string
const& displayMessage,
338 ::std::string
const& screenNameOverride,
339 ::std::string
const& telemetryOverride
342 MCAPI ::std::shared_ptr<::AbstractScene> createDlcProgressScreen(
343 ::std::vector<::DlcId>
const& dlcIds,
344 ::std::function<
void(
bool,
bool)> callback,
345 bool showCloseButton,
346 bool processingUpdates,
347 bool requireCancelToExit
350 MCAPI ::std::shared_ptr<::AbstractScene> createEDULibraryCategoryScreen(
351 ::std::string
const& title,
352 ::std::string
const& icon,
353 ::std::string
const& description,
354 ::std::string
const& screenshotRatio,
356 ::std::vector<::EDULibraryCategory>
const& categories,
360 MCAPI ::std::shared_ptr<::AbstractScene> createEDUPlayScreen(::std::string initialCode);
362 MCAPI ::std::shared_ptr<::AbstractScene> createEDUServersScreen();
364 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldTemplatesScreen();
366 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldsScreen();
368 MCAPI ::std::shared_ptr<::AbstractScene> createEditWorldScreen(
369 ::LevelSummary
const& levelSummary,
370 ::std::string
const& packId,
371 ::std::function<
void()> onOpenCallback
374 MCAPI ::std::shared_ptr<::AbstractScene> createEmoteWheelScreen();
376 MCAPI ::std::shared_ptr<::AbstractScene> createEncryptionWarningScreen(::std::function<
void(
bool)> callback);
378 MCAPI ::std::shared_ptr<::AbstractScene> createEncyclopediaScreen(::EncyclopediaTopicIndex startingTopicIndex);
380 MCAPI ::std::shared_ptr<::AbstractScene> createExpandedSkinPackScreen(
381 ::StoreCatalogItem
const& catalogItem,
382 ::SkinPackModel& skinPackModel,
383 ::SkinPackCollectionModel& skinPackCollection
386 MCAPI ::std::shared_ptr<::AbstractScene> createExternalLinkDialogScreen(
387 ::std::string
const& title,
388 ::std::string
const& externalLink,
389 ::std::string
const& message,
390 ::std::string
const& goToPageText,
391 ::std::string
const& secondButtonText,
392 ::std::function<
void()>
const& callback
395 MCAPI ::std::shared_ptr<::AbstractScene>
396 createFeedbackPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
398 MCAPI ::std::shared_ptr<::AbstractScene> createFileDownloadProgressScreen(
399 ::std::string
const& realmID,
401 ::std::string
const& realmName,
402 ::std::string
const& realmVersion,
403 ::std::string
const& realmVersionName,
404 ::std::function<
void(
bool)> callback
407 MCAPI ::std::shared_ptr<::AbstractScene> createFileUploadProgressScreen(
408 ::std::string
const& realmID,
409 ::std::string
const& fileID,
412 ::Core::FileUploadType fileUploadType,
413 ::std::function<
void(::UploadState, ::Realms::World)> callback
416 MCAPI ::std::shared_ptr<::AbstractScene> createGameInputErrorScreen(::std::function<
void()> callback);
418 MCAPI ::std::shared_ptr<::AbstractScene> createGamepadDisconnectScreen();
420 MCAPI ::std::shared_ptr<::AbstractScene> createGameplayScreen();
422 MCAPI ::std::shared_ptr<::AbstractScene> createGammaCalibrationScreen();
424 MCAPI ::std::shared_ptr<::AbstractScene> createGatheringInfoScreen(
bool autoConnect);
426 MCAPI ::std::shared_ptr<::AbstractScene> createGatheringWarningScreen(::std::string
const& messageOverride);
428 MCAPI ::std::shared_ptr<::AbstractScene> createGlobalPauseScreen();
430 MCAPI ::std::shared_ptr<::AbstractScene> createHowToPlayScreen(::HowToPlayTopicIndex startingTopicIndex);
432 MCAPI ::std::shared_ptr<::AbstractScene> createHudScreen();
434 MCAPI ::std::shared_ptr<::AbstractScene> createIPSafetyDialogScreen(
int externalServerId);
436 MCAPI ::std::shared_ptr<::AbstractScene> createImmersiveReader(::std::string readerText);
438 MCAPI ::std::shared_ptr<::AbstractScene> createImportExportProgressScreen(
439 ::std::string
const& titleText,
440 ::std::string
const& uniqueEventName,
441 ::std::string
const& messageText
444 MCAPI ::std::shared_ptr<::AbstractScene> createInBedScreen();
446 MCAPI ::std::shared_ptr<::AbstractScene>
447 createInGameSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
449 MCAPI ::std::shared_ptr<::AbstractScene>
450 createInGameScreen(::std::string
const& name, ::Player& player, ::BlockPos
const& pos, ::ActorUniqueID uniqueId);
452 MCAPI ::std::shared_ptr<::AbstractScene> createInventoryScreen(::CraftingType craftingType);
454 MCAPI ::std::shared_ptr<::AbstractScene> createInviteScreen();
456 MCAPI ::std::shared_ptr<::AbstractScene>
457 createLateJoinPreGameScreen(::std::function<
void()>
const& userReadyCallback,
bool hasXBLBroadcast);
459 MCAPI ::std::shared_ptr<::AbstractScene> createLeaveLevelScreen(
460 ::std::string
const& uniqueEventName,
461 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
465 MCAPI ::std::shared_ptr<::AbstractScene>
466 createLegacyCreateWorldFromTemplateScreen(::LevelSummary
const& levelSummary);
468 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyCreateWorldScreen();
470 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyRealmsPlusEndedScreen();
472 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyWorldTemplateLoadingScreen(::std::string
const& manifestId);
474 MCAPI ::std::shared_ptr<::AbstractScene> createLessonCompleteScreen();
476 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryItemScreen(
477 ::std::shared_ptr<::LibraryItem> item,
478 ::std::unordered_map<::std::string, ::std::string> additionalOptions
481 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryModalScreen(
482 ::LibraryModalScreenType type,
483 ::std::function<
void(
bool)> callback,
484 ::std::vector<::std::pair<::std::string, ::std::string>> eventProperties
487 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryScreen(::std::shared_ptr<::LibraryCollection> collection);
489 MCAPI ::std::shared_ptr<::AbstractScene> createLibrarySearchScreen(
490 ::std::shared_ptr<::LibraryCollection> collection,
491 ::std::string
const& libraryTitle,
492 ::std::string
const& libraryIcon
495 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryTagScreen(
496 ::std::shared_ptr<::LibraryCollection> collection,
497 ::std::string
const& libraryTitle,
498 ::std::string
const& libraryIcon,
499 ::std::string
const& libraryPageDescription
502 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryWorldScreen(
503 ::std::shared_ptr<::LibraryCollection> collection,
504 ::std::string libraryTitle,
505 ::std::string libraryIcon,
506 ::std::string libraryPageDescription,
507 ::std::string
const& categoryTitle
510 MCAPI ::std::shared_ptr<::AbstractScene> createLocalWorldPickerScreen(
511 ::std::string
const& realmID,
513 ::std::function<
void(::UploadState, ::Realms::World)> callbackAfterUpload
516 MCAPI ::std::shared_ptr<::AbstractScene>
517 createMakeInfiniteScreen(::LevelSummary
const& editedLevel, ::StorageVersion storageVersion);
519 MCAPI ::std::shared_ptr<::AbstractScene> createManifestValidationScreen(
520 ::PackManifestFactory& manifestFactory,
521 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
522 ::ResourceLocation
const& resourceLocation,
523 ::Core::Path
const& originalFilePath,
524 bool packInUserDataPath,
525 ::std::shared_ptr<::PackContentItem const> item
528 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPDPScreen(
529 ::MarketplacePassTabIndex tabIndex,
530 ::sidebar::navigationLayout::Type sidebarLayoutType
533 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseAmazonDeviceWarningScreen();
535 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseWarningScreen();
537 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassUpsellScreen();
539 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassWelcomeScreen();
541 MCAPI ::std::shared_ptr<::AbstractScene> createMigrationErrorScreen();
543 MCAPI ::std::shared_ptr<::AbstractScene> createMobEffectsScreen();
545 MCAPI ::std::shared_ptr<::AbstractScene> createModalProgressScreen(
546 ::std::string
const& uniqueEventName,
547 ::std::unique_ptr<::ProgressHandler> progressHandler,
549 bool forceRenderBelow,
550 ::std::string
const& screenNameOverride,
552 float backgroundFillAlpha
555 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
556 ::std::string
const& uniqueEventName,
557 ::std::unique_ptr<::ProgressHandler> connectHandler,
558 bool allowSmallDownloads,
559 bool sendProgressTelem,
560 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
563 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
564 ::std::string
const& uniqueEventName,
565 ::std::deque<::std::unique_ptr<::ProgressHandler>> connectHandlers,
566 bool allowSmallDownloads,
567 bool sendProgressTelem,
568 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
571 MCAPI ::std::shared_ptr<::AbstractScene> createNoInvitesOrJoiningScreen();
573 MCAPI ::std::shared_ptr<::AbstractScene> createNoLicenseScreen();
575 MCAPI ::std::shared_ptr<::AbstractScene> createNoWifiWarningScreen();
577 MCAPI ::std::shared_ptr<::AbstractScene> createNotSignedIntoNintendoScreen(::std::string
const& messageOverride);
579 MCAPI ::std::shared_ptr<::AbstractScene>
580 createNpcInteractScreen(::Player& player, ::std::shared_ptr<::INpcDialogueData> data);
582 MCAPI ::std::shared_ptr<::AbstractScene> createOSWriteThrottleDialogScreen(
583 ::std::chrono::duration<
double, ::std::ratio<1, 1>> totalWait,
584 ::std::shared_ptr<bool> dialogStillAlive
587 MCAPI ::std::shared_ptr<::AbstractScene> createOnlineSafetyDialogScreen(::OnlineSafetyProgressHandler& handler);
589 MCAPI ::std::shared_ptr<::AbstractScene> createOptionsScreen(
590 ::SettingsTabIndex startingTabIndex,
591 bool navToMenuOnExit,
592 bool maintainOldFocus,
593 ::std::string
const& initialPackId,
597 MCAPI ::std::shared_ptr<::AbstractScene> createOptionsScreen(
598 ::LevelSummary
const& levelSummary,
599 ::SettingsTabIndex startingTabIndex,
600 bool navToMenuOnExit,
601 bool maintainOldFocus,
602 ::std::string
const& initialPackId,
606 MCAPI ::std::shared_ptr<::AbstractScene> createPackSettingsScreen(::PackSettingsInfo packSettingsInfo);
608 MCAPI ::std::shared_ptr<::AbstractScene> createPauseScreen(
bool overlaySocialDrawerOnce);
610 MCAPI ::std::shared_ptr<::AbstractScene> createPermissionsScreen(::ActorUniqueID defaultPlayerId);
612 MCAPI ::std::shared_ptr<::AbstractScene>
613 createPlatformNetworkConnectConfirmationScreen(::std::function<
void(
bool)> callback);
615 MCAPI ::std::shared_ptr<::AbstractScene>
616 createPlatformSplitScreenConnectConfirmationScreen(::std::function<
void(
bool)> callback);
618 MCAPI ::std::shared_ptr<::AbstractScene>
619 createPlatformStoreConnectConfirmationScreen(::std::function<
void(
bool)> callback);
621 MCAPI ::std::shared_ptr<::AbstractScene>
622 createPlayScreen(::PlayScreenDefaultTab tab, ::std::string
const& dirtyLevelId);
624 MCAPI ::std::shared_ptr<::AbstractScene> createPortfolioScreen();
626 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
627 ::std::string
const& uniqueEventName,
628 ::std::unique_ptr<::ProgressHandler> progressHandler,
630 bool sendProgressTelem,
631 ::std::string
const& overrideScreen
634 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
635 ::std::string
const& uniqueEventName,
636 ::std::deque<::std::unique_ptr<::ProgressHandler>>&& progressHandlerList,
638 bool sendProgressTelem,
639 ::std::string
const& overrideScreen
642 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
643 ::std::string
const& uniqueEventName,
644 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
646 bool sendProgressTelem,
647 bool useRandomProgressMessage,
648 bool allowSmallDownloads,
649 ::ProgressContentType contentType,
653 MCAPI ::std::shared_ptr<::AbstractScene>
654 createRatingPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
656 MCAPI ::std::shared_ptr<::AbstractScene> createRealmNetworkProgressScreen(
657 ::std::string
const& uniqueEventName,
658 ::std::unique_ptr<::ProgressHandler> connectHandler
661 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsAllowListScreen(
662 ::Realms::World
const& world,
663 ::std::function<
void()> followUpActionAfterCreation,
667 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsCreateScreen(::RealmsCreateParams
const& screenDetails);
669 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinkSettingScreen(
670 ::Realms::World
const& world,
671 ::Realms::InviteLink
const& link,
672 ::SettingsTabIndex initialTab
675 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinksScreen(::Realms::World
const& world);
677 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsJoinProgressScreen(
678 ::std::string
const& uniqueEventName,
679 ::std::unique_ptr<::ProgressHandler> connectHandler,
680 ::std::unique_ptr<::ProgressHandler> progressHandler,
682 bool realmsPlusExpired,
683 ::std::function<
void()> onlineSafetyCancelledCallback
686 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsManageMembersScreen(::Realms::World
const& world);
688 MCAPI ::std::shared_ptr<::AbstractScene>
689 createRealmsManageScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
691 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPackErrorsScreen();
693 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPendingInvitesScreen(
bool hasPendingInvites);
695 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPlusPurchaseWarningScreen(::std::function<
void()> callback);
697 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSavesScreen(::Realms::World
const& world);
699 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSettingsScreen(
700 ::Realms::World
const& world,
701 ::SettingsTabIndex initialTab,
702 ::std::string
const& initialPackId
705 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSharingLauncherScreen(::std::string
const& realmsInvite);
707 MCAPI ::std::shared_ptr<::AbstractScene>
708 createRealmsSlotSettingsScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
710 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSlotsScreen(::Realms::World& world);
712 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsStoriesTransitionScreen(::Realms::World
const& world);
714 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreen();
716 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreenWithParams(
717 ::Realms::World
const& world,
718 ::std::string
const& ip,
720 ::std::string
const& serverRegion,
724 MCAPI ::std::shared_ptr<::AbstractScene> createSafeZoneScreen();
726 MCAPI ::std::shared_ptr<::AbstractScene> createSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
728 MCAPI ::std::shared_ptr<::AbstractScene> createScreenshotScreen();
730 MCAPI ::std::shared_ptr<::AbstractScene> createSelectWorldScreen(
732 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>
736 MCAPI ::std::shared_ptr<::AbstractScene> createServerForm(uint formId, ::std::string
const& formJSON);
738 MCAPI ::std::shared_ptr<::AbstractScene>
739 createSignScreen(::BlockPos
const& pos, ::BlockActorType blockActorType,
bool isFrontSide);
741 MCAPI ::std::shared_ptr<::AbstractScene> createSkinPickerScreen();
743 MCAPI ::std::shared_ptr<::AbstractScene> createStorageMigrationProgressScreen(
744 ::Bedrock::NonOwnerPointer<::Bedrock::StorageMigration::StorageMigrationService>
const& migrationService
747 MCAPI ::std::shared_ptr<::AbstractScene> createStorageSpaceWarningScreen(::std::string
const& message);
749 MCAPI ::std::shared_ptr<::AbstractScene> createStoreFeaturesDisabledScreen(::std::string
const& messageOverride);
751 MCAPI ::std::shared_ptr<::AbstractScene>
752 createStoreInventoryScreen(::InventoryTabIndex tabIndex, ::std::optional<::StoreDataDrivenScreenParams> paramsOpt);
754 MCAPI ::std::shared_ptr<::AbstractScene>
755 createSubmitFeedbackScreen(::std::string
const& itemId,
int feedbackTextLimit);
757 MCAPI ::std::shared_ptr<::AbstractScene> createSunsettingScreen(::std::string& title);
759 MCAPI ::std::shared_ptr<::AbstractScene> createTTSEnabledWarningScreen(::TTSEnabledStatus status);
761 MCAPI ::std::shared_ptr<::AbstractScene> createTTSErrorScreen();
763 MCAPI ::std::shared_ptr<::AbstractScene> createToastScreen();
765 MCAPI ::std::shared_ptr<::AbstractScene> createTokenFAQScreen();
767 MCAPI ::std::shared_ptr<::AbstractScene> createTokenPopupScreen();
769 MCAPI ::std::shared_ptr<::AbstractScene> createTrade2Screen(::Player&, ::ActorUniqueID
const& uniqueID);
771 MCAPI ::std::shared_ptr<::AbstractScene> createTradeScreen(::Player&, ::ActorUniqueID
const& uniqueID);
773 MCAPI ::std::shared_ptr<::UIScene> createUIScene(
774 ::IMinecraftGame& mc,
775 ::IClientInstance& client,
776 ::std::string
const& screenName,
777 ::std::shared_ptr<::ScreenController> controller
780 MCAPI ::std::shared_ptr<::AbstractScene>
781 createUpdateWorldHeightScreen(::std::function<
void(
bool)> startWorldCallback);
783 MCAPI ::std::shared_ptr<::AbstractScene> createUpsellScreen(
bool isNewWorld,
bool timeExpired);
785 MCAPI ::std::shared_ptr<::AbstractScene> createUserManagementModalScreen(
786 ::UserManagementModalScreenData
const& screenData,
787 ::std::function<
void(
bool)> callback
790 MCAPI ::std::shared_ptr<::AbstractScene> createVersionUpdateScreen(::UpdateVersionScreenContext context);
792 MCAPI ::std::shared_ptr<::AbstractScene> createWin10TrialConversionScreen();
794 MCAPI ::std::shared_ptr<::AbstractScene>
795 createWorldConversionCompleteScreen(::std::string
const& levelId, ::std::function<
void()> cancelCallback);
797 MCAPI ::std::shared_ptr<::AbstractScene> createWorldRecoveryScreen(::std::function<
void()> successCallback);
799 MCAPI ::std::shared_ptr<::AbstractScene> createWorldSeedCatalogScreen(
800 ::std::function<
void(::std::string
const&, ::std::string
const&, ::Core::Path
const&)> closeCallback
803 MCAPI ::std::shared_ptr<::AbstractScene> createWorldTemplateScreen(
bool hideTopBar);
805 MCAPI ::std::shared_ptr<::AbstractScene> createXblConsoleQrSignInScreen(::std::string
const& code);
807 MCAPI ::std::shared_ptr<::AbstractScene> createXblConsoleSignInScreen(::std::string
const& code);
809 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
810 ::std::string
const& signInSource,
811 ::std::function<
void()> callBackAfterSignIn,
812 ::std::function<
void()> callBackAfterCancel
815 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
816 ::std::string
const& signInSource,
817 ::std::string
const& redirectToRoute,
818 bool replacePreviousRouteAfterSignIn
821 MCAPI ::Json::Value generateGlobalVars(::std::string
const& screenName, ::ScreenController& controller);
823 MCAPI ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> getCurrentSceneStack();
825 MCFOLD
bool isUsingClientSceneStack();
827 MCAPI
void precacheGameplayScreens();
829 MCAPI
void precacheOreUIGameplayViews();
831 MCAPI
void registerInGameScreen(
832 ::std::string
const& name,
833 ::std::function<::std::shared_ptr<::UIScene>(
837 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
838 ::std::string
const&,
845 MCAPI
void registerInGameScreen(
846 ::std::string
const& registeredName,
847 ::std::string
const& resourceName,
848 ::std::function<::std::shared_ptr<::UIScene>(
852 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const&,
853 ::std::string
const&,
860 MCAPI
void resetSceneStackForOutOfGameUse();
862 MCAPI
bool screenPrecacheInProgress()
const;
864 MCFOLD
void setIsEditorModeEnabled(
bool isEditorModeEnabled);
866 MCAPI
void terminateAsyncUILoading();
868 MCAPI
void unregisterInGameScreens();
875 ::IMinecraftGame& minecraft,
876 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
877 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>
const& advancedGraphicsOptions,
878 ::OreUI::SceneProvider& sceneProvider
891 MCAPI ::std::shared_ptr<::AbstractScene> $createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab);
893 MCAPI ::std::shared_ptr<::AbstractScene> $createStoreDataDrivenScreen(
894 ::StoreDataDrivenScreenParams
const& params,
895 bool const forceDisableProgressScreen,
896 ::std::function<
void()> initializedCallback
899 MCAPI ::std::shared_ptr<::AbstractScene> $createStartMenuScreen(
bool shouldSendEvent);
Definition AbstractScene.h:5
Definition BaseScreen.h:5
Definition StorageMigrationService.h:21
Definition BlockActor.h:30
Definition CachedScenes.h:5
Definition IAdvancedGraphicsOptions.h:16
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:21
Definition ProgressHandler.h:5
Definition RealmsCreateParams.h:5
Definition ResourceLocation.h:15
Definition SceneFactoryProxy.h:5
Definition SceneFactory.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5
Definition SkinPackCollectionModel.h:5
Definition SkinPackModel.h:5
Definition TaskGroup.h:55
Definition UIControlFactory.h:5
Definition UISoundPlayer.h:5
Definition VisualTree.h:5
Definition ActiveDirectoryModalArgs.h:5
Definition ActorUniqueID.h:10
Definition ContentItem.h:5
Definition DimensionType.h:5
Definition EDULibraryCategory.h:5
Definition INpcDialogueData.h:12
Definition LevelSummary.h:30
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:16