Add cinematic startup credits

This commit is contained in:
2026-05-17 20:02:22 -07:00
parent 879a4805c5
commit 075689dce4
7 changed files with 337 additions and 6 deletions
+30 -1
View File
@@ -12,11 +12,13 @@ class AGRARIANGAME_API UAgrarianDemoNoticeWidget : public UUserWidget
GENERATED_BODY()
public:
virtual void NativeConstruct() override;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Demo")
FText Motto = FText::FromString(TEXT("What survives after you are gone?"));
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Demo")
FText VersionLabel = FText::FromString(TEXT("Investor Demo v0.1.E - Build 2026.05.17"));
FText VersionLabel = FText::FromString(TEXT("Investor Demo v0.1.H - Build 2026.05.17"));
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Demo")
FText DemoNotice = FText::FromString(TEXT("Beta prototype build - not for public distribution"));
@@ -35,6 +37,8 @@ protected:
bool bParentEnabled) const override;
private:
float CreditsStartTimeSeconds = 0.0f;
void DrawCenteredText(
FSlateWindowElementList& OutDrawElements,
int32& LayerId,
@@ -43,4 +47,29 @@ private:
float Y,
const FSlateFontInfo& Font,
const FLinearColor& Color) const;
void DrawTextAt(
FSlateWindowElementList& OutDrawElements,
int32& LayerId,
const FGeometry& AllottedGeometry,
const FText& Text,
const FVector2D& Position,
float Width,
const FSlateFontInfo& Font,
const FLinearColor& Color) const;
void DrawCinematicCredits(
FSlateWindowElementList& OutDrawElements,
int32& LayerId,
const FGeometry& AllottedGeometry) const;
void DrawCreditIllustration(
FSlateWindowElementList& OutDrawElements,
int32& LayerId,
const FGeometry& AllottedGeometry,
const FVector2D& Position,
const FVector2D& Size,
int32 IllustrationIndex,
const FLinearColor& AccentColor,
float Alpha) const;
};