43 lines
967 B
C++
43 lines
967 B
C++
// © 2025 Naked People Team. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CommonButtonBase.h"
|
|
#include "Components/Image.h"
|
|
#include "NakedDesire/Clothing/ClothingSlotType.h"
|
|
#include "EquipmentSlotWidget.generated.h"
|
|
|
|
class UClothingSlotsData;
|
|
class UClothingItemInstance;
|
|
|
|
UCLASS(Abstract)
|
|
class NAKEDDESIRE_API UEquipmentSlotWidget : public UCommonButtonBase
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
void SetItem(UClothingItemInstance* InItem);
|
|
void ClearItem();
|
|
|
|
protected:
|
|
virtual void NativeOnClicked() override;
|
|
virtual void NativePreConstruct() override;
|
|
|
|
UPROPERTY(EditDefaultsOnly)
|
|
TObjectPtr<UClothingSlotsData> ClothingSlotsData;
|
|
|
|
private:
|
|
UPROPERTY(meta = (BindWIdget))
|
|
TObjectPtr<UImage> PlaceholderImage;
|
|
|
|
UPROPERTY(meta = (BindWIdget))
|
|
TObjectPtr<UImage> IconImage;
|
|
|
|
UPROPERTY()
|
|
TObjectPtr<UClothingItemInstance> ClothingItemInstance = nullptr;
|
|
|
|
UPROPERTY()
|
|
EClothingSlotType SlotType = EClothingSlotType::Anal;
|
|
};
|