You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 626306c7f606b184f0a38bcb #rb Zousar.Shaker [CL 19901453 by Devin Doucette in ue5-main branch]
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "SlateFwd.h"
|
|
#include "UObject/WeakObjectPtr.h"
|
|
#include "Types/SlateEnums.h"
|
|
#include "IDetailCustomization.h"
|
|
|
|
class IDetailLayoutBuilder;
|
|
class IPropertyHandle;
|
|
|
|
class FTextureDetails : public IDetailCustomization
|
|
{
|
|
public:
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
protected:
|
|
FTextureDetails()
|
|
: bIsUsingSlider(false)
|
|
{}
|
|
private:
|
|
/** IDetailCustomization interface */
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
|
|
TOptional<int32> OnGetMaxTextureSize() const;
|
|
void OnMaxTextureSizeChanged(int32 NewValue);
|
|
void OnMaxTextureSizeCommitted(int32 NewValue, ETextCommit::Type CommitInfo);
|
|
void OnBeginSliderMovement();
|
|
void OnEndSliderMovement(int32 NewValue);
|
|
|
|
TSharedPtr<IPropertyHandle> MaxTextureSizePropertyHandle;
|
|
TSharedPtr<IPropertyHandle> VirtualTextureStreamingPropertyHandle;
|
|
TWeakObjectPtr<UObject> TextureBeingCustomized;
|
|
bool bIsUsingSlider;
|
|
};
|
|
|