UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SimplePreLoadScreenWidget.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
9
10#include "RenderingThread.h"
11
13#include "Widgets/SWidget.h"
16
17//Widget that displays a very simple version of a FPreLoadScreen UI that just includes a background and localized text together.
18//Rotates through the PreLoadScreens in the same order they are in the FPreLoadSettingsContainerBase. Uses the TimeToDisplayEachBackground variable to determine how long
19//to display each screen before rotating. Loops back when finished.
21{
22public:
25
26 void Construct(const FArguments& InArgs);
27
28 //Handles updating the background every X seconds
29 virtual void Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override;
30
32 //Loops to the next background image
33 virtual void UpdateBackgroundImage();
34
35 //Not used in the default simple implementation
36 virtual float GetDPIScale() const { return 1.0f; };
37
38 const FSlateBrush* GetCurrentBackgroundImage() const;
39 FText GetCurrentScreenText() const;
40 FSlateFontInfo GetTextFont() const;
41 FSlateFontInfo GetFontInfo(const FString& FontName, float FontSize) const;
42
43 int CurrentPreLoadScreenIndex;
44 float TimeToDisplayEachBackground;
45 float TimeSinceLastBackgroundUpdate;
46
47 static FCriticalSection BackgroundImageCrit;
48 static int CurrentBackgroundImage;
49
50};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
Definition Text.h:385
Definition SCompoundWidget.h:22
Definition SimplePreLoadScreenWidget.h:21
void Construct(const FArguments &InArgs)
Definition SimplePreLoadScreenWidget.cpp:14
SLATE_BEGIN_ARGS(SSimplePreLoadScreenWidget)
Definition SimplePreLoadScreenWidget.h:23
Definition Geometry.h:40
Definition SlateBrush.h:239
Definition SlateFontInfo.h:147