Clothings lots config rework
This commit is contained in:
@@ -27,9 +27,9 @@ void UEquipmentSlotWidget::NativePreConstruct()
|
||||
{
|
||||
Super::NativePreConstruct();
|
||||
|
||||
if (!ClothingSlotsData->ClothingSlotsData.Contains(SlotType))
|
||||
return;
|
||||
// if (!ClothingSlotsData->Slots.Contains(SlotType))
|
||||
// return;
|
||||
|
||||
FClothingSlotData& SlotData = ClothingSlotsData->ClothingSlotsData[SlotType];
|
||||
PlaceholderImage->SetBrushFromTexture(&SlotData.Icon);
|
||||
// FClothingSlotData& SlotData = ClothingSlotsData->Slots[SlotType];
|
||||
// PlaceholderImage->SetBrushFromTexture(&SlotData.Icon);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "CoreMinimal.h"
|
||||
#include "CommonButtonBase.h"
|
||||
#include "Components/Image.h"
|
||||
#include "NakedDesire/Clothing/BodyPart.h"
|
||||
#include "NakedDesire/Clothing/ClothingSlotType.h"
|
||||
#include "EquipmentSlotWidget.generated.h"
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ void URadialSliceWidget::Setup(UMaterialInterface* InSliceMaterial,
|
||||
|
||||
void URadialSliceWidget::UpdateHighlight(bool bIsHovered, float UndilatedDelta)
|
||||
{
|
||||
const float Target = (bIsHovered && bSliceEnabled) ? 1.f : 0.f;
|
||||
const float Target = bIsHovered && bSliceEnabled ? 1.f : 0.f;
|
||||
CurrentHighlight = FMath::FInterpTo(CurrentHighlight, Target,
|
||||
UndilatedDelta, HighlightInterpSpeed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user