Files
ProjectEleri/Source/ProjectEleri/Public/UI/TradeWidget.h
2026-07-11 10:43:52 +02:00

38 lines
795 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UI/EleriBaseWidget.h"
#include "TradeWidget.generated.h"
class UInventoryComponent;
/**
*
*/
UCLASS()
class PROJECTELERI_API UTradeWidget : public UEleriBaseWidget
{
GENERATED_BODY()
public:
UFUNCTION()
void OpenTradeWidget(UInventoryComponent* Inventory, const TArray<EInventoryTabType>& InRestrictTabs = TArray<EInventoryTabType>{});
protected:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
UInventoryComponent* InventoryRef;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
bool bIsBuying;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
bool bIsChest;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
TArray<EInventoryTabType> RestrictedTabs;
};