From d200298ea631c85fcdc2fcf617bd5d94cff37b08 Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 17 May 2024 17:34:45 +0100 Subject: [PATCH] Create WeaponPickupUserWidget --- Content/Enemy/BP_WeaponPickupTemplate.uasset | 3 ++ Content/Enemy/BP_WeaponPickupWidget.uasset | 3 ++ Source/Nakatomi/UI/WeaponPickupUserWidget.cpp | 5 +++ Source/Nakatomi/UI/WeaponPickupUserWidget.h | 32 +++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 Content/Enemy/BP_WeaponPickupTemplate.uasset create mode 100644 Content/Enemy/BP_WeaponPickupWidget.uasset create mode 100644 Source/Nakatomi/UI/WeaponPickupUserWidget.cpp create mode 100644 Source/Nakatomi/UI/WeaponPickupUserWidget.h diff --git a/Content/Enemy/BP_WeaponPickupTemplate.uasset b/Content/Enemy/BP_WeaponPickupTemplate.uasset new file mode 100644 index 0000000..511b346 --- /dev/null +++ b/Content/Enemy/BP_WeaponPickupTemplate.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f13af74119d9904b9142d37bf62c5e662727c3ac4facae428d12608c792a1c4b +size 22694 diff --git a/Content/Enemy/BP_WeaponPickupWidget.uasset b/Content/Enemy/BP_WeaponPickupWidget.uasset new file mode 100644 index 0000000..f988d95 --- /dev/null +++ b/Content/Enemy/BP_WeaponPickupWidget.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6096fa0cb6acef41fba1492b33d8c40fa8cf82403ac176473d6918f69dd01013 +size 23122 diff --git a/Source/Nakatomi/UI/WeaponPickupUserWidget.cpp b/Source/Nakatomi/UI/WeaponPickupUserWidget.cpp new file mode 100644 index 0000000..cce1af0 --- /dev/null +++ b/Source/Nakatomi/UI/WeaponPickupUserWidget.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "../UI/WeaponPickupUserWidget.h" + diff --git a/Source/Nakatomi/UI/WeaponPickupUserWidget.h b/Source/Nakatomi/UI/WeaponPickupUserWidget.h new file mode 100644 index 0000000..9c73d3e --- /dev/null +++ b/Source/Nakatomi/UI/WeaponPickupUserWidget.h @@ -0,0 +1,32 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Blueprint/UserWidget.h" +#include +#include "WeaponPickupUserWidget.generated.h" + +/** + * + */ +UCLASS() +class NAKATOMI_API UWeaponPickupUserWidget : public UUserWidget +{ + GENERATED_BODY() + +public: + + UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) + UTextBlock* AmmoText; + + UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) + UTextBlock* ProjectilesText; + + UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) + UTextBlock* CooldownText; + + UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) + UTextBlock* SpreadText; + +};