setup equipment ui
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user