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"
56class IStoreCatalogItem;
62class OfferCollectionComponent;
91namespace Core {
class Path; }
92namespace Json {
class Value; }
95namespace Realms {
struct World; }
110 ::ll::TypedStorage<8, 32, ::std::string> screenName;
111 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIControlFactory>> controlFactory;
112 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VisualTree>> visualTree;
113 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LayoutManager>> layoutManager;
114 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIControl>> rootControl;
115 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> taskHandle;
119 using InGameScreenCreator = ::std::function<::std::shared_ptr<
120 ::UIScene>(::SceneFactory&, ::std::string
const&, ::Player&, ::BlockPos
const&, ::ActorUniqueID)>;
125 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
126 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraft;
127 ::ll::TypedStorage<8, 8, ::ILayoutServiceProvider&> mLayoutServiceProvider;
128 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
129 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
130 ::ll::TypedStorage<1, 1, bool> mUseClientInstanceStack;
131 ::ll::TypedStorage<8, 8, ::OreUI::SceneProvider&> mSceneProvider;
132 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::UISoundPlayer>> mSoundPlayer;
133 ::ll::TypedStorage<8, 8, ::CachedScenes&> mCachedScenes;
134 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::SceneFactory::PreCachePackage>>> mPreCachePackages;
135 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SceneFactoryProxy>> mProxy;
139 ::std::unordered_map<
143 ::std::function<::std::shared_ptr<
144 ::UIScene>(::SceneFactory&, ::std::string
const&, ::Player&, ::BlockPos
const&, ::ActorUniqueID)>>>>
145 mRegisteredInGameScreens;
146 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSceneStackDestroyedSubscription;
147 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ISceneFactoryImpl>> mFactoryImpl;
152 SceneFactory& operator=(SceneFactory
const&);
153 SceneFactory(SceneFactory
const&);
159 virtual ~SceneFactory() ;
161 virtual ::std::shared_ptr<::AbstractScene> createDevConsole();
163 virtual ::std::shared_ptr<::AbstractScene>
164 createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab) ;
166 virtual ::std::shared_ptr<::AbstractScene> createStoreDataDrivenScreen(
167 ::StoreDataDrivenScreenParams
const& params,
168 bool const forceDisableProgressScreen,
169 ::std::function<
void()> initializedCallback
172 virtual ::std::shared_ptr<::AbstractScene> createStartMenuScreen(
bool shouldSendEvent) ;
174 virtual ::Json::Value
175 createGlobalVars(::Bedrock::NotNullNonOwnerPtr<::IUIDefRepository const> defRepository)
const = 0;
182 ::std::unique_ptr<::ISceneFactoryImpl> impl,
183 ::IMinecraftGame& minecraft,
184 ::ILayoutServiceProvider& layoutServiceProvider,
185 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
186 ::OreUI::SceneProvider& sceneProvider
189 MCAPI ::Json::Value _calculateSafeZoneSize(
190 float safeZoneScaleFactor,
191 float screenPositionOffset,
196 MCAPI ::std::shared_ptr<::AbstractScene> _createPlayScreenImpl(
197 ::PlayScreenDefaultTab tab,
198 ::std::string
const& dirtyLevelId,
199 ::std::function<
void()> initializedCallback
202 MCAPI ::Json::Value _createSafeZoneSizeVar(
203 float safeZoneScaleFactor,
204 float screenPositionOffset,
209 MCAPI ::std::shared_ptr<::AbstractScene> _createScreen(::std::shared_ptr<::BaseScreen> newScreen);
211 MCAPI
void _preCacheScreen(::Json::Value
const& globalVars, ::std::string
const& screenName);
213 MCAPI ::std::shared_ptr<::AbstractScene> createAcceptDeclineInvitationScreen(
214 ::std::string
const& title,
215 ::std::string
const& subtitle,
216 ::std::function<
void(
bool,
bool)> callback
219 MCAPI ::std::shared_ptr<::AbstractScene>
220 createActiveDirectoryAuthenticationScreen(
bool displaySignIn, ::LastClickedSource lastClickedSource);
222 MCAPI ::std::shared_ptr<::AbstractScene> createActiveDirectoryModal(::ActiveDirectoryModalArgs
const& args);
224 MCAPI ::std::shared_ptr<::AbstractScene> createAddEditExternalServerScreen(
int id);
226 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocInProgressScreen(
bool enableAdhoc);
228 MCAPI ::std::shared_ptr<::AbstractScene> createAdhocScreen();
230 MCAPI ::std::shared_ptr<::AbstractScene>
231 createApplyResourcePacksScreen(::std::function<
void(::MinecraftScreenModel&)> applyPacks);
233 MCAPI ::std::shared_ptr<::AbstractScene> createAutoSaveInfoScreen();
235 MCAPI ::std::shared_ptr<::AbstractScene> createBetaFeedbackQrScreen(::std::string
const& feedbackUrl);
237 MCAPI ::std::shared_ptr<::AbstractScene>
238 createBookScreen(
int bookSlot,
bool editable,
int page, ::BlockActor* lectern);
240 MCAPI ::std::shared_ptr<::AbstractScene> createBundlePurchaseWarningScreen(
241 ::IStoreCatalogItem
const& catalogItem,
242 ::OfferCollectionComponent
const& bundleCollection,
243 ::std::function<
void()> onPurchaseCallback
246 MCAPI ::std::shared_ptr<::AbstractScene> createCannotUseNetworkFeaturesScreen();
248 MCAPI ::std::shared_ptr<::AbstractScene> createCellularDataWarningScreen(::std::function<
void(
bool)> callback);
250 MCAPI ::std::shared_ptr<::AbstractScene> createChalkboardScreen(::BlockPos
const& pos,
bool lockVisible);
252 MCAPI ::std::shared_ptr<::AbstractScene> createChatScreen();
254 MCAPI ::std::shared_ptr<::AbstractScene> createChooseRealmScreen(
255 ::std::function<
void(::Realms::World)> callback,
256 ::SlotSelectedAction action,
257 ::std::function<
void()> onCancelCallback
260 MCAPI ::std::shared_ptr<::AbstractScene> createCodeScreen(::OpenCodeMethod openMethod);
262 MCAPI ::std::shared_ptr<::AbstractScene>
263 createCommonDialogInfoScreen(::std::string
const& dialogTitle, ::std::string
const& dialogBody);
265 MCAPI ::std::shared_ptr<::AbstractScene>
266 createConnectGamepadScreen(::GameControllerErrorType controllerError, ::std::function<
void()> onCompleteCallback);
268 MCAPI ::std::shared_ptr<::AbstractScene> createConsoleScreen();
270 MCAPI ::std::shared_ptr<::AbstractScene> createContentLogHistoryScreen();
272 MCAPI ::std::shared_ptr<::AbstractScene>
273 createCreditsScreen(::CreditsType contentType, ::std::function<
void()> callback);
275 MCAPI ::std::shared_ptr<::AbstractScene> createCubeMapScreen(
bool flushable);
277 MCAPI ::std::shared_ptr<::AbstractScene>
278 createCustomTemplatesScreen(::std::vector<::WorldTemplateInfo>
const& customTemplates);
280 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceIntroPopup();
282 MCAPI ::std::shared_ptr<::AbstractScene> createDayOneExperienceScreen();
284 MCAPI ::std::shared_ptr<::AbstractScene> createDeathScreen();
286 MCAPI ::std::shared_ptr<::AbstractScene> createDebugScreen();
288 MCAPI ::std::shared_ptr<::AbstractScene> createDeeplinkConfirmationScreen(::std::function<
void(
bool)> callback);
290 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteAccountScreen();
292 MCAPI ::std::shared_ptr<::AbstractScene> createDeleteProgressScreen(
293 ::std::string
const& uniqueEventName,
294 ::IContentManager& contentManager,
295 ::std::vector<::std::shared_ptr<::ContentItem const>>&& itemsToDelete
298 MCAPI ::std::shared_ptr<::AbstractScene>
299 createDimensionChangeProgressScreen(
bool localServer, ::DimensionType targetDimensionID);
301 MCAPI ::std::shared_ptr<::AbstractScene>
302 createDisabledSkinScreen(
bool twoButtonWithCallback, ::std::function<
void()> callback);
304 MCAPI ::std::shared_ptr<::AbstractScene> createDisconnectScreen(
305 ::std::string
const& titleMessage,
306 ::std::string
const& displayMessage,
307 ::std::string
const& screenNameOverride,
308 ::std::string
const& telemetryOverride
311 MCAPI ::std::shared_ptr<::AbstractScene> createDlcProgressScreen(
312 ::std::vector<::DlcId>
const& dlcIds,
313 ::std::function<
void(
bool,
bool)> callback,
314 bool showCloseButton,
315 bool processingUpdates,
316 bool requireCancelToExit
319 MCAPI ::std::shared_ptr<::AbstractScene> createEDULibraryCategoryScreen(
320 ::std::string
const& title,
321 ::std::string
const& icon,
322 ::std::string
const& description,
323 ::std::string
const& screenshotRatio,
325 ::std::vector<::EDULibraryCategory>
const& categories,
329 MCAPI ::std::shared_ptr<::AbstractScene> createEDUPlayScreen(::std::string initialCode);
331 MCAPI ::std::shared_ptr<::AbstractScene> createEDUServersScreen();
333 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldTemplatesScreen();
335 MCAPI ::std::shared_ptr<::AbstractScene> createEDUWorldsScreen();
337 MCAPI ::std::shared_ptr<::AbstractScene> createEditWorldScreen(
338 ::LevelSummary
const& levelSummary,
339 ::std::string
const& packId,
340 ::std::function<
void()> onOpenCallback
343 MCAPI ::std::shared_ptr<::AbstractScene> createEmoteWheelScreen();
345 MCAPI ::std::shared_ptr<::AbstractScene> createEncryptionWarningScreen(::std::function<
void(
bool)> callback);
347 MCAPI ::std::shared_ptr<::AbstractScene> createEncyclopediaScreen(::EncyclopediaTopicIndex startingTopicIndex);
349 MCAPI ::std::shared_ptr<::AbstractScene> createExternalLinkDialogScreen(
350 ::std::string
const& title,
351 ::std::string
const& externalLink,
352 ::std::string
const& message,
353 ::std::string
const& goToPageText,
354 ::std::string
const& secondButtonText,
355 ::std::function<
void()>
const& callback
358 MCAPI ::std::shared_ptr<::AbstractScene>
359 createFeedbackPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
361 MCAPI ::std::shared_ptr<::AbstractScene> createFileDownloadProgressScreen(
362 ::std::string
const& realmID,
364 ::std::string
const& realmName,
365 ::std::string
const& realmVersion,
366 ::std::string
const& realmVersionName,
367 ::std::function<
void(
bool)> callback
370 MCAPI ::std::shared_ptr<::AbstractScene> createFileUploadProgressScreen(
371 ::std::string
const& realmID,
372 ::std::string
const& fileID,
375 ::Core::FileUploadType fileUploadType,
376 ::std::function<
void(::UploadState, ::Realms::World)> callback
379 MCAPI ::std::shared_ptr<::AbstractScene> createGameInputErrorScreen(::std::function<
void()> callback);
381 MCAPI ::std::shared_ptr<::AbstractScene> createGamepadDisconnectScreen();
383 MCAPI ::std::shared_ptr<::AbstractScene> createGameplayScreen();
385 MCAPI ::std::shared_ptr<::AbstractScene> createGammaCalibrationScreen();
387 MCAPI ::std::shared_ptr<::AbstractScene> createGlobalPauseScreen();
389 MCAPI ::std::shared_ptr<::AbstractScene> createHowToPlayScreen(::HowToPlayTopicIndex startingTopicIndex);
391 MCAPI ::std::shared_ptr<::AbstractScene> createHudScreen();
393 MCAPI ::std::shared_ptr<::AbstractScene> createIPSafetyDialogScreen(
int externalServerId);
395 MCAPI ::std::shared_ptr<::AbstractScene> createImmersiveReader(::std::string readerText);
397 MCAPI ::std::shared_ptr<::AbstractScene> createImportExportProgressScreen(
398 ::std::string
const& titleText,
399 ::std::string
const& uniqueEventName,
400 ::std::string
const& messageText
403 MCAPI ::std::shared_ptr<::AbstractScene> createInBedScreen();
405 MCAPI ::std::shared_ptr<::AbstractScene>
406 createInGameSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
408 MCAPI ::std::shared_ptr<::AbstractScene>
409 createInGameScreen(::std::string
const& name, ::Player& player, ::BlockPos
const& pos, ::ActorUniqueID uniqueId);
411 MCAPI ::std::shared_ptr<::AbstractScene> createInventoryScreen(::CraftingType craftingType);
413 MCAPI ::std::shared_ptr<::AbstractScene> createInviteScreen();
415 MCAPI ::std::shared_ptr<::AbstractScene>
416 createLateJoinPreGameScreen(::std::function<
void()>
const& userReadyCallback,
bool hasXBLBroadcast);
418 MCAPI ::std::shared_ptr<::AbstractScene> createLeaveLevelScreen(
419 ::std::string
const& uniqueEventName,
420 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
424 MCAPI ::std::shared_ptr<::AbstractScene>
425 createLegacyCreateWorldFromTemplateScreen(::LevelSummary
const& levelSummary);
427 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyCreateWorldScreen();
429 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyRealmsPlusEndedScreen();
431 MCAPI ::std::shared_ptr<::AbstractScene> createLegacyWorldTemplateLoadingScreen(::std::string
const& manifestId);
433 MCAPI ::std::shared_ptr<::AbstractScene> createLessonCompleteScreen();
435 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryItemScreen(
436 ::std::shared_ptr<::LibraryItem> item,
437 ::std::unordered_map<::std::string, ::std::string> additionalOptions
440 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryModalScreen(
441 ::LibraryModalScreenType type,
442 ::std::function<
void(
bool)> callback,
443 ::std::vector<::std::pair<::std::string, ::std::string>> eventProperties
446 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryScreen(::std::shared_ptr<::LibraryCollection> collection);
448 MCAPI ::std::shared_ptr<::AbstractScene> createLibrarySearchScreen(
449 ::std::shared_ptr<::LibraryCollection> collection,
450 ::std::string
const& libraryTitle,
451 ::std::string
const& libraryIcon
454 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryTagScreen(
455 ::std::shared_ptr<::LibraryCollection> collection,
456 ::std::string
const& libraryTitle,
457 ::std::string
const& libraryIcon,
458 ::std::string
const& libraryPageDescription
461 MCAPI ::std::shared_ptr<::AbstractScene> createLibraryWorldScreen(
462 ::std::shared_ptr<::LibraryCollection> collection,
463 ::std::string libraryTitle,
464 ::std::string libraryIcon,
465 ::std::string libraryPageDescription,
466 ::std::string
const& categoryTitle
469 MCAPI ::std::shared_ptr<::AbstractScene> createLocalWorldPickerScreen(
470 ::std::string
const& realmID,
472 ::std::function<
void(::UploadState, ::Realms::World)> callbackAfterUpload
475 MCAPI ::std::shared_ptr<::AbstractScene>
476 createMakeInfiniteScreen(::LevelSummary
const& editedLevel, ::StorageVersion storageVersion);
478 MCAPI ::std::shared_ptr<::AbstractScene> createManifestValidationScreen(
479 ::PackManifestFactory& manifestFactory,
480 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
481 ::ResourceLocation
const& resourceLocation,
482 ::Core::Path
const& originalFilePath,
483 bool packInUserDataPath,
484 ::std::shared_ptr<::PackContentItem const> item
487 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPDPScreen(
488 ::MarketplacePassTabIndex tabIndex,
489 ::sidebar::navigationLayout::Type sidebarLayoutType
492 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseAmazonDeviceWarningScreen();
494 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassPurchaseWarningScreen();
496 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassUpsellScreen();
498 MCAPI ::std::shared_ptr<::AbstractScene> createMarketplacePassWelcomeScreen();
500 MCAPI ::std::shared_ptr<::AbstractScene> createMigrationErrorScreen();
502 MCAPI ::std::shared_ptr<::AbstractScene> createMobEffectsScreen();
504 MCAPI ::std::shared_ptr<::AbstractScene> createModalProgressScreen(
505 ::std::string
const& uniqueEventName,
506 ::std::unique_ptr<::ProgressHandler> progressHandler,
508 bool forceRenderBelow,
509 ::std::string
const& screenNameOverride,
511 float backgroundFillAlpha
514 MCAPI ::std::shared_ptr<::AbstractScene> createModalScreen(::ModalScreenData
const& modalScreenData);
516 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
517 ::std::string
const& uniqueEventName,
518 ::std::unique_ptr<::ProgressHandler> connectHandler,
519 bool allowSmallDownloads,
520 bool sendProgressTelem,
521 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
524 MCAPI ::std::shared_ptr<::AbstractScene> createNetworkProgressScreen(
525 ::std::string
const& uniqueEventName,
526 ::std::deque<::std::unique_ptr<::ProgressHandler>>&& connectHandlers,
527 bool allowSmallDownloads,
528 bool sendProgressTelem,
529 ::OnlineSafetyDialogVisibility onlineSafetyDialogVisibility
532 MCAPI ::std::shared_ptr<::AbstractScene> createNoInvitesOrJoiningScreen();
534 MCAPI ::std::shared_ptr<::AbstractScene> createNoLicenseScreen();
536 MCAPI ::std::shared_ptr<::AbstractScene> createNoWifiWarningScreen();
538 MCAPI ::std::shared_ptr<::AbstractScene> createNotSignedIntoNintendoScreen(::std::string
const& messageOverride);
540 MCAPI ::std::shared_ptr<::AbstractScene>
541 createNpcInteractScreen(::Player& player, ::std::shared_ptr<::INpcDialogueData> data);
543 MCAPI ::std::shared_ptr<::AbstractScene> createOSWriteThrottleDialogScreen(
544 ::std::chrono::duration<
double, ::std::ratio<1, 1>> totalWait,
545 ::std::shared_ptr<bool> dialogStillAlive
548 MCAPI ::std::shared_ptr<::AbstractScene> createOnlineSafetyDialogScreen(::OnlineSafetyProgressHandler& handler);
550 MCAPI ::std::shared_ptr<::AbstractScene> createOptionsScreen(
551 ::LevelSummary
const& levelSummary,
552 ::SettingsTabIndex startingTabIndex,
553 bool navToMenuOnExit,
554 bool maintainOldFocus,
555 ::std::string
const& initialPackId,
560 MCAPI ::std::shared_ptr<::AbstractScene> createPackSettingsScreen(::PackSettingsInfo packSettingsInfo);
562 MCAPI ::std::shared_ptr<::AbstractScene> createPauseScreen(
bool overlaySocialDrawerOnce);
564 MCAPI ::std::shared_ptr<::AbstractScene> createPermissionsScreen(::ActorUniqueID defaultPlayerId);
566 MCAPI ::std::shared_ptr<::AbstractScene>
567 createPlatformNetworkConnectConfirmationScreen(::std::function<
void(
bool)> callback);
569 MCAPI ::std::shared_ptr<::AbstractScene>
570 createPlatformSplitScreenConnectConfirmationScreen(::std::function<
void(
bool)> callback);
572 MCAPI ::std::shared_ptr<::AbstractScene>
573 createPlatformStoreConnectConfirmationScreen(::std::function<
void(
bool)> callback);
575 MCAPI ::std::shared_ptr<::AbstractScene> createPortfolioScreen();
577 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
578 ::std::string
const& uniqueEventName,
579 ::std::unique_ptr<::ProgressHandler> progressHandler,
581 bool sendProgressTelem,
582 ::std::string
const& overrideScreen
585 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
586 ::std::string
const& uniqueEventName,
587 ::std::deque<::std::unique_ptr<::ProgressHandler>>&& progressHandlerList,
589 bool sendProgressTelem,
590 ::std::string
const& overrideScreen
593 MCAPI ::std::shared_ptr<::AbstractScene> createProgressScreen(
594 ::std::string
const& uniqueEventName,
595 ::std::deque<::std::unique_ptr<::ProgressHandler>> progressHandlerList,
597 bool sendProgressTelem,
598 bool useRandomProgressMessage,
599 bool allowSmallDownloads,
600 ::ProgressContentType contentType,
604 MCAPI ::std::shared_ptr<::AbstractScene>
605 createRatingPromptPopup(::std::string
const& title, ::std::string
const& image, ::std::string
const& buttonName);
607 MCAPI ::std::shared_ptr<::AbstractScene> createRealmNetworkProgressScreen(
608 ::std::string
const& uniqueEventName,
609 ::std::unique_ptr<::ProgressHandler> connectHandler
612 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsAllowListScreen(
613 ::Realms::World
const& world,
614 ::std::function<
void()> followUpActionAfterCreation,
618 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsCreateScreen(::RealmsCreateParams
const& screenDetails);
620 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinkSettingScreen(
621 ::Realms::World
const& world,
622 ::Realms::InviteLink
const& link,
623 ::SettingsTabIndex initialTab
626 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsInviteLinksScreen(::Realms::World
const& world);
628 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsJoinProgressScreen(
629 ::std::string
const& uniqueEventName,
630 ::std::unique_ptr<::ProgressHandler> connectHandler,
631 ::std::unique_ptr<::ProgressHandler> progressHandler,
633 bool realmsPlusExpired,
634 ::std::function<
void()> onlineSafetyCancelledCallback
637 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsManageMembersScreen(::Realms::World
const& world);
639 MCAPI ::std::shared_ptr<::AbstractScene>
640 createRealmsManageScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
642 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPackErrorsScreen();
644 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPendingInvitesScreen(
bool hasPendingInvites);
646 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsPlusPurchaseWarningScreen(::std::function<
void()> callback);
648 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSavesScreen(::Realms::World
const& world);
650 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSharingLauncherScreen(::std::string
const& realmsInvite);
652 MCAPI ::std::shared_ptr<::AbstractScene>
653 createRealmsSlotSettingsScreen(::Realms::World
const& world, ::SettingsTabIndex initialTab);
655 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsSlotsScreen(::Realms::World& world);
657 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsStoriesTransitionScreen(::Realms::World
const& world);
659 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreen();
661 MCAPI ::std::shared_ptr<::AbstractScene> createRealmsWarningScreenWithParams(
662 ::Realms::World
const& world,
663 ::std::string
const& ip,
665 ::std::string
const& serverRegion,
669 MCAPI ::std::shared_ptr<::AbstractScene> createSafeZoneScreen();
671 MCAPI ::std::shared_ptr<::AbstractScene> createSceneFromUrl(::std::string
const& url, ::OreUI::RouteMode mode);
673 MCAPI ::std::shared_ptr<::AbstractScene> createScreenshotScreen();
675 MCAPI ::std::shared_ptr<::AbstractScene> createSelectWorldScreen(
677 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>
681 MCAPI ::std::shared_ptr<::AbstractScene> createServerForm(uint formId, ::std::string
const& formJSON);
683 MCAPI ::std::shared_ptr<::AbstractScene>
684 createServerTrustModalScreen(::std::string serverAddress, ::Bedrock::Threading::AsyncPromise<bool> resultPromise);
686 MCAPI ::std::shared_ptr<::AbstractScene>
687 createSignScreen(::BlockPos
const& pos, ::BlockActorType blockActorType,
bool isFrontSide);
689 MCAPI ::std::shared_ptr<::AbstractScene> createStorageMigrationProgressScreen(
690 ::Bedrock::NonOwnerPointer<::Bedrock::StorageMigration::StorageMigrationService>
const& migrationService
693 MCAPI ::std::shared_ptr<::AbstractScene> createStorageSpaceWarningScreen(::std::string
const& message);
695 MCAPI ::std::shared_ptr<::AbstractScene> createStoreFeaturesDisabledScreen(::std::string
const& messageOverride);
697 MCAPI ::std::shared_ptr<::AbstractScene>
698 createStoreInventoryScreen(::InventoryTabIndex tabIndex, ::std::optional<::StoreDataDrivenScreenParams> paramsOpt);
700 MCAPI ::std::shared_ptr<::AbstractScene>
701 createSubmitFeedbackScreen(::FeedbackType feedbackType, ::std::string
const& identifier,
int feedbackTextLimit);
703 MCAPI ::std::shared_ptr<::AbstractScene> createSunsettingScreen(::std::string& title);
705 MCAPI ::std::shared_ptr<::AbstractScene> createTTSEnabledWarningScreen(::TTSEnabledStatus status);
707 MCAPI ::std::shared_ptr<::AbstractScene> createTTSErrorScreen();
709 MCAPI ::std::shared_ptr<::AbstractScene> createToastScreen();
711 MCAPI ::std::shared_ptr<::AbstractScene> createTokenFAQScreen();
713 MCAPI ::std::shared_ptr<::AbstractScene> createTokenPopupScreen();
715 MCAPI ::std::shared_ptr<::AbstractScene> createTrade2Screen(::Player&, ::ActorUniqueID
const& uniqueID);
717 MCAPI ::std::shared_ptr<::AbstractScene> createTradeScreen(::Player&, ::ActorUniqueID
const& uniqueID);
719 MCAPI ::std::shared_ptr<::UIScene>
720 createUIScene(::std::string
const& screenName, ::std::shared_ptr<::ScreenController> controller);
722 MCAPI ::std::shared_ptr<::AbstractScene>
723 createUpdateWorldHeightScreen(::std::function<
void(
bool)> startWorldCallback);
725 MCAPI ::std::shared_ptr<::AbstractScene> createUpsellScreen(
bool isNewWorld,
bool timeExpired);
727 MCAPI ::std::shared_ptr<::AbstractScene> createUserManagementModalScreen(
728 ::UserManagementModalScreenData
const& screenData,
729 ::std::function<
void(
bool)> callback
732 MCAPI ::std::shared_ptr<::AbstractScene> createVersionUpdateScreen(::UpdateVersionScreenContext context);
734 MCAPI ::std::shared_ptr<::AbstractScene> createWin10TrialConversionScreen();
736 MCAPI ::std::shared_ptr<::AbstractScene>
737 createWorldConversionCompleteScreen(::std::string
const& levelId, ::std::function<
void()> cancelCallback);
739 MCAPI ::std::shared_ptr<::AbstractScene> createWorldRecoveryScreen(::std::function<
void()> successCallback);
741 MCAPI ::std::shared_ptr<::AbstractScene> createWorldSeedCatalogScreen(
742 ::std::function<
void(::std::string
const&, ::std::string
const&, ::Core::Path
const&)> closeCallback
745 MCAPI ::std::shared_ptr<::AbstractScene> createWorldTemplateScreen(
bool hideTopBar);
747 MCAPI ::std::shared_ptr<::AbstractScene> createXblConsoleSignInScreen(::std::string
const& code);
749 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
750 ::std::string
const& signInSource,
751 ::std::function<
void()> callBackAfterSignIn,
752 ::std::function<
void()> callBackAfterCancel
755 MCAPI ::std::shared_ptr<::AbstractScene> createXblImmediateSignInScreen(
756 ::std::string
const& signInSource,
757 ::std::string
const& redirectToRoute,
758 bool replacePreviousRouteAfterSignIn
761 MCAPI ::Json::Value generateGlobalVars(::std::string
const& screenName, ::ScreenController& controller);
763 MCAPI ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> getCurrentSceneStack();
765 MCAPI
void precacheGameplayScreens();
767 MCAPI
void registerInGameScreen(
768 ::std::string
const& registeredName,
769 ::std::string
const& resourceName,
770 ::std::function<::std::shared_ptr<
771 ::UIScene>(::SceneFactory&, ::std::string
const&, ::Player&, ::BlockPos
const&, ::ActorUniqueID)>
775 MCAPI
void resetSceneStackForOutOfGameUse();
777 MCAPI
void setUseClientInstanceStack(
bool useClientInstanceStack);
779 MCAPI
void unregisterInGameScreens();
786 ::std::unique_ptr<::ISceneFactoryImpl> impl,
787 ::IMinecraftGame& minecraft,
788 ::ILayoutServiceProvider& layoutServiceProvider,
789 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
790 ::OreUI::SceneProvider& sceneProvider
803 MCAPI ::std::shared_ptr<::AbstractScene> $createDevConsole();
805 MCAPI ::std::shared_ptr<::AbstractScene> $createTabbedUpsellScreen(::TabbedUpsellScreenDefaultTab tab);
807 MCAPI ::std::shared_ptr<::AbstractScene> $createStoreDataDrivenScreen(
808 ::StoreDataDrivenScreenParams
const& params,
809 bool const forceDisableProgressScreen,
810 ::std::function<
void()> initializedCallback
813 MCAPI ::std::shared_ptr<::AbstractScene> $createStartMenuScreen(
bool shouldSendEvent);
Definition AbstractScene.h:5
Definition BaseScreen.h:5
Definition StorageMigrationService.h:21
Definition BlockActor.h:29
Definition CachedScenes.h:5
Definition IClientInstance.h:5
Definition IContentKeyProvider.h:13
Definition IContentManager.h:5
Definition ILayoutServiceProvider.h:5
Definition IMinecraftGame.h:5
Definition ISceneFactoryImpl.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
Definition ScreenController.h:5
Definition TaskGroup.h:86
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