Implement pause menu
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user