Implemented Text to Checkpoint Completed UI
This commit is contained in:
parent
c955020483
commit
9020cdb284
BIN
EndlessVendetta/Content/BountySystem/Waypoint/WBP_WaypointWidget.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/BountySystem/Waypoint/WBP_WaypointWidget.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/WBP_CheckpointCompleted.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/WBP_CheckpointCompleted.uasset
(Stored with Git LFS)
Binary file not shown.
@ -70,6 +70,7 @@ void ABountyClass::IncrementBountyCheckpoint()
|
||||
BountyCheckpoints[0]->Destroy();
|
||||
BountyCheckpoints.RemoveAt(0);
|
||||
UE_LOG(LogTemp, Warning, TEXT(" You've Completed the Bounty!! Well done"));
|
||||
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI(FString(""));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -89,6 +90,8 @@ void ABountyClass::IncrementBountyCheckpoint()
|
||||
BountyCheckpoints[0]->SpawnWaypoint();
|
||||
BountyCheckpoints[0]->CheckpointActivated();
|
||||
BountyCheckpoints[0]->CompletedCheckpoint.AddDynamic(this, &ABountyClass::IncrementBountyCheckpoint);
|
||||
|
||||
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI(BountyCheckpoints[0]->GetCheckpointDesc());
|
||||
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,6 @@ protected:
|
||||
UFUNCTION(BlueprintCallable, Category = "Checkpoint")
|
||||
void BroadcastCompletion()
|
||||
{
|
||||
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI();
|
||||
CompletedCheckpoint.Broadcast();
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ public:
|
||||
void WeaponSwitcher(AActor* Outhit);
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void CheckpointCompletedUI();
|
||||
void CheckpointCompletedUI(const FString& CheckpointDesc);
|
||||
|
||||
// Returns true if successfully changed to a new gadget, can fail if the target gadget to replace is being used
|
||||
bool UpdateGadgetType(TSubclassOf<AGadgetBase> NewGadgetClass);
|
||||
|
Loading…
Reference in New Issue
Block a user