setup equipment ui

This commit is contained in:
koritsa
2026-05-27 16:20:10 +03:00
parent 2e8a4b2450
commit 1d6c77998e
134 changed files with 464 additions and 354 deletions
@@ -63,7 +63,7 @@ FText UEquipClothingRestriction::GetDescription() const
});
}
void UEquipClothingRestriction::OnClothingEquipped(const UClothingItemInstance* ClothingItemInstance)
void UEquipClothingRestriction::OnClothingEquipped(UClothingItemInstance* ClothingItemInstance)
{
const bool IsTargetClothing = ClothingItems.FindByPredicate([&ClothingItemInstance](const UClothingItem* Item)
{
@@ -75,7 +75,7 @@ void UEquipClothingRestriction::OnClothingEquipped(const UClothingItemInstance*
}
}
void UEquipClothingRestriction::OnClothingUnequipped(const UClothingItemInstance* ClothingItemInstance)
void UEquipClothingRestriction::OnClothingUnequipped(UClothingItemInstance* ClothingItemInstance)
{
const bool IsTargetClothing = ClothingItems.FindByPredicate([&ClothingItemInstance](const UClothingItem* Item)
{
@@ -28,10 +28,10 @@ private:
FDelegateHandle ClothingUnequippedDelegateHandle;
UFUNCTION()
void OnClothingEquipped(const UClothingItemInstance* ClothingItemInstance);
void OnClothingEquipped(UClothingItemInstance* ClothingItemInstance);
UFUNCTION()
void OnClothingUnequipped(const UClothingItemInstance* ClothingItemInstance);
void OnClothingUnequipped(UClothingItemInstance* ClothingItemInstance);
void CheckClothing();
};
@@ -56,7 +56,7 @@ FText UExposeBodyPartRestriction::GetDescription() const
});
}
void UExposeBodyPartRestriction::EquipClothing(const UClothingItemInstance* ClothingItemInstance)
void UExposeBodyPartRestriction::EquipClothing(UClothingItemInstance* ClothingItemInstance)
{
if (IsSuccess) // TODO: Add covered body part resolution
{
@@ -64,7 +64,7 @@ void UExposeBodyPartRestriction::EquipClothing(const UClothingItemInstance* Clot
}
}
void UExposeBodyPartRestriction::UnequipClothing(const UClothingItemInstance* ClothingItemInstance)
void UExposeBodyPartRestriction::UnequipClothing(UClothingItemInstance* ClothingItemInstance)
{
if (IsSuccess)
return;
@@ -20,17 +20,17 @@ class NAKEDDESIRE_API UExposeBodyPartRestriction : public UGoalRestriction
UPROPERTY(EditDefaultsOnly)
EBodyPart BodyPart;
protected:
public:
virtual void Init(ANakedDesireCharacter* PlayerCharacter) override;
virtual void Stop() override;
virtual FText GetDescription() const override;
private:
UFUNCTION()
void EquipClothing(const UClothingItemInstance* ClothingItemInstance);
void EquipClothing(UClothingItemInstance* ClothingItemInstance);
UFUNCTION()
void UnequipClothing(const UClothingItemInstance* ClothingItemInstance);
void UnequipClothing(UClothingItemInstance* ClothingItemInstance);
void CheckClothing();
};