Files
UnrealEngineUWP/Engine/Source/Editor/TextureEditor/Classes/TextureEditorSettings.h
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

79 lines
2.1 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "TextureEditorSettings.generated.h"
/**
* Enumerates background for the texture editor view port.
*/
UENUM()
enum ETextureEditorBackgrounds
{
TextureEditorBackground_SolidColor UMETA(DisplayName="Solid Color"),
TextureEditorBackground_Checkered UMETA(DisplayName="Checkered"),
TextureEditorBackground_CheckeredFill UMETA(DisplayName="Checkered (Fill)")
};
UENUM()
enum ETextureEditorVolumeViewMode
{
TextureEditorVolumeViewMode_DepthSlices UMETA(DisplayName="Depth Slices"),
TextureEditorVolumeViewMode_VolumeTrace UMETA(DisplayName="Trace Into Volume"),
};
/**
* Implements the Editor's user settings.
*/
UCLASS(config=EditorPerProjectUserSettings)
class TEXTUREEDITOR_API UTextureEditorSettings
: public UObject
{
GENERATED_UCLASS_BODY()
public:
/** The type of background to draw in the texture editor view port. */
UPROPERTY(config)
TEnumAsByte<ETextureEditorBackgrounds> Background;
/** The type of display when viewing volume textures. */
UPROPERTY(config)
TEnumAsByte<ETextureEditorVolumeViewMode> VolumeViewMode;
/** Background and foreground color used by Texture preview view ports. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor BackgroundColor;
/** The first color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorOne;
/** The second color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorTwo;
/** The size of the checkered background tiles. */
UPROPERTY(config, EditAnywhere, Category=Background, meta=(ClampMin="2", ClampMax="4096"))
int32 CheckerSize;
public:
/** Whether the texture should scale to fit the view port. */
UPROPERTY(config)
bool FitToViewport;
/** Color to use for the texture border, if enabled. */
UPROPERTY(config, EditAnywhere, Category=TextureBorder)
FColor TextureBorderColor;
/** If true, displays a border around the texture. */
UPROPERTY(config)
bool TextureBorderEnabled;
};