setup equipment ui

This commit is contained in:
koritsa
2026-05-27 16:20:10 +03:00
committed by koritsa
parent b161d021c4
commit 23f709bd61
134 changed files with 464 additions and 354 deletions
@@ -8,6 +8,8 @@
#include "NakedDesire/Clothing/ClothingSlotType.h"
#include "EquipmentSlotWidget.generated.h"
class UEquipmentSlotMenuWidget;
class ANakedDesireCharacter;
class UClothingSlotsData;
class UClothingItemInstance;
@@ -19,6 +21,14 @@ class NAKEDDESIRE_API UEquipmentSlotWidget : public UCommonButtonBase
public:
void SetItem(UClothingItemInstance* InItem);
void ClearItem();
EClothingSlotType GetSlotType() const { return SlotType; }
void SetSlotType(EClothingSlotType InSlotType);
virtual void NativeConstruct() override;
DECLARE_DELEGATE_OneParam(FOnEquipmentSlotClicked, UEquipmentSlotWidget* EquipmentSLotWidget)
FOnEquipmentSlotClicked OnEquipmentSlotClicked;
protected:
virtual void NativeOnClicked() override;
@@ -39,4 +49,12 @@ private:
UPROPERTY()
EClothingSlotType SlotType = EClothingSlotType::Anal;
UFUNCTION()
void OnClothingEquip(UClothingItemInstance* InClothingItemInstance);
UFUNCTION()
void OnClothingUnequip(UClothingItemInstance* InClothingItemInstance);
void InitSlotVisuals();
};