// © 2025 Naked People Team. All Rights Reserved. #include "EquipmentSlotWidget.h" #include "NakedDesire/Clothing/ClothingItem.h" #include "NakedDesire/Clothing/ClothingItemInstance.h" #include "NakedDesire/Clothing/ClothingSlotsData.h" void UEquipmentSlotWidget::SetItem(UClothingItemInstance* InItem) { ClothingItemInstance = InItem; IconImage->SetBrushFromTexture(InItem->GetClothingItem()->Icon); } void UEquipmentSlotWidget::ClearItem() { ClothingItemInstance = nullptr; } void UEquipmentSlotWidget::NativeOnClicked() { Super::NativeOnClicked(); } void UEquipmentSlotWidget::NativePreConstruct() { Super::NativePreConstruct(); // if (!ClothingSlotsData->Slots.Contains(SlotType)) // return; // FClothingSlotData& SlotData = ClothingSlotsData->Slots[SlotType]; // PlaceholderImage->SetBrushFromTexture(&SlotData.Icon); }