#include <HitMarkerConfirmationWidget.h>
|
| | UHitMarkerConfirmationWidget (const FObjectInitializer &ObjectInitializer) |
| |
| virtual void | HitMarker (const AActor *ActorHit, const float Damage, const UDamageType *DamageType, const FName HitBone, const FVector HitLocation, const bool bKillingHit=false, const bool bInjuredPart=false) override |
| |
| virtual void | ReleaseSlateResources (bool bReleaseChildren) override |
| |
◆ UHitMarkerConfirmationWidget()
| UHitMarkerConfirmationWidget::UHitMarkerConfirmationWidget |
( |
const FObjectInitializer & | ObjectInitializer | ) |
|
13 : Super(ObjectInitializer)
14{
15 SetVisibility(ESlateVisibility::HitTestInvisible);
16 bIsVolatile = true;
18}
◆ HitMarker()
| void UHitMarkerConfirmationWidget::HitMarker |
( |
const AActor * | ActorHit, |
|
|
const float | Damage, |
|
|
const UDamageType * | DamageType, |
|
|
const FName | HitBone, |
|
|
const FVector | HitLocation, |
|
|
const bool | bKillingHit = false, |
|
|
const bool | bInjuredPart = false ) |
|
overridevirtual |
◆ RebuildWidget()
| TSharedRef< SWidget > UHitMarkerConfirmationWidget::RebuildWidget |
( |
| ) |
|
|
overrideprotectedvirtual |
36{
37 UUserWidget* OuterUserWidget = GetTypedOuter<UUserWidget>();
38 FLocalPlayerContext DummyContext;
39 const FLocalPlayerContext& PlayerContextRef = (OuterUserWidget != nullptr) ? OuterUserWidget->GetPlayerContext() : DummyContext;
40
45
47}
◆ ReleaseSlateResources()
| void UHitMarkerConfirmationWidget::ReleaseSlateResources |
( |
bool | bReleaseChildren | ) |
|
|
overridevirtual |
29{
30 Super::ReleaseSlateResources(bReleaseChildren);
33}
◆ AnyHitsMarkerImage
| FSlateBrush UHitMarkerConfirmationWidget::AnyHitsMarkerImage |
The marker image to draw if there are any hits at all.
◆ HitNotifyDuration
| float UHitMarkerConfirmationWidget::HitNotifyDuration = 0.4f |
The duration (in seconds) to display hit notifies (they fade to transparent over this time)
◆ MyMarkerWidget
Internal slate widget representing the actual marker visuals
◆ PerHitMarkerImage
| FSlateBrush UHitMarkerConfirmationWidget::PerHitMarkerImage |
The marker image to draw for individual hit markers.
◆ PerHitMarkerZoneOverrideImages
| TMap<FGameplayTag, FSlateBrush> UHitMarkerConfirmationWidget::PerHitMarkerZoneOverrideImages |
Map from zone tag (e.g., weak spot) to override marker images for individual location hits.
The documentation for this class was generated from the following files: