Implement pause menu

This commit is contained in:
2025-04-17 01:08:07 +05:30
parent 44aee655de
commit 0fed8de306
8 changed files with 164 additions and 7 deletions

View File

@@ -58,6 +58,9 @@ protected:
UPROPERTY(EditAnywhere, Category = "HUD|GameOver")
float PulsateMaxAlpha = 1.0f;
UPROPERTY(EditAnywhere, Category = "HUD|Pause")
float PauseTextScale = 2.0f;
private:
void DrawGameplayHUD();
void DrawGameOverScreen();
@@ -65,6 +68,8 @@ private:
class ASpaceShooterGameMode* GetGameMode() const;
class ASpaceshipPawn* GetPlayerPawn() const;
void DrawPauseScreen();
float GameOverStartTime;
void DrawGameOverBackground();
void DrawGameOverText(const FString& Text, const FVector2D& Position, const FLinearColor& Color, float Scale = 1.0f);