3#include "CoreMinimal.h"
4#include "SlateBasics.h"
5#include "SlateExtras.h"
6#include "Public/Blueprint/UserWidget.h"
7#include "Public/Widgets/SCompoundWidget.h"
8#include "Public/Widgets/SLeafWidget.h"
9#include "LoadingScreenSlate.generated.h"
38 SLATE_ARGUMENT(FSlateBrush*, Image)
39 SLATE_ARGUMENT(FSlateBrush*, FrameBrush)
40 SLATE_ARGUMENT(FSlateBrush*, ForeGroundBrush)
41 SLATE_ARGUMENT(FSlateBrush*,MiddleGroundTitleBrush)
42 SLATE_ARGUMENT(
const FSlateBrush*, LoadingIcon)
44 SLATE_ARGUMENT(FSlateFontInfo, MapNameFont)
45 SLATE_ARGUMENT(FText, MapSize)
46 SLATE_ARGUMENT(FSlateFontInfo, MapSizeFont)
47 SLATE_ARGUMENT(FText, AuthorName)
48 SLATE_ARGUMENT(FSlateFontInfo, AuthorNameFont)
49 SLATE_ARGUMENT(FText, DescriptionText)
50 SLATE_ARGUMENT(FSlateFontInfo, DescriptionFont)
51 SLATE_ARGUMENT(FText, MapDescriptionText)
52 SLATE_ARGUMENT(FSlateFontInfo, MapDescriptionFont)
53 SLATE_ARGUMENT(FSlateColor, LevelNameColor)
54 SLATE_ARGUMENT(FSlateColor, ModeColor)
55 SLATE_ARGUMENT(FSlateColor, DescriptionColor)
56 SLATE_ARGUMENT(
const FSlateBrush*, TitleBackground)
59 void Construct(const FArguments& InArgs);
66 TOptional<FSlateRenderTransform> GetTextRenderTransform() const;
68 TOptional<FSlateRenderTransform> GetDescriptionTextRenderTransform() const;
70 TOptional<FSlateRenderTransform> GetMapInfoBackgourndTransform() const;
72 TOptional<FSlateRenderTransform> GetModeTextRenderTransform() const;
74 TOptional<FSlateRenderTransform> GetMapNameTextRenderTransform() const;
76 TOptional<FSlateRenderTransform> GetMapSizeTextRenderTransform() const;
78 FSlateColor GetTextRenderColor() const;
80 FSlateColor GetDescriptionTextRenderColor() const;
82 FSlateColor GetBackgroundImageRenderColor() const;
84 TAttribute<TOptional<FSlateRenderTransform>> TextRenderTransform;
85 TAttribute<TOptional<FSlateRenderTransform>> DescriptionTextRenderTransform;
86 TAttribute<TOptional<FSlateRenderTransform>> MapInfoBackgroundTransform;
87 TAttribute<TOptional<FSlateRenderTransform>> MapDescriptionBackgroundTransform;
88 TAttribute<TOptional<FSlateRenderTransform>> ModeTextRenderTransform;
89 TAttribute<TOptional<FSlateRenderTransform>> MapSizeRenderTransform;
90 TAttribute<TOptional<FSlateRenderTransform>> MapNameTextRenderTransform;
91 TAttribute<FSlateColor> TitleTextRenderColour;
92 TAttribute<FSlateColor> DescriptionTextRenderColour;
93 TAttribute<FSlateColor> BackgroundImageRenderColour;
95 FSlateColor MapNameTextColor;
96 FSlateColor DescriptionTextColor;
100 TSharedPtr<SImage> ForegroundWidget;
103 TSharedPtr<SImage> MapBackgroundWidget;
104 TSharedPtr<SImage> MapDescriptionBackgroundWidget;
105 TSharedPtr<SImage> MapMiddlegroundWidget;
106 TSharedPtr<STextBlock> MapNameTextWidget;
107 TSharedPtr<STextBlock> MapSizeTextWidget;
108 TSharedPtr<STextBlock> AuthorNameTextWidget;
109 TSharedPtr<STextBlock> DescriptionTextWidget;
110 TSharedPtr<STextBlock> MapDescriptionText;
115 FCurveHandle TextCurve;
124 SLATE_ARGUMENT(FSlateBrush*, Image)
127 void Construct(const FArguments& InArgs);
129 virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle,
bool bParentEnabled) const override;
130 virtual FVector2D ComputeDesiredSize(
float) const override;
138 bool bFadingOut = false;
146 SLATE_ARGUMENT(FSlateBrush*, FrameBrush)
149 void Construct(const FArguments& InArgs);
151 virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle,
bool bParentEnabled) const override;
152 virtual FVector2D ComputeDesiredSize(
float) const override;
158 FSlateBrush* FrameBrush;
160 bool bFadingOut = false;
168 SLATE_ARGUMENT(
const FSlateBrush*, LoadingIcon)
171 void Construct(const FArguments& InArgs);
173 virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle,
bool bParentEnabled) const override;
174 virtual FVector2D ComputeDesiredSize(
float) const override;
181 const FSlateBrush* LoadingIcon;
185 FCurveSequence AnimationSequence;
186 FCurveHandle SpinCurve;
Definition: LoadingScreenSlate.h:119
SLATE_BEGIN_ARGS(SLoadingScreenBackground)
Definition: LoadingScreenSlate.h:121
Definition: LoadingScreenSlate.h:142
SLATE_BEGIN_ARGS(SLoadingScreenFrame)
Definition: LoadingScreenSlate.h:144
Definition: LoadingScreenSlate.h:164
SLATE_BEGIN_ARGS(SLoadingScreenIcon)
Definition: LoadingScreenSlate.h:166
Definition: LoadingScreenSlate.h:34
SLATE_BEGIN_ARGS(SProjectXLoadingScreen)
Definition: LoadingScreenSlate.h:36
Definition: LoadingScreenSlate.h:13