init
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
|
||||
#include "ShooterBulletCounterUI.h"
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Blueprint/UserWidget.h"
|
||||
#include "ShooterBulletCounterUI.generated.h"
|
||||
|
||||
/**
|
||||
* Simple bullet counter UI widget for a first person shooter game
|
||||
*/
|
||||
UCLASS(abstract)
|
||||
class AUDIOVIDEORECORD_API UShooterBulletCounterUI : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
/** Allows Blueprint to update sub-widgets with the new bullet count */
|
||||
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta=(DisplayName = "UpdateBulletCounter"))
|
||||
void BP_UpdateBulletCounter(int32 MagazineSize, int32 BulletCount);
|
||||
|
||||
/** Allows Blueprint to update sub-widgets with the new life total and play a damage effect on the HUD */
|
||||
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta=(DisplayName = "Damaged"))
|
||||
void BP_Damaged(float LifePercent);
|
||||
};
|
||||
5
Source/AudioVideoRecord/Variant_Shooter/UI/ShooterUI.cpp
Normal file
5
Source/AudioVideoRecord/Variant_Shooter/UI/ShooterUI.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
|
||||
#include "ShooterUI.h"
|
||||
|
||||
22
Source/AudioVideoRecord/Variant_Shooter/UI/ShooterUI.h
Normal file
22
Source/AudioVideoRecord/Variant_Shooter/UI/ShooterUI.h
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Blueprint/UserWidget.h"
|
||||
#include "ShooterUI.generated.h"
|
||||
|
||||
/**
|
||||
* Simple scoreboard UI for a first person shooter game
|
||||
*/
|
||||
UCLASS(abstract)
|
||||
class AUDIOVIDEORECORD_API UShooterUI : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
/** Allows Blueprint to update score sub-widgets */
|
||||
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta = (DisplayName = "Update Score"))
|
||||
void BP_UpdateScore(uint8 TeamByte, int32 Score);
|
||||
};
|
||||
Reference in New Issue
Block a user