Added Tips to All Checkpoints

This commit is contained in:
Rafal Swierczek 2023-11-25 16:43:28 +00:00
parent 9020cdb284
commit 62d33c6856
18 changed files with 41 additions and 29 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f709567521d482b2a611eeb383dde9b4b80fde46087b1e4687da6ef382afcdbb
size 1854378

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dcd44c870217e54259c4d1d8f70580c49d4ed89fb9b23ef05b894d9d4a9bd82b
size 649426
oid sha256:35b3811ccb41bda48b54e51242d49687d08149d0c9440b4c4ddb7ff58aec8d25
size 654848

View File

@ -91,7 +91,7 @@ void ABountyClass::IncrementBountyCheckpoint()
BountyCheckpoints[0]->CheckpointActivated();
BountyCheckpoints[0]->CompletedCheckpoint.AddDynamic(this, &ABountyClass::IncrementBountyCheckpoint);
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI(BountyCheckpoints[0]->GetCheckpointDesc());
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI(BountyCheckpoints[0]->GetCheckpointTip());
}

View File

@ -19,6 +19,8 @@ class ENDLESSVENDETTA_API ACheckpointClass : public AActor
UPROPERTY(EditDefaultsOnly, Category = "Checkpoint")
FString CheckpointDescription;
UPROPERTY(EditDefaultsOnly, Category = "Checkpoint")
FString CheckpointTip;
UPROPERTY(EditDefaultsOnly, Category = "Checkpoint")
FVector WaypointLoc;
UPROPERTY(EditDefaultsOnly, Category = "Checkpoint")
UTexture2D* WaypointIcon;
@ -60,6 +62,10 @@ public:
{
return CheckpointDescription;
}
FString GetCheckpointTip()
{
return CheckpointTip;
}
FVector GetWaypointLoc()
{
return WaypointLoc;