setup equipment ui

This commit is contained in:
2026-05-27 16:20:10 +03:00
parent 9792ede1e8
commit 5c1ca57a04
134 changed files with 464 additions and 354 deletions
@@ -0,0 +1,29 @@
// © 2025 Naked People Team. All Rights Reserved.
#include "EquipmentSlotMenuWidget.h"
#include "Components/Button.h"
#include "Kismet/GameplayStatics.h"
#include "NakedDesire/Clothing/ClothingManager.h"
#include "NakedDesire/Player/NakedDesireCharacter.h"
void UEquipmentSlotMenuWidget::Init(const EClothingSlotType InSlotType)
{
SlotType = InSlotType;
}
void UEquipmentSlotMenuWidget::NativeConstruct()
{
Super::NativeConstruct();
Player = Cast<ANakedDesireCharacter>(UGameplayStatics::GetPlayerCharacter(GetWorld(), 0));
DropClothingBtn->OnClicked.AddUniqueDynamic(this, &UEquipmentSlotMenuWidget::OnDropClothingClicked);
}
void UEquipmentSlotMenuWidget::OnDropClothingClicked()
{
Player->ClothingManager->DropClothing(SlotType);
OnActionPerformed.Broadcast();
}