blaster/Source/Blaster/HUD/ElimAnnouncement.cpp

17 lines
440 B
C++
Raw Normal View History

2022-05-29 10:42:42 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#include "ElimAnnouncement.h"
#include "Components/TextBlock.h"
void UElimAnnouncement::SetElimAnnouncementText(FString AttackerName, FString VictimName)
{
FString ElimAnnouncementText = FString::Printf(TEXT("%s killed %s"), *AttackerName, *VictimName);
if (AnnouncementText)
{
AnnouncementText->SetText(FText::FromString(ElimAnnouncementText));
}
}