Files
Naked-Desire/Source/NakedDesire/UI/Inventory/EquipmentSlotWidget.cpp
T
2026-06-03 15:16:27 +03:00

36 lines
848 B
C++

// © 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);
}