49 lines
988 B
C++
49 lines
988 B
C++
// Louis Hobbs | 2024-2025
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "VampireInteractiveWidget.h"
|
|
#include "SelectWeaponWidget.generated.h"
|
|
|
|
|
|
class UStarterWeaponButtonWidget;
|
|
class UScrollBox;
|
|
class UCustomListView;
|
|
class AWeapon;
|
|
class UListView;
|
|
class UCustomButton;
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class VAMPIRES_API USelectWeaponWidget : public UVampireInteractiveWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPROPERTY(meta=(BindWidget))
|
|
TObjectPtr<UCustomButton> BackButton;
|
|
|
|
UPROPERTY(meta=(BindWidget))
|
|
TObjectPtr<UScrollBox> StarterWeaponsScrollBox;
|
|
|
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
|
TSubclassOf<UStarterWeaponButtonWidget> StarterWeaponButtonWidgetTemplate;
|
|
|
|
protected:
|
|
UPROPERTY(EditDefaultsOnly)
|
|
TArray<TSubclassOf<AWeapon>> StarterWeapons;
|
|
|
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
|
TSubclassOf<class UUserWidget> PreviousWidget;
|
|
|
|
FTimerHandle TimerHandle;
|
|
|
|
virtual void NativeConstruct() override;
|
|
|
|
private:
|
|
UFUNCTION()
|
|
void BackButtonClicked();
|
|
};
|